DEADSOFTWARE

Add different blocks
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / WorldGen.java
index faf98ed5e50e815b37863bd314f9922c6e83b8ef..96aedf3be559de55122d66030c3c0d6a0c4ee84d 100644 (file)
@@ -8,9 +8,17 @@ public class WorldGen {
         foreMap = new int[width][height];
         backMap = new int[width][height];
         for (int x=0; x<width; x++) {
-            for (int y=height-16; y<height; y++) {
-                foreMap[x][y]=1;
-                backMap[x][y]=1;
+            for (int y=height-8; y<height; y++) {
+                if (y==height-8) {
+                    foreMap[x][y] = 3;
+                    backMap[x][y] = 3;
+                } else if (y<height-4) {
+                    foreMap[x][y] = 2;
+                    backMap[x][y] = 2;
+                } else {
+                    foreMap[x][y] = 1;
+                    backMap[x][y] = 1;
+                }
             }
         }
     }