Hello there!

I am making games with C++ and SDL, and I want to make procedurally generated tiles, so I'll get an "infinite" -so to say- game world.

Though I have no idea how I would approach this. I have basic knowledge of what I need to know to create this game but this is a problem I can not solve myself.

If you have any ideas how this would be achieved, please tell me! :)

Thanks!

Recommended Answers

All 3 Replies

I will probably call a generation function when needed and then save it directly to the disk, and load it when it is to be drawn onto the screen.

Look out for memory errors and leaks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.