andeningeを使用してゲームを開発しています。固定カメラの幅と高さandengineを使用して異なる画面解像度でゲームを実行する方法
private static final int CAMERA_WIDTH = 480;
private static final int CAMERA_HEIGHT = 320;
@Override
public Engine onLoadEngine(){
this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
final Engine engine = new Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE, new FillResolutionPolicy(), this.mCamera).setNeedsSound(true));
return engine;
}
ゲームでは、建物サイズの画像は(1020x400)です。 camera_widhthとcamera_heightが480,320の場合は建物ビューが正しく表示されます。 andengine(同じ建物の画像サイズを使用)を使用して、異なる画面解像度でゲームを実行する方法。
それ以外の場合は、すべての画面解像度の建物画像を変更する必要がありますか?