multi resolution cocos2dx

  • potatocode
    Likes 1

    Problem Description

    Hi..I am new in cocos2dx and new in game development.

    I still dont understand about multi resolution support in cocos2dx, there are 5 folder in resources (iphone, iphonehd, ipad, ipadhd, iphonehd5) which for supporting resolution for all devices.

    So when I want to make a sprite, for example I want to make hero sprite so do I have to make 5 sprites for those devices (iphone, iphonehd, ipad, ipadhd, iphonehd5)? When my game need 30 including hero, enemy, menu sprite do I have to make 30 sprites * 5 = 150 sprites?

    I download flappy bird source from flappy bird tutorial on youtube (https://github.com/SonarSystems/Cocos2d-x-Flappy-Bird-C---Tutorial-4---Implementing-The-Main-Menu-Scene), In resources It has sprites in ipadhd, iphone, iphonehd. Why there’s no sprites in ipad, iphone5hd? Is it not support those devices?

    FYI I run on windows 7, not mac.

     

    Sorry for my bad english.

  • Sonar Systems admin
    Likes 1

    We are constantly updating our multi resolution method, so the Flappy Bird code has less folders as the others weren’t needed. We will be updating the code so only a single set of assets are required.

  • potatocode
    Likes 0

    Thanks for fast respond..

    So for now we need multi sprite in different size to make multi resolution support?

    Good luck, hope it will be updated soon.


  • Sonar Systems admin
    Likes 0

    Yes you do

  • potatocode
    Likes 0

    By the way, you did not reply my question yet: In Flappy bird source code tutorial, why are there no sprite in ipad and iphone5hd folder? Is there any reason?

     

    What if I make sprite that only support iphone hd (retina display) resolution but not for iphone (without retina display) resolution? does it reduces performance on iphone? or what?

    Then when I make sprite that only support iphone and not for iphone hd, does it make my sprite look awful on iphone hd?

     

    Thank you once again..


  • Sonar Systems admin
    Likes 1

    The reason for no iPad and iPhone5hd is becuase iPhone hd covers all 3 of them.

     

    If you use really high res assets on low end devices then performance can drop depending on the scale of the game but likewise if you use low res assets they won’t look as sharp on high end devices such as retina iphones and ipads.

Login to reply