Skip to content

Instantly share code, notes, and snippets.

@Majirefy
Created March 20, 2017 01:02
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/248f66fc0ea5b3177850d5cc3ea47f5c to your computer and use it in GitHub Desktop.
Save Majirefy/248f66fc0ea5b3177850d5cc3ea47f5c to your computer and use it in GitHub Desktop.
private fun loadAtlas() {
textureAtlas = manager.get(Resources.SPRITES_ATLAS_PATH, TextureAtlas::class.java)
for (e in Resources.RegionNames.values()) {
textureMap.put(e.name, textureAtlas.findRegion(e.str))
}
for (e in Resources.AnimationNames.values()) {
animationMap.put(e.name, createAnimation(e.array))
}
makeFonts()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment