Jump to content
  • Advertisement
Sign in to follow this  
JDGamedev

Scaling Tile Sizes to Window Size

This topic is 2163 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've got a simple engine running that allows me to display tiles in an 800 x 648 window. Each tile is 32 x 32, but the look isn't what I'm going for.

What are some simple ways to scale the images to fit a bigger window or to sort of "zoom" in on the tiles so they are bigger than they appear.

I really want the pixel art look, and I'm not sure how to achieve this.

Thanks!

Share this post


Link to post
Share on other sites
Advertisement
I'm not deeply familiar with AWT, but something like this should work: Shrinking and Stretching Images

Basically, you want to draw the image at 2x magnification (or some other factor) so that it looks more pixelated, assuming I understand the effect you're going for correctly :-)

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!