blob: 14e2c7b6eabbb12d79f1b55e1b97034becca4e60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package de.gamezock.metacraft.data;
public class TestMap extends Map {
public TestMap() {
float[][] heightmap = new float[41][41];
for(int x = 0; x < heightmap.length; ++x) {
for(int y = 0; y < heightmap[0].length; ++y) {
heightmap[x][y] = (float)(Math.cos(Math.sqrt((x-20)*(x-20)+(y-20)*(y-20))*Math.PI/4))*0.5f;
}
}
createMapData(heightmap);
}
}
|