blob: 58a6bbaa84034c0dcb7f458c33346dbf061e0d99 (
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.pow((Math.cos(x*Math.PI/4)+Math.cos(y*Math.PI/4)), 3)*0.2f;
}
}
createMapData(heightmap);
}
}
|