Fixed The main flicker problem

This commit is contained in:
Ziver Koc 2008-02-15 15:09:43 +00:00
parent ac1e224d26
commit a66e3beb05
24 changed files with 50 additions and 31 deletions

View file

@ -0,0 +1,38 @@
package ei.engine.test;
import ei.engine.LWJGLGameWindow;
import ei.engine.math.Vector2f;
import ei.engine.scene.Box;
public class EngineTest extends LWJGLGameWindow{
private Box box;
private float pos;
public static void main(String[] args){
new EngineTest();
}
public EngineTest() {
super("EngineTest");
}
protected void init(){
box = new Box("lol");
box.setSize(new Vector2f(100,100));
pos = 0;
}
protected void update() {
super.update();
pos += 0.2f;
box.setLocation(new Vector2f(200+pos,200+pos));
box.update();
}
/**
* this method shid be overriden
*/
protected void render(){
box.render();
}
}