diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-22 06:45:31 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-22 06:45:31 +0100 |
commit | 7da8beb96a470d919ccf4eee1311ac1958234689 (patch) | |
tree | 7cd817f907d68a380e654c7530b80bdf695f1b73 /core/src/ch/asynk | |
parent | a64556c077d4fdee8b0005582b0493dc1b23087d (diff) | |
download | RustAndDust-7da8beb96a470d919ccf4eee1311ac1958234689.zip RustAndDust-7da8beb96a470d919ccf4eee1311ac1958234689.tar.gz |
add type.mp3 and enter.mp3
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/RustAndDust.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index ac6e4eb..d11f828 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -47,6 +47,8 @@ public class RustAndDust extends Game public static final String SND_EXPLOSION_SHORT = "sounds/explosion_short.mp3"; public static final String SND_PROMOTE_US = "sounds/promote_us.mp3"; public static final String SND_PROMOTE_GE = "sounds/promote_ge.mp3"; + public static final String SND_TYPE = "sounds/type.mp3"; + public static final String SND_ENTER = "sounds/enter.mp3"; public static final String UI_OK = "ok"; public static final String UI_CANCEL = "cancel"; @@ -74,6 +76,8 @@ public class RustAndDust extends Game public BitmapFont font; public NinePatch bgPatch; public NinePatch framePatch; + public Sound typeSnd; + public Sound enterSnd; public enum State { @@ -126,6 +130,8 @@ public class RustAndDust extends Game state = State.NONE; loadUiAssets(); + typeSnd = manager.get(SND_TYPE, Sound.class); + enterSnd = manager.get(SND_ENTER, Sound.class); switchToMenu(); } @@ -207,6 +213,8 @@ public class RustAndDust extends Game private void loadUiAssets() { + manager.load(SND_TYPE, Sound.class); + manager.load(SND_ENTER, Sound.class); manager.load(ATLAS_UI, TextureAtlas.class); manager.finishLoading(); uiAtlas = manager.get(ATLAS_UI, TextureAtlas.class); @@ -226,6 +234,8 @@ public class RustAndDust extends Game { font.dispose(); manager.unload(ATLAS_UI); + manager.unload(SND_TYPE); + manager.unload(SND_ENTER); } private void loadMenuAssets() |