Added a hud for the money
This commit is contained in:
parent
287e6b3e50
commit
d1a2aa8b4e
13 changed files with 34 additions and 12 deletions
|
|
@ -27,11 +27,18 @@ public class APU extends Unit{
|
|||
this.sprite = new Sprite("APU", "data/units/apu/apu0000.png");
|
||||
sprite.setSize(new Vector2f(40,40));
|
||||
getNode().add(sprite);
|
||||
|
||||
gunSound = new Sound("gunSound", "data/sounds/machinegun.wav");
|
||||
moveSound[0] = new Sound("moveSound", "data/sounds/APUmove1.wav");
|
||||
moveSound[1] = new Sound("moveSound", "data/sounds/APUmove2.wav");
|
||||
selectSound = new Sound("selectSound", "data/sounds/APUselect.wav");
|
||||
attackSound = new Sound("attackSound", "data/sounds/APUattack.wav");
|
||||
|
||||
gunSound.setLocation(getNode().getLocation());
|
||||
moveSound[0].setLocation(getNode().getLocation());
|
||||
moveSound[1].setLocation(getNode().getLocation());
|
||||
selectSound.setLocation(getNode().getLocation());
|
||||
attackSound.setLocation(getNode().getLocation());
|
||||
|
||||
selectionBox = new SelectBox(40,40,getMaxLife());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue