当前位置: 首页>>代码示例>>Java>>正文


Java ScreenOrientation.LANDSCAPE_SENSOR属性代码示例

本文整理汇总了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;
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:8,代码来源:GameActivity.java

示例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;
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:9,代码来源:AbstractGameActivity.java

示例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;
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:10,代码来源:GameActivity.java

示例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);
}
 
开发者ID:PLNech,项目名称:BactMan-Adventures,代码行数:5,代码来源:LandscapeGameActivity.java

示例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);
}
 
开发者ID:mmlevin,项目名称:secu3droid,代码行数:6,代码来源:DashBoardActivity.java


注:本文中的org.andengine.engine.options.ScreenOrientation.LANDSCAPE_SENSOR属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。