lol
This commit is contained in:
parent
f7c37665e1
commit
1ffdb1015f
4 changed files with 29 additions and 4 deletions
|
|
@ -3,12 +3,14 @@ package ei.game.gamestate;
|
|||
import ei.engine.scene.Node;
|
||||
import ei.engine.state.GameState;
|
||||
import ei.game.input.InGameMouseInput;
|
||||
import ei.game.player.Human;
|
||||
import ei.game.scene.Map;
|
||||
|
||||
|
||||
public class InGameState extends GameState{
|
||||
private Node rootNode;
|
||||
private Map map;
|
||||
private Human player;
|
||||
|
||||
public InGameState(String name){
|
||||
super(name);
|
||||
|
|
@ -19,7 +21,8 @@ public class InGameState extends GameState{
|
|||
map = new Map(20,20);
|
||||
rootNode.add(map.getMapNode());
|
||||
|
||||
|
||||
player = new Human();
|
||||
rootNode.add(player.getNode());
|
||||
}
|
||||
|
||||
public void render() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue