This commit is contained in:
parent
98cd3b8287
commit
0bfc621ade
6 changed files with 32 additions and 20 deletions
|
|
@ -23,9 +23,14 @@ public class InGameState extends GameState{
|
|||
super.getInput().addInput(mouse);
|
||||
|
||||
HumanPlayer player = new HumanPlayer();
|
||||
player.addUnit(new Tank());
|
||||
player.addUnit(new Tank(1,0));
|
||||
Tank t1 = new Tank();
|
||||
t1.setLife(10);
|
||||
player.addUnit(t1);
|
||||
Tank t2 = new Tank(1,0);
|
||||
t2.setLife(30);
|
||||
player.addUnit(t2);
|
||||
player.addUnit(new Tank(2,0));
|
||||
|
||||
rootNode.add(player.getNode());
|
||||
PlayerHandler.getInstance().addPlayer(player);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue