Hey.
I’m going to write a simple ship shooting game as CG homework, so I’m planning to use some map system (though there’s no need for that, it’ll be an “extra”) and I have no clue about how to represent a map and show it ‘in parts’, I mean, not all map will be visible in a single frame.
How do people usually work with that?
Hey. I’m going to write a simple ship shooting game as CG homework, so
Share
Consider using a QuadTree. It breaks your map down into small components based by area. It lets you define how much space you want to see, which makes it ideal for zooming in and out, or panning around.
There’s a C# implementation you could probably adapt to be C++ fairly easily.