Tag: Procedural generation
-
Generating terrain in an infinite world
It would be impossible to hand craft an infinite world, so instead I generate a terrain sprite outside the camera viewport. I use the length of the camera and terrain rectangles, the direction the player is currently moving in and circles to position the terrain, so it is always just outside the viewport. Old terrain…