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! :)


Recommended Answers

There are a variety of ways to create content this way... which one you choose will depend on what kind of game you're creating and your personal tastes. Suggesting reading to get you started:

Jump to Post

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, learning, and sharing knowledge.