O'Reilly logo

Cocos2d-x Game Development Essentials by Gareth Jones, Arutosh Gurung, Frahaan Hussain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing multiresolution support

This section will cover implementing multiresolution support for all iOS and Android devices.

Firstly, remove all the images from the Resources folder (clean your project using XCode and Eclipse):

Implementing multiresolution support

Open AppDelegate.cpp and modify the bool AppDelegate::applicationDidFinishLaunching() function by adding the code after the director->setAnimationInterval(1.0 / 60); line, as shown in the following screenshot:

Implementing multiresolution support

Let's run through the code added to AppDelegate.cpp:

  • Line 29 is used to help handle file operations.
  • Line 30 gets ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required