Skip to main content

scaling ccdirector cocos2d



I'm making a pixel art app and the resolution is 320x240. I want to scale some how ccdirector or eaglview to fit full device screen.





I tried setContentScaleFactor in ccdirector and eaglview or else eagllayer, but it appears work differently in those cases, and didn't get what I want in any.





What is the correct way to do that?





Currently I'm scaling the CCScene, but when some sprite isn't in integer number, they stay in the middle of pixel grid, what is not correct.


Comments

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?