Sign in to follow this  

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

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

This topic is 3598 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this