Trouble with sprite sheets & blurry pixels

I am making small sprites in GraphicsGale, most are under 30x30 pixels, as I am trying to make a game with an authentic Atari  2600 look.

I want the pixels to have crisp edges, but when I display these images in the simulator they look very blurry(from what I have read this is from anti-aliasing).

I solved that by using this code I found somewhere:

     display.setDefault( “magTextureFilter”, “nearest” )

local x, y = display.contentHeight - 300, display.contentHeight - 300

local lolli = display.newRect( x, y, display.contentWidth, display.contentHeight )

      alien.fill ={ type=“image”, filename=“Alien.png”, }

   alien.fill.scaleX = 0.3

   alien.fill.scaleY = 0.3

That works and the pixels look great, but how would I use that with a Sprite Sheet.

How would I get small, low pixel sprites from a sprite-sheet and keep the pixels looking sharp?

Thanks very much.

-Eric

Hi Eric,

The default filter you apply (“magTextureFilter”) applies to all textures loaded by Corona, whether they come from an image file or as a frame from an image sheet. Are you seeing otherwise?

Best regards,

Brent

Thanks Brent-

I realize this now. I was making it to complicated. It is working great now, I just put the (“magTextureFilter”) in and all they all come out no problem.

Hi Eric,

The default filter you apply (“magTextureFilter”) applies to all textures loaded by Corona, whether they come from an image file or as a frame from an image sheet. Are you seeing otherwise?

Best regards,

Brent

Thanks Brent-

I realize this now. I was making it to complicated. It is working great now, I just put the (“magTextureFilter”) in and all they all come out no problem.