Scaling Tile Sizes to Window Size

Started by
3 comments, last by JDGamedev 11 years, 9 months ago
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!
Advertisement
How are you rendering the tiles? What language/API/framework/etc.?

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

I'm using Java. No added API. Just the awt and swing that come with it.
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 :-)

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

That's exactly what I was going for. Thanks a bunch

Time to start fiddling...

This topic is closed to new replies.

Advertisement