Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (value >= 128) {
- for (int i = 0; i < value - 128; i++) {
- tiles.get(tile++).terrianHeight = (byte) (lastValue);
- }
- }
- }
- lastValue = 64;
- for (int w = 0; w < 48; w++) {
- for (int h = 0; h < 48; h++) {
- lastValue = tiles.get(h * 48 + w).terrianHeight + lastValue & 0x7f;
- tiles.get(h * 48 + w).terrianHeight = (byte) (lastValue * 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement