Jump to content
  • Advertisement
Sign in to follow this  
yewbie

Is this ia pretty good way of drawing for a tile based game?

This topic is 3959 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

Basically what I do is draw my map of 50x50 pixel squares, max of 150x150 (50x50 squares) of these squares to a offscreen surface, I have 5 different layers and it draws them in order, and for animation of tiles if our current viewport is over said animated tile it updates the offscreen surface in that location through all of the layers 1 -5 if they are there... is this a pretty good method? heh im getting a decent fps even on low end systems. the struct containing the map information is updated with the animations if its on screen or not but the graphic is only redrawn if its in the on screen area + 2 tiles in each direction for scrolling purposes.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!