Separated new game from game initialization in general.
Kludged through map generation!!!
There's now a 200x200 world map, and a 200x200 inner map for every 1x1 world map.
Rather than generating them all initially on world generation, the inner maps (and the surrounding inner maps) are created whenever the player enters then. The inner maps are based on their neighboring inner maps so it all should link together quite nicely. Inner maps are currently just floors and walls, but additional generation can proceed smoothly from here after some code cleanup.
From the picture you can see the world map, a zoom in, the inner map, and another zoom in. The difference in coloring is because I waited till day in the world map but took the screenshot at dawn in the second.
The inner map is a little laggy - something like 60% * 200 * 200 = 24000 wall objects to keep track of. Hopefully it'll be better when I turn fow back on and update doesn't need to draw all of that.
EDIT: And turning back fow does indeed remove the lag. Whew!
No comments:
Post a Comment