Fire fix + used @aranzaiger s wav file

This commit is contained in:
Sagi Dayan 2016-02-28 00:21:28 +02:00
parent d794b54b7c
commit d9085b8570
2 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ public class FirstStage extends Scene {
}
if(keys.get(engine.getP1Controlles()[GameEngine.FIRE]) ){
if(players.get(0).isAbleToFire()){
missiles.add(new Missile(players.get(0).getCenterX() - 3, (int)players.get(0).getLocY(), players.get(0).getAcceleration() + 3, "P1Laser.png"));
missiles.add(new Missile(players.get(0).getCenterX() - 15, (int)players.get(0).getLocY(), players.get(0).getAcceleration() + 3, "P1Laser.png"));
players.get(0).updateFireTime();
}
}
@ -181,7 +181,7 @@ public class FirstStage extends Scene {
}
if(keys.get(engine.getP2Controlles()[GameEngine.FIRE]) ){
if(players.get(1).isAbleToFire()){
missiles.add(new Missile(players.get(1).getCenterX() - 3, (int)players.get(1).getLocY(), players.get(1).getAcceleration() + 3, "P1Laser.png"));
missiles.add(new Missile(players.get(1).getCenterX() - 15, (int)players.get(1).getLocY(), players.get(1).getAcceleration() + 3, "P1Laser.png"));
players.get(1).updateFireTime();
}
}

View file

@ -31,7 +31,7 @@ public class MainMenuScene extends Scene {
menuItem = 0;
menuBox = new MenuBoxSprite(X_AXIS, axis[menuItem], stageWidth, stageHeight, 0, "menu.jpg", 0, 425, 110); //bImage is the background... not trivial
try {
AudioPlayer.player.start(new AudioStream(Utils.getSoundResourceAsStream("intro.wav")));
AudioPlayer.player.start(new AudioStream(Utils.getSoundResourceAsStream("intro_LowQuality.wav")));
} catch (IOException e) {
e.printStackTrace();
}