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);
環境搭建完成。
andengine的基礎知識(1)