Class SimpleLevelLoader not found in AndEngine GLES2

New in AndEngine. When working from the AndEngine tutorial, the following classes were not found. I tried to import all the libraries from AndEngine, but the class is still not found.

Classes:

SimpleLevelLoader EntityLoader SimpleLevelEntityLoaderData 

Please help me how to fix this.

+6
source share
2 answers

After several hours, finally I got a question.

In fact, I used GLES2 , which does not have such classes.

For these classes, we need GLES2-AnchorCenter , which is the latest update from AndEngine. I just replaced GLES2 AndEngine with GLES2-AnchorCenter AndEngine and now it is working.

In AndEnginePhysicsBox2DExtension I replaced the class named AreaShape with IShape in several classes.

+7
source

Everyone starts to get confused, because on the GITHUB download page for AndEngine there is "GLES2" and not "GLES2-AnchorCenter" by default + on the AndEngine training page, links are embedded in the videos pointing to the default download page, t emphasize the fact that you need to select the correct branch from the branches drop-down menu. Most developers who are not familiar with GITHUB (yes, there are many) will not even notice.

There would be fewer errors if we simply pointed the user to the correct branches, for example https://github.com/nicolasgramlich/AndEngine/tree/GLES2-AnchorCenter instead of the base one.

+2
source

Source: https://habr.com/ru/post/950050/


All Articles