Pixel Art Native Resolution

Hi,

I am working on a game based purely on pixel art, and was wondering if all used any specific settings in the config.lua to pertain to this art style. I have decided to scale my artwork so that the game is designed with a native resolution of 96x144. This is proportional to 320x480, and my scaling configuration (a pixel-perfict configuration I found online) shows the content as the full width of the screen.

I am mainly wondering if it is okay to adjust the default height/width of the content screen so that everything is easier for me to scale/work with.

For those of you wondering, here is my config.lua:

local w, h = display.pixelWidth, display.pixelHeight local modes = { 1, 1.5, 2, 3, 4, 6, 8 } local \_ws, \_hs = 96, 144 local \_w, \_h, \_m = w, h, 1 for i = 1, #modes do local m = modes[i] local lw, lh = w / m, h / m if lw \< \_ws or lh \< \_hs then break else \_w, \_h, \_m = lw, lh, m end end if \_m \< 2 then local scale = math.max(\_ws / w, \_hs / h) \_w, \_h = w \* scale, h \* scale end application = { content = { width = \_w, height = \_h, scale = 'letterbox', fps = 60, imageSuffix = { ['@2x'] = 1.1, ['@4x'] = 2.1 } } }

Thanks!

I don’t understand why you are dynamically scaling the width and height?  Surely if your art is constrained you would want to set the canvas to say 640 x 960 and scale the resolution with @2x for retina graphics.  Otherwise your canvas size is going to change per device and provide a non-consistent UX.  Not to mention that all your UI will be a nightmare.

Games should look the same across devices… what should change is the pixel density of your artwork. 

I don’t understand why you are dynamically scaling the width and height?  Surely if your art is constrained you would want to set the canvas to say 640 x 960 and scale the resolution with @2x for retina graphics.  Otherwise your canvas size is going to change per device and provide a non-consistent UX.  Not to mention that all your UI will be a nightmare.

Games should look the same across devices… what should change is the pixel density of your artwork.