Removed static things, fixed astar bugs. only thing left is bomber attacking ronge
This commit is contained in:
parent
91c3e77465
commit
526ce82d40
33 changed files with 293 additions and 196 deletions
|
|
@ -7,6 +7,7 @@ import ei.engine.math.Vector2f;
|
|||
import ei.engine.math.Vector4f;
|
||||
import ei.engine.scene.Node;
|
||||
import ei.engine.scene.Sprite;
|
||||
import ei.game.gamestate.InGameState;
|
||||
import ei.game.player.Player;
|
||||
|
||||
/**
|
||||
|
|
@ -22,7 +23,7 @@ public class InGameHud {
|
|||
private InGameBuildHud buildHud;
|
||||
private Sprite buildBack;
|
||||
|
||||
public InGameHud(Player p){
|
||||
public InGameHud(Player p, InGameState inGameState){
|
||||
player = p;
|
||||
|
||||
hudNode = new Node("Hud");
|
||||
|
|
@ -52,7 +53,7 @@ public class InGameHud {
|
|||
hudNode.add(buildBar.getNode());
|
||||
|
||||
buildHud = new InGameBuildHud((int)(buildBack.getLocation().getX()-buildBack.getSize().getX()/4),
|
||||
(int)(buildBack.getLocation().getY()+10),player);
|
||||
(int)(buildBack.getLocation().getY()+10),player, inGameState);
|
||||
hudNode.add(buildHud.getNode());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue