Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Scaling Tile Sizes to Window Size


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 JDGamedev   Members   -  Reputation: 239

Like
0Likes
Like

Posted 17 July 2012 - 02:54 PM

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!
I'm on a quest to become a better game developer, check it out.

Ad:

#2 ApochPiQ   Moderators   -  Reputation: 7545

Like
0Likes
Like

Posted 17 July 2012 - 03:08 PM

How are you rendering the tiles? What language/API/framework/etc.?

#3 JDGamedev   Members   -  Reputation: 239

Like
0Likes
Like

Posted 17 July 2012 - 03:26 PM

I'm using Java. No added API. Just the awt and swing that come with it.
I'm on a quest to become a better game developer, check it out.

#4 ApochPiQ   Moderators   -  Reputation: 7545

Like
1Likes
Like

Posted 17 July 2012 - 03:49 PM

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 :-)

#5 JDGamedev   Members   -  Reputation: 239

Like
0Likes
Like

Posted 17 July 2012 - 04:45 PM

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

Time to start fiddling...
I'm on a quest to become a better game developer, check it out.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS