andengine的基础知识(1)

使用的是AndEngine ES2。在github上可以搜索到。将所有的包下载下来在同一个工作区间即可。只是会有一些错误。

1.将org.andengine.examples.HullAlgorithmExample.Java文件中

import org.andengine.entity.primitive.vbo.Mesh;
改为

import org.andengine.entity.primitive.Mesh;
2.将org.andengine.examples.TextBreakExample.java文件中

this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, Text.LEADING_DEFAULT, HorizontalAlign.CENTER), vertexBufferObjectManager);
改为

this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, Text.LEADING_DEFAULT, AUTOWRAP_WIDTH,HorizontalAlign.CENTER), vertexBufferObjectManager);
3.将org.andengine.examples.BoundCameraExample.java文件和org.andengine.examples.SplitScreenExample.java文件中

final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100);
改为

final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager());
face.animate(100)

环境搭建完成。

二:

 

posted @ 2017-08-27 00:06  rubbery  阅读(112)  评论(0)    收藏  举报