何银青-利用上课时间,就给我打这么点代码

来源:互联网 发布:交互动画设计软件 编辑:程序博客网 时间:2024/05/16 18:10


public class StartActivity extends BaseGameActivity {
prvite static final int CAMERA_WIDTH=480;
private static final int CAMERA_HEIGHT=320;
private Camera mCamera;
private Texture mTexture;
private TextureRegion mSplashTextureRegion;

 public Engine onLoadEngine(){
this.mCamera=new Camera(0,0,CAMERA_WIDTH,
CAMERA_HEIGHT);
return new Engine(new EngineOptions(true,
ScreenOrientation.LANDSCAPE,
new RatioResolutionPolicy(CAMERA_WIDTH,
CAMERA_HEIGHT),
this.mCamera));
 }
  public void onLoadResources(){
 this.mTexture=new Texture(512,512,
 TextureOptions.BILINEAR_PREMULTIPLYALPHA);
 this.mSplashTextureRegion=+++++++++++
 
 

  

//这边就是我标注的了。

//代码的作用是测试andEngine 游戏引擎的初始作用。可惜的是,Texture这个类的引入始终是出现问题。

//又由于别的原因,放弃了学习游戏引擎。

//然后。从今天起。

//也就是2015年6月5日,,我要开始写项目。

//这两天,除了把IT项目作业补回来,小大师的作业给补回来,还有就是

//设计一个好玩的APP应用。

0 0