Farid Ala
Farid Ala

Reputation: 668

Camera size in andengine for tablets

I'm writing a game specifically for Android tablets, using andengine. If I use fixed camera, andengine will scale the view to fill the device screen. What values I have to use for CAMERA_WIDTH and CAMERA_HEIGHT, so that the game will work fine on most popular tablets? Thanks.

Upvotes: 0

Views: 657

Answers (1)

jmroyalty
jmroyalty

Reputation: 2527

I think you should consider writing for a particular size - say a 7" tablet - the Nexus 7 has a resolution of 1280 x 800. Then let AndEngine use a RatioResolutionPolicy to adjust for the differences in any other screen sizes. See this answer for more info

Sprite size on different screen size Andengine Android

Upvotes: 2

Related Questions