80,352
社区成员
发帖
与我相关
我的任务
分享
public Engine onLoadEngine() {
mCamera=new Camera(0, 0,Setting.CAMERA_WIDTH,Setting.CAMERA_HEIGHT);
return new Engine(new EngineOptions(true,ScreenOrientation.LANDSCAPE,new RatioResolutionPolicy(Setting.CAMERA_WIDTH,Setting.CAMERA_HEIGHT),this.mCamera));
}
public void onLoadResources() {
mBackGroundTexture=new BitmapTextureAtlas(512,1024,TextureOptions.BILINEAR_PREMULTIPLYALPHA);
mBackGroundTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(this.mBackGroundTexture,this,"bejeweled.png",0,0);
this.mEngine.getTextureManager().loadTextures(this.mBackGroundTexture);
public Scene onLoadScene() {
this.mEngine.registerUpdateHandler(new FPSLogger());
mScene=new Scene();
Sprite mBackGroundSprite=new Sprite(0, 0, mBackGroundTextureRegion);
mBackGroundSprite.setSize(Setting.CAMERA_WIDTH,Setting.CAMERA_HEIGHT);
mScene.attachChild(mBackGroundSprite);
return mScene;