diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-12 14:37:43 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-12 14:37:43 +0200 |
commit | 0d579c6daad93b01e222f6298daf2d1da6d9760c (patch) | |
tree | 1dd36a30c551b7d628407f88811179a4a6aa9d6f /core/src/ch/asynk/tankontank | |
parent | 0b726d59bb278446fc26c174c5db413e2dce47f7 (diff) | |
download | RustAndDust-0d579c6daad93b01e222f6298daf2d1da6d9760c.zip RustAndDust-0d579c6daad93b01e222f6298daf2d1da6d9760c.tar.gz |
set dice texture atlas
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/TankOnTank.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/core/src/ch/asynk/tankontank/TankOnTank.java b/core/src/ch/asynk/tankontank/TankOnTank.java index 18f2e16..f1958ce 100644 --- a/core/src/ch/asynk/tankontank/TankOnTank.java +++ b/core/src/ch/asynk/tankontank/TankOnTank.java @@ -4,6 +4,7 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Game; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.TextureAtlas; import ch.asynk.tankontank.screens.LoadScreen; @@ -27,15 +28,10 @@ public class TankOnTank extends Game Gdx.app.debug("TankOnTank", " load assets : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); manager.load("images/map_a.png", Texture.class); manager.load("images/map_b.png", Texture.class); + manager.load("images/dice.pack", TextureAtlas.class); manager.load("images/cup.jpg", Texture.class); manager.load("images/back.png", Texture.class); manager.load("images/small.png", Texture.class); - manager.load("images/1.png", Texture.class); - manager.load("images/2.png", Texture.class); - manager.load("images/3.png", Texture.class); - manager.load("images/4.png", Texture.class); - manager.load("images/5.png", Texture.class); - manager.load("images/6.png", Texture.class); manager.load("images/turn_back.png", Texture.class); manager.load("images/turn_front.png", Texture.class); manager.load("images/ace.png", Texture.class); @@ -65,15 +61,10 @@ public class TankOnTank extends Game Gdx.app.debug("TankOnTank", "unload assets : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); manager.unload("images/map_a.png"); manager.unload("images/map_b.png"); + manager.unload("images/dice.pack"); manager.unload("images/cup.jpg"); manager.unload("images/back.png"); manager.unload("images/small.png"); - manager.unload("images/1.png"); - manager.unload("images/2.png"); - manager.unload("images/3.png"); - manager.unload("images/4.png"); - manager.unload("images/5.png"); - manager.unload("images/6.png"); manager.unload("images/turn_back.png"); manager.unload("images/turn_front.png"); manager.unload("images/ace.png"); |