Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (tile.cacheHeight == null) {
- if (z == 0) {
- tileHeights[0][x][y] = -HeightCalc.perlinNoise(baseX + x + 0xe3b7b, baseY + y + 0x87cce) * 8
- } else {
- tileHeights[z][x][y] = tileHeights[z - 1][x][y] - 240
- }
- } else {
- var height: Int = tile.cacheHeight!!
- if (height == 1) {
- height = 0
- }
- if (z == 0) {
- tileHeights[0][x][y] = -height * 8
- } else {
- tileHeights[z][x][y] = tileHeights[z - 1][x][y] - height * 8
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment