lol
This commit is contained in:
parent
acd4752826
commit
c426ee3287
3 changed files with 6 additions and 6 deletions
|
|
@ -27,7 +27,7 @@ public class InGameState extends GameState{
|
|||
rootNode.add(player.getNode());
|
||||
Tank tank = new Tank();
|
||||
player.addUnit(tank);
|
||||
tank.move(10, 10);
|
||||
//tank.move(10, 3);
|
||||
}
|
||||
public static Human getHuman(){
|
||||
return player;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public abstract class Unit extends GameEntity{
|
|||
InGameState.getMap().removePos(oldPos.getX(), oldPos.getY());
|
||||
}
|
||||
setPos(x, y);
|
||||
looks.move(new Vector2f(x, y));
|
||||
looks.move(InGameState.getMap().getPixelByPos((int)x, (int)y));
|
||||
oldPos = new Vector2i(x, y);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue