Open ghost opened 1 year ago
Nice -- this is similar to the original intention, though yours a bit more sophisticated (nice!). Note that pressing 'g' is just for development, i.e. we can control turning off terrain-gen as needed, so definitely not a feature of the finished version.
Like the idea about using direction of player movement.
EDIT: Just realized this was in a later part, whoops (Different method I suppose?)
I'm on fire today and wanted a better system to generate chunks than to constantly press "g", and that was to generate chunks similar to how Minecraft handles it's chunk generation.
By telling the system to generate only when the player has moved a distance. Note, that this system is not perfected and I would like the swirl engine take into account the players direction (i.e. north, south, east, etc) and swirl from that starting position, I just haven't figured out a way to implement it (and the player move detection really needs to be improved).
(Note: My files are named differently and vise versa for my variables)
main.py
swirl_chunks.py
terrain.py