diff --git a/Breakout/src/main/java/com/almasb/fxglgames/breakout/BreakoutApp.java b/Breakout/src/main/java/com/almasb/fxglgames/breakout/BreakoutApp.java index 884433a5..9aa719f0 100644 --- a/Breakout/src/main/java/com/almasb/fxglgames/breakout/BreakoutApp.java +++ b/Breakout/src/main/java/com/almasb/fxglgames/breakout/BreakoutApp.java @@ -73,17 +73,16 @@ protected void initSettings(GameSettings settings) { settings.setHeight(HEIGHT); settings.setFontUI("main_font.ttf"); settings.setIntroEnabled(true); + settings.setProfilingEnabled(true); settings.setApplicationMode(ApplicationMode.DEVELOPER); } @Override protected void onPreInit() { - getSettings().setGlobalMusicVolume(0); - getSettings().setGlobalSoundVolume(0); + getSettings().setGlobalMusicVolume(0.5); + getSettings().setGlobalSoundVolume(0.5); - if (!getSettings().isExperimentalNative()) { - loopBGM("BGM.mp3"); - } + loopBGM("BGM.mp3"); } @Override @@ -201,9 +200,7 @@ private void animateCamera(Runnable onAnimationFinished) { } private void playHitSound() { - if (!getSettings().isExperimentalNative()) { - play("hit.wav"); - } + play("hit.wav"); } @Override