Multi Resolution Support with Cocos2d-JS v3

Cocos2d-JS v3
  • efares
    Likes 0

    Problem Description

    Hi,

    At the start of the video you used cc.sys.isNative but what is the difference between cc.sys.isNative and cc.sys.isMobile?
    I am making a game that can only be played in Landscape. Is there problem with just using:

    cc.view.setDesignResolutionSize(cc.view.getFrameSize().width, cc.view.getFrameSize().height, cc.ResolutionPolicy.SHOW_ALL);

    Is that bad practice to just have that 1 line if my target platform is mobile (Android and iPhone only)

  • Sonar Systems admin
    Likes 0

    isNative includes desktop as well and non native is web but mobile is just native mobile devices.

     

    Hope that helps.


    This reply has been verified.
  • efares
    Likes 0

    Out of curiosity, does iPad count as mobile as well or is that Native too?


    This reply has been verified.
  • Sonar Systems admin
    Likes 1

    iPad is mobile.

Login to reply