added a Entity.java class that handles position rotation and collition. collition has jet not been made.
This commit is contained in:
parent
dbee794932
commit
0044d4fff4
17 changed files with 154 additions and 55 deletions
|
|
@ -14,7 +14,6 @@ public class InGameState extends GameState{
|
|||
rootNode = new Node("InGameNode");
|
||||
s1 = new Sprite("tank","data/units/tank.png");
|
||||
rootNode.add(s1);
|
||||
s1.setLocation(1, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -24,7 +23,7 @@ public class InGameState extends GameState{
|
|||
|
||||
@Override
|
||||
public void update() {
|
||||
s1.getLocation().add(1);
|
||||
s1.getLocation().add(0.1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue