Understanding resolution policies
In the previous section, we configured the engine with FillResolutionPolicy
. Dealing with different screen resolutions can be a big issue, and it is one of the most difficult topics to grasp for beginners. Especially for the first game, you should choose a single resolution and prepare all your graphics assets as if you were showing them in this resolution only. Let the engine deal with scaling and shrinking.
As you have learned before, AndEngine deals with different screen resolutions and rations by using resolution policies. There are several of them, and they are suitable for different scenarios.
Let's say you want to work with a resolution of 800 x 480 px. Your square is 80 x 80 px large. Let's add three of ...
Get Learning AndEngine now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.