Log In  

Cart #34221 | 2016-12-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Generates random forest 128x128 large blocks, each block consist of 16x16 tiles (so, entire forest size is 16384x16384 pixels)

Overall layout is generated with diamond-square algorithm. Each large block is 16x16 tiled biom which has biom type 0..7 (0 is water, 1 is swampy, 2..4 are rather clean, 5..6 are deeper, 7 is almost impassable) and seed number to generate biom content. So if you run far away then return - biom will be regenerated as it was originally, without changes.

Then 4x4 bioms around player are generated and copied to map. When you walk, every 16 tiles map is shifted and next 4 bioms are generated using corresponding seeds.

Z, Y - cycle through game view, layout view and 4x4 map view.

There is no point yet. You can find owl, but you cannot win still. Also, forest is looped and it wraps around every 2048 tiles.

P#34222 2016-12-26 15:37 ( Edited 2016-12-26 20:51)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-08-18 02:15:07 | 0.005s | Q:9