Skip to content

Instantly share code, notes, and snippets.

@Majirefy
Created March 20, 2017 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Majirefy/44d387dc51bd08a69101248f12b88bb0 to your computer and use it in GitHub Desktop.
Save Majirefy/44d387dc51bd08a69101248f12b88bb0 to your computer and use it in GitHub Desktop.
fun loadAssets() {
manager.load(Resources.BACKGROUND_MUSIC, Music::class.java)
manager.load(Resources.SOUND_BLOP, Sound::class.java)
manager.load(Resources.SOUND_BUZZ, Sound::class.java)
manager.load(Resources.SPRITES_ATLAS_PATH, TextureAtlas::class.java)
manager.load(Resources.FONT_PATH, BitmapFont::class.java)
manager.load(Resources.GAME_OVER_FONT_PATH, BitmapFont::class.java)
manager.load(Resources.GAME_OVER_SCORE_FONT_PATH, BitmapFont::class.java)
manager.finishLoading()
loadAtlas()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment