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!

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.