DEADSOFTWARE

Add drop and block breaking
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / misc / Assets.java
index 14575a37ad1b41ef4b752461cace75149eef5fb4..e28c322d3732bb9228b6f1c2ae6c3f48a32be667 100644 (file)
@@ -11,7 +11,7 @@ import ru.deadsoftware.cavecraft.CaveGame;
 public class Assets {
 
     public static final int BLOCK_TEXTURES = 66;
-    public static final int ITEM_TEXTURES = 5;
+    public static final int ITEM_TEXTURES = 10;
 
     private static GlyphLayout layout;
 
@@ -41,6 +41,9 @@ public class Assets {
     public static TextureRegion invBarCur;
     public static TextureRegion guiCur;
 
+    public static Texture wreckTexture;
+    public static TextureRegion[] wreck = new TextureRegion[10];
+
     public static Texture creativeTexture;
     public static TextureRegion creativeInv;
     public static TextureRegion creativeScroll;
@@ -124,6 +127,11 @@ public class Assets {
         creativeScroll = new TextureRegion(creativeTexture, 3, 137, 12, 15);
         creativeScroll.flip(false, true);
 
+        wreckTexture = new Texture(Gdx.files.internal("break.png"));
+        for (int i=0; i<10; i++) {
+            wreck[i] = new TextureRegion(wreckTexture, 16*i, 0, 16, 16);
+        }
+
         if (CaveGame.TOUCH) {
             touchGui = new Texture(Gdx.files.internal("touch_gui.png"));
             for (int i = 0; i < 4; i++) {