diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-11-22 16:16:50 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-11-22 16:16:50 +0100 |
commit | 0519f5e216bebdc9ea3ebe75d053dac99e9e1d98 (patch) | |
tree | 31003dba763259c7ced2e778b4ee76dcb5f568a6 | |
parent | 5ecd8d53992ca86a869aa5c7936ae6c4e4867158 (diff) | |
download | gdx-boardgame-0519f5e216bebdc9ea3ebe75d053dac99e9e1d98.zip gdx-boardgame-0519f5e216bebdc9ea3ebe75d053dac99e9e1d98.tar.gz |
Assets : support Sound
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Assets.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Assets.java b/core/src/ch/asynk/gdx/boardgame/Assets.java index 3402430..d065d76 100644 --- a/core/src/ch/asynk/gdx/boardgame/Assets.java +++ b/core/src/ch/asynk/gdx/boardgame/Assets.java @@ -1,5 +1,6 @@ package ch.asynk.gdx.boardgame; +import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; @@ -27,4 +28,9 @@ public class Assets extends AssetManager { return get(assetName, BitmapFont.class); } + + public Sound getSound(String assetName) + { + return get(assetName, Sound.class); + } } |