[SOLVED] setDesignResolutionSize: kResolution vs ResolutionPolicy

When I was building my game, it said that kResolution was deprecated. I’m wondering if there is an undeprecated version?

I did come across ResolutionPolicy but it said it didn’t work on Android. I want something that works on Android, Windows and iOS if possible.

You can watch these tutorials. I think this is the best way to handle multiple resolutions on different platforms.

Those videos have been really helpful. I noticed they are using ResolutionPolicy but is that the updated version of kResolution?

I couldn’t tell you that, I don’t know what kResolution is, I don’t really have experience with v2.x

I followed this: http://www.cocos2d-x.org/wiki/Multi_resolution_support except it is in outdated docs. It uses kResolution but I guess it is outdated just like the docs.

Ah I see. It’s the same principle, just that kResolutionNoBorder is now called ResolutionPolicy::NO_BORDER etc. Mostly naming changes.

That names were used in cocos2d-x Version 2