I am doing a 2D game for android devices how to deal with the resolution problem. The game is not coming fully in most of the devices and in some devices the game is too big so that it goes out of the camera’s view. Some people suggest me to use TK2D, but isn’t there any other way to deal with this!?
You can have two approaches, either you want the game to occupy most of the space or you use only one game.
First case, you then have to develop the game based on screen dimensions. For the game itself it would be the size or field of view of the camera.
Your GUI could be placed using Screen.width and Screen.height so that it automatically scales to the size, the issue being that you may get some square becoming rectangle and vice-versa. In this case, you could use macros to define more precise computations based on the resolutions.
The other way is to make one single game and you place it in the middle of the screen, then you fill the sides with a border. Many games use that so no worries. On top of it, that leaves space for ad banners.