Jump to content
  • Advertisement
Sign in to follow this  
orcfan32

Would this matter?

This topic is 4616 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 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
Advertisement
Why not just make your tile space 25x18 tiles, then use the extra 24 pixels for UI stuff (stats, status bar, fps, whatever)?

Share this post


Link to post
Share on other sites
You could just show parts of tiles (which you're going to have to do anyway, if you implement smooth scrolling).

Share this post


Link to post
Share on other sites
No. It would just be a bit bigger. But as Mushu suggested, you can use the left-over pixels for date like fps, health or something, money or something, you know, stuff like that.

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
Sign in to follow this  

  • 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!