我对andengine非常陌生,正在尝试使用来自git网址https://github.com/nicolasgramlich/AndEngineExamples的andengine示例。
但它总是向我显示两个类中的错误
BoundCameraExample和HullAlgorithmExample中的错误
在bound camera示例中,错误在第220行,显示:
类型不匹配:无法将void转换为AnimatedSprite
final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100);
在 HullAlgorithmExample 中,错误出现在 DrawMode 的导入语句上。 错误显示在第11行:import org.andengine.entity.primitive.vbo.DrawMode; 并且在第168行和175行中指出 DrawMode 无法解析为变量。
我正在使用 Java 编译器 1.6 来编译所有扩展程序。 我从同一 git 存储库中下载了 andengine 和扩展程序。 出了什么问题,请帮帮我。
谢谢大家。