Scrolling and map drawing

Started by
1 comment, last by Syrus 20 years, 3 months ago
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!
Advertisement
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.
Are you using orthographical projection?

I am using tiles but they are very big.


Can you give me your mail so we can talk more about 2D game programming in OGL, maybe i can help you and you can help me.

This topic is closed to new replies.

Advertisement