diff --git a/.gitignore b/.gitignore index 56c14c4..3d6e5b0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ bin/* out/ .settings/ .DS_Store +highscore diff --git a/src/main/java/globalgamejam/world/MainWorld.java b/src/main/java/globalgamejam/world/MainWorld.java index b2e0d30..fd94e0c 100644 --- a/src/main/java/globalgamejam/world/MainWorld.java +++ b/src/main/java/globalgamejam/world/MainWorld.java @@ -153,7 +153,9 @@ public class MainWorld { actualEffect = null; effectTileJ1.clear(); effectTileJ2.clear(); - game.audioEffect.pauseSound(); + if (game.audioEffect instanceof Audio) { + game.audioEffect.pauseSound(); + } game.audioBackground.setGain(0.4f); } } @@ -564,7 +566,7 @@ public class MainWorld { game.audioBackground.setGain(0.1f); game.audioEffect = game.audioMacarena; game.audioEffect.playSound(); - } catch(Exception e){} + } catch(Exception e){e.printStackTrace();} } else if(effectRand < 0.6){ // effet 3 avec 20% de chance