SimpleLevelLoader class not found in AndEngine GLES2

醉酒当歌 提交于 2019-12-10 13:16:13

问题


Am new in AndEngine. While working from a AndEngine Tutorial , following classes are not found. I tried with importing all libraries from AndEngine but class are still not found.

Classes are :

SimpleLevelLoader
EntityLoader
SimpleLevelEntityLoaderData

Please help me how to fix this.


回答1:


After spending few hours finally I got the issue.

Actually I was using GLES2 which has no such classes .

For those classes we need GLES2-AnchorCenter, which is latest update from AndEngine. I only replaced GLES2 AndEngine with GLES2-AnchorCenter AndEngine and now Its working fine.

In AndEnginePhysicsBox2DExtension I replaced class named AreaShape with IShapein few classes.




回答2:


Everybody is getting confused because the GITHUB download page for AndEngine has "GLES2" and not the "GLES2-AnchorCenter" as the default + at the AndEngine tutorial page the videos have embededed links that point to the default download page and don't highlight the fact that you have to choose the right branch from the branches dropdown menu. Most developers not familiarized with GITHUB (yes, there are a lot) won't even notice that.

It would be less error prone if we just point the user to the right branches e.g. https://github.com/nicolasgramlich/AndEngine/tree/GLES2-AnchorCenter instead of the base one.



来源:https://stackoverflow.com/questions/17803155/simplelevelloader-class-not-found-in-andengine-gles2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!