DEADSOFTWARE

Add input handling
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / WorldGen.java
1 package ru.deadsoftware.cavecraft.game;
3 public class WorldGen {
5 private static int[][] foreMap, backMap;
7 static void genWorld(int width, int height) {
8 foreMap = new int[width][height];
9 backMap = new int[width][height];
10 for (int x=0; x<width; x++) {
11 for (int y=height-6; y<height; y++) {
12 foreMap[x][y]=1;
13 backMap[x][y]=1;
14 }
15 }
16 }
18 static int[][] getForeMap() {
19 return foreMap;
20 }
22 static int[][] getBackMap() {
23 return backMap;
24 }
26 static void clear() {
27 foreMap = null;
28 backMap = null;
29 }
30 }