Setting up AndEngine

Today we will work out on how to setup AndEngine for development in Eclipse.

AndEngine is a very powerful 2D OpenGL Game engine developed by Nicolas Gramlich. You can visit the website at http://www.andengine.org/ for more information.

To start , first download the project code from https://github.com/nicolasgramlich/AndEngine .  As shown below. Download the .ZIP file and extract it in a location on your computer.


Now open Eclipse and Add a new project. Name it AndEngineSample as shown below. Proceed as usual with any other Android project you create.



Next we have to import the AndEngine project in our current workspace.

Click on file and select Import as shown below.


Expand the Android Node and click on "Existing Android Code Into Workspace" and click on Next button as shown below.


Click on Browse and browse to the location where you have extracted the .Zip file. and select the folder. Eclipse will automatically detect all the projects in that folder and add it into the list. select the project and click on finish button.


As you can see the AndEngine project is now imported into our workspace. Now we need to add a reference to this project in our sample project.



 Right click on the sample project and click on Properties



 Select Android tab as shown below and click on Add button



 The available libraries will be loaded and select the AndEngine project and click on OK button



 The below screen will be displayed , Click on Apply and then OK button.


Done!!  You are all setup for AndEngine Development. 

No comments:

Post a Comment