Installing AndEngine in Eclipse [closed]

天大地大妈咪最大 提交于 2019-12-04 02:53:44

问题


I'm wanting to install AndEngine... I've came across Some videos that show you how to install it. But these videos were done last year, and since then, the method of installing it has changed. At lest the way they were doing it in these videos... Dose any one know the new extensions or some new tutorials I can follow...


回答1:


Keep in mind that currently there are 2 versions of AndEngine GLES1 and GLES2, most videos and tutorials are for GLES1 as that GLES2 was recently released also AndEngine was on google Code and now moved to github , so an old tutorial would not work I wrote a tutorial about setting up GLES2 and getting it to work , check it out

https://jimmaru.wordpress.com/2012/04/23/setting-up-andengine-gles2-0/




回答2:


The current best practice is to set up andengine as a library project. Nicholas Gramlich, the authro of andengine, posts instructions on how to download the latest build of andengine and add it to eclipse a s a library project here:

http://www.andengine.org/forums/gles2/use-andengine-as-a-android-library-project-not-as-a-jar-t6142.html

You do not want to get a jar file and use that. Because there is no .jar for andengine anymore. If you are using a jar file, you are using an old version. Even if you are using GLES1, you should update to the latest code via a library project, and NOT a jar file.




回答3:


I see this is still not well explained. So i did it myself. This is my way:

  1. Create your game project in Eclipse (do it as usual)
  2. Download and unpack andengine from github to and_location (not a jar file)
  3. In eclipse import whole and_location folder as an "Existing Android Code.." to do so right click on white space in project view and choose "Import" from context menu. As a root directory choose and_location when u do this it should (by default) mark checkbox next to "AndEngine" project. Click Finish.
  4. Now you will see two projects in your workspace:
    • YourGame
    • AndEngine
  5. Right click on YourGame project and choose "Build path -> Configure build path.."
  6. Choose "Projects" tab
  7. Click "Add" button on the right. Choose AndEngine, Click OK -> OK and Voila, you are done and you can use AndEngine classes in your project



回答4:


basically you just want to add jar file in ur project .so first download jar file from http://www.2shared.com/file/9K77Yazm/andengine.html and now you can include this jar file in your project like this rightclick on ur project->properties->javabuildpath->add external jar->give the location of download and jar and add it.



来源:https://stackoverflow.com/questions/10713315/installing-andengine-in-eclipse

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