Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing AndEngine in Eclipse [closed]

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...

like image 859
KodiakBear211 Avatar asked May 23 '12 04:05

KodiakBear211


3 Answers

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/

like image 135
Jimmar Avatar answered Nov 10 '22 05:11

Jimmar


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.

like image 26
Plastic Sturgeon Avatar answered Nov 10 '22 05:11

Plastic Sturgeon


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
like image 28
lukasz Avatar answered Nov 10 '22 04:11

lukasz