In this example, we are setting the frame size of the game view to be 640 pixels wide and 960 pixels tall. This is a common resolution for iPhone games. Example 2:c++ void GameScene::onEnter() { CCLayer::onEnter(); CCEGLView* view = CCEGLView::sharedOpenGLView(); view->setFrameSize(800, 600); view->setDesignResolutionSize(800, 600, kResolutionNoBorder); CCDirector::sharedDirector()->setContentScaleFactor(800.0/view->getFrameSize().width); } ``` In this example, we are setting the frame size of the game view to be 800 pixels wide and 600 pixels tall. We are also setting the design resolution size to be the same as the frame size with a no border scaling policy. Finally, we are setting the content scale factor based on the ratio between the design resolution and the frame size. Package/library: Cocos2d-x.