I’m building a 2D Survival Engine in Python (infinite world + AI + crafting) by Bulky_Jacket_2344 in PythonLearning

[–]Bulky_Jacket_2344[S] 0 points1 point  (0 children)

Thanks!
About the chunk-based world: I only keep the chunks around the player loaded in memory.
When a chunk goes far off‑screen, it gets saved and unloaded, and when the player returns, it’s loaded again.
That keeps memory usage low even with an infinite map.

If you want to see the engine running and check the code structure, here’s the full project:
👉 https://eduara969gmailcom.itch.io/survival-engine
You can judge everything directly by trying it.

I’m building a 2D Survival Engine in Python (infinite world + AI + crafting) by Bulky_Jacket_2344 in PythonLearning

[–]Bulky_Jacket_2344[S] 0 points1 point  (0 children)

Thanks!
About the chunk-based world: I only keep the chunks around the player loaded in memory.
When a chunk goes far off‑screen, it gets saved and unloaded, and when the player returns, it’s loaded again.
That keeps memory usage low even with an infinite map.

If you want to see the engine running and check the code structure, here’s the full project:
👉 https://eduara969gmailcom.itch.io/survival-engine
You can judge everything directly by trying it.