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.
[Please log in to post a comment]