本文整理汇总了Java中org.andengine.engine.options.ScreenOrientation.LANDSCAPE_SENSOR属性的典型用法代码示例。如果您正苦于以下问题:Java ScreenOrientation.LANDSCAPE_SENSOR属性的具体用法?Java ScreenOrientation.LANDSCAPE_SENSOR怎么用?Java ScreenOrientation.LANDSCAPE_SENSOR使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.andengine.engine.options.ScreenOrientation
的用法示例。
在下文中一共展示了ScreenOrientation.LANDSCAPE_SENSOR属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateEngineOptions
@Override
public EngineOptions onCreateEngineOptions() {
EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_SENSOR,
new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), main_camera);
engineOptions.getAudioOptions().setNeedsSound(true);
engineOptions.getAudioOptions().setNeedsMusic(true);
return engineOptions;
}
示例2: onCreateEngineOptions
@Override
public EngineOptions onCreateEngineOptions() {
Logger.log(TAG, "onCreateEngineOptions");
Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_SENSOR,
new FillResolutionPolicy(), camera);
engineOptions.getAudioOptions().setNeedsSound(true);
return engineOptions;
}
示例3: onCreateEngineOptions
@Override
public EngineOptions onCreateEngineOptions() {
Logger.log(TAG, "onCreateEngineOptions");
Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_SENSOR,
new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), camera);
engineOptions.getAudioOptions().setNeedsSound(true);
return engineOptions;
}
示例4: getEngineOptions
@Override
public EngineOptions getEngineOptions() {
gameCamera = new SmoothCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT, MAX_SPEED_X, MAX_SPEED_Y, MAX_ZOOM_CHANGE);
return new EngineOptions(true, ScreenOrientation.LANDSCAPE_SENSOR, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), gameCamera);
}
示例5: onCreateEngineOptions
@Override
public EngineOptions onCreateEngineOptions() {
createDashboardFromXml(R.xml.nfs_portrait);
Camera camera = new Camera(0, 0, dashBoard.getWidth(), dashBoard.getHeight());
return new EngineOptions(true, ScreenOrientation.LANDSCAPE_SENSOR, new RatioResolutionPolicy(dashBoard.getWidth(), dashBoard.getHeight()),camera);
}