This commit is contained in:
parent
9324df29c7
commit
02316b71b3
4 changed files with 55 additions and 22 deletions
|
|
@ -7,6 +7,7 @@ import ei.game.player.HumanPlayer;
|
|||
import ei.game.player.PlayerHandler;
|
||||
import ei.game.scene.Map;
|
||||
import ei.game.scene.units.Tank;
|
||||
import ei.game.scene.weapons.WeaponHandler;
|
||||
|
||||
|
||||
public class InGameState extends GameState{
|
||||
|
|
@ -33,6 +34,9 @@ public class InGameState extends GameState{
|
|||
|
||||
rootNode.add(player.getNode());
|
||||
PlayerHandler.getInstance().addPlayer(player);
|
||||
|
||||
rootNode.add(WeaponHandler.getInstance().getNode());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -47,6 +51,7 @@ public class InGameState extends GameState{
|
|||
*/
|
||||
public void update() {
|
||||
PlayerHandler.getInstance().update();
|
||||
WeaponHandler.getInstance().update();
|
||||
rootNode.update();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue