Scrolling and map drawing
I am creating 2D game in OGL and i wonder what would be the best way to create map scrolling and map drawing, i think i could use only camera but there must be something else...
Any help and answers or guides i will appreciate much
Thx!
For the drawing of the map, you could use textured quads (assuming that your map is a tile-map).
Then you could write a camera object to handle rotation and transformation of the matrix (rotate and move the camera).
Then you just rotate the camera so it points straight down at the map.
I have used that solution, and it worked well for me
"The mistakes are all waiting to be made.
Then you could write a camera object to handle rotation and transformation of the matrix (rotate and move the camera).
Then you just rotate the camera so it points straight down at the map.
I have used that solution, and it worked well for me
"The mistakes are all waiting to be made.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement