I want to make a game with a design resolution of about 256px width and 144px height. I have sprites at sizes like 16x16 pixels, and my main font is at size 8px.
Of course I still want it to fill the whole screen on for example an iPad, and not be a small frame in the middle. I would like to have the pixels as sharp squares on the screen, making full use of the device’s resolution.
What would be the best way to achieve this? I’ve tried setting this resolution in the “HelloCpp” project, and the contentScaleFactor was 8 (which seems correct). The first problem was that I had to set my CCLabelBMFont’s scale to 8 (by hand) to make the font the right size…Otherwise it would be really really small. And the upscaling was really blurry. I would like simple nearest-neighbor interpolation: One of my design pixels should become a crisp 8x8 square on the device. Is it possible? I don’t want to scale all my assets up by *8 for many reasons…
I’m using cocos2d-x v2.2.3 and tested this on OSX.