graphics.scale not working as expected

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
DXT
Prole
Posts: 7
Joined: Tue Sep 20, 2011 3:41 am
Location: Germany

graphics.scale not working as expected

Post by DXT »

I have my levels built out of 32x32 tiles and i accomplished to load and draw them. Now, the plan is to zoom the camera in a bit to get a pixely look. So I tried love.graphics.scale(2). But instead of a pixely look like in a paint-program with a zoom factor set to 200%, I got anti-alised and unsharp tiles as well as thin rifts between tiles. So, i need another way to zoom my camera in like in paint.net or tiled map editor. Do you have any tips for me?

I also included the .love if you want to see it. you can navigate the camera with arrowskeys and change zoom factor with '1'- and '2'-keys
Attachments
RPG_Projekt.love
(13.75 KiB) Downloaded 159 times
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: graphics.scale not working as expected

Post by bmelts »

If you want the pixelly look, you'll need to set the filter mode of your images to nearest-neighbor interpolation, which will make things pixelly and aliased-looking.
DXT
Prole
Posts: 7
Joined: Tue Sep 20, 2011 3:41 am
Location: Germany

Re: graphics.scale not working as expected

Post by DXT »

wow. This was easier than expected! Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 232 guests