Sign in to follow this  
orcfan32

Would this matter?

Recommended Posts

I want to make a game in SDL where it uses 32x32 tiles. The problem is: 32 goes into 800 25 times, but does not go into 600 perfectly even. I have to have the game 800x600. It's easy to work with and also allows me to place many tiles on the screen. So, could I take 600 and make it 608 for the resolution? Or would it not be a good idea? The only way to get into 608 is by taking 8 from 32 and keep adding it up, but having 8x8 tiles is a horrible idea.

Share this post


Link to post
Share on other sites
Depending on what framework you are using you can have the "palette" that you draw your tiles onto be bigger than the actual screen size. You then copy the appropriate portion from your rendering space to the back buffer and display it. That also makes it easier to implement smooth scrolling.

Share this post


Link to post
Share on other sites

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