sounds
This commit is contained in:
parent
b126251957
commit
ba3daada90
14 changed files with 48 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package ei.game.gamestate;
|
||||
|
||||
import ei.engine.scene.Node;
|
||||
import ei.engine.sound.Sound;
|
||||
import ei.engine.state.GameState;
|
||||
import ei.game.input.InGameMouseInput;
|
||||
import ei.game.player.HumanPlayer;
|
||||
|
|
@ -16,6 +17,7 @@ import ei.game.scene.weapons.WeaponHandler;
|
|||
public class InGameState extends GameState{
|
||||
private Node rootNode;
|
||||
private static Map map;
|
||||
private Sound music;
|
||||
|
||||
public InGameState(String name){
|
||||
super(name);
|
||||
|
|
@ -44,6 +46,8 @@ public class InGameState extends GameState{
|
|||
rootNode.add(map.getMapNode());
|
||||
rootNode.add(PlayerHandler.getInstance().getNode());
|
||||
rootNode.add(WeaponHandler.getInstance().getNode());
|
||||
music = new Sound("music", "data/sounds/ei.ogg");
|
||||
music.loop();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue