Low Resolution Games: Blurry screen. Best fix?

Hi there.

I’m a big fan of old games, so I’m working on some low-res projects. However, I cannot get cooperation from the simulator. I haven’t built for Android or iOS yet, so maybe it’s nothing, but whenever I start the sim, the image shows up as blurry. And by blurry, I don’t mean anti-aliased. It looks resampled or filtered.

I’m using a map with Lime right now, so that may also be an issue, but here’s the app code:

[lua]local back = display.newRect(0, 0, display.contentWidth, display.contentHeight)
back:setFillColor(165, 210, 255)

local lime = require (“lime”)

local map = lime.loadMap(“test.tmx”)

local visual = lime.createVisual(map)[/lua]

And here is my config.lua:

[lua]application = {
content = {
width = 160,
height = 240,
scale = “zoomStretch”,
fps = 30,
xAlign = “left”,
yAlign=“top”,
antialias=false

}
}[/lua]

I’d really like to see the blur gone if at all possible. Thanks. Any help is appreciated. [import]uid: 30399 topic_id: 22919 reply_id: 322919[/import]

Corona filters graphics when they are zoomed in, there’s nothing you can do about it except scale the image files themselves to the size you want. I submitted a bug/feature request to allow choosing which filter to apply to objects, so maybe that will happen sooner rather than later.

If your graphics don’t contain many colors, you might be able to scale them to the size you want without blowing up the file size. I ran my graphics through ImageAlpha from http://pngmini.com/ and it drastically reduced their filesize, and kept the visuals pretty much the same. [import]uid: 120 topic_id: 22919 reply_id: 91547[/import]

Thanks for the info. Much appreciated. I’m trying to find a decent pixel art program for the Mac. I have Pixemator, which is fantastic for editing, but low res stuff is a pain.

Thanks for the link, too. I’m planning on my first project being a GameBoy-styled game, so I can definitely use it. 4 colors max. Count me in.

Thanks again. [import]uid: 30399 topic_id: 22919 reply_id: 91549[/import]

I feel your pain. I ran into the same issue. What I did to work around the issue is I increased the size of all my images and sprites in a paint program so the images would not be stretched as much and blurry on devices and in the simulator. I used the following width and height in my config file.

application =   
{  
 launchPad = false,  
 content =   
 {   
 width = 480,  
 height = 800,  
 scale = "zoomStretch",  
 fps = 60  
 }  
}  

[import]uid: 38820 topic_id: 22919 reply_id: 91593[/import]

I like Acorn better than Pixelmator. Bought both but only use Acorn. [import]uid: 10389 topic_id: 22919 reply_id: 91637[/import]

Thanks for the info, everyone.

So, if I’m getting this right, I can basically “over shoot” the screen specs, and it’ll scale “down” to the screen, and not be blurred out? Does it hammer on the system at all?

I may need to check out another engine. I rather like Corona, but if it’s going to have this sort of a massive flaw in the design, I’ll need to wait until they remove it. [import]uid: 30399 topic_id: 22919 reply_id: 91852[/import]