Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Scrolling and map drawing

This topic is 5241 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!