cocos2d / cocos2d-html5

Cocos2d for Web Browsers. Built using JavaScript.
https://www.cocos.com
3.07k stars 902 forks source link

Resolution Change after Init [feature / question] #2158

Closed hsdk123 closed 10 years ago

hsdk123 commented 10 years ago

Hi, I'm currently creating an editor based around cocos2d-html5.

I was wondering if it would be possible to change the resolution of the game after init. (So that designers can change the game resolution and see what looks better, etc.)

dingpinglv commented 10 years ago

Hi @hsdk123 ,

Please see the cc.view.setDesignResolutionSize and cc.view's APIs.

Our js-moonwarriors has a simulator at simulator.html.

Good luck! David

hsdk123 commented 10 years ago

@dingpinglv Thanks for the reply - working nicely :+1: