I’ve been struggling with Cocos2d-x (C++) and finally I got to the point I feel more or less comfortable with that.
My game is a 2D car-based one, with a straight infinite map where I’ve finally been able to add some random obstacles. There are only 3 positions the car can be at, and everything is working fine.
The point is that I’ve recently noticed that it is not responsive, and tried to make it responsive by adding a line like these one to the AppDelegate.cpp:
glview->setDesignResolutionSize(1024.0, 600.0, kResolutionFixedWidth);
I’ve tried to use kResolutionFixedWidth, kResolutionFixedHeight and all others 5 variables you can put there, but I only got black lines along the screen and every single screen breakdown you can imagine -.-‘
I can figure out I need to resize my TMXTiledMap manually because of the nature of tiles (I did it with Tiled), but I don’t know how to face this problem.
Note that I’m currently developing for a 1024×600 Android device but I would want to support at least the most common resolutions for both tablets and smartphones.
Thanks in advance to anyone who can help me in some way.