2D Physics

From WickyWiki

AndEngine:

AndEngine Tutorial:

AndEngine Game Tutorial (Invaders)

cd /home/wilbert/Documents/Eclipse
git clone https://github.com/JiMMaR/Jimvaders-Tutorial.git
git clone https://github.com/nicolasgramlich/AndEngine.git AndEngineGLES20

AndEngineSampleProject

Note: I have a standard hidden '.project' and '.classpath' files in the workspace root see ACal CalDAV calendar for more info. These files are often not included in repositories but they are needed by Eclipse to recognize a project and to know what folders are used for building (gen), source (src) and binary (bin).

cd /home/wilbert/Documents/Eclipse
git clone https://github.com/RealMayo/AndEngine
cp .project .classpath AndEngine/.

git clone https://github.com/RealMayo/AndEnginePhysicsBox2DExtension
cp .project .classpath AndEnginePhysicsBox2DExtension/.

git clone https://github.com/RealMayo/AndEngineSampleProject
cp .project .classpath AndEngineSampleProject/.
  • Add a .project file to the project root folder

In Eclipse:

  1. File
  2. Import
  3. Select 'General/Existing Projects into Workspace'
  4. Browse for the project root folder
  5. Check the project
  6. Finish

In Eclipse

  • Project - Properties - Java Compiler - set the correct version
  1. In Eclipse, go to File - New - Project - Android - Android Project From Existing Code, then click Next
  2. Browse to the location where you downloaded the git to
  3. Click Finish
  4. Now the new project should appear in Eclipse, but it will have a red X and some errors
  5. Right click on that project in Eclipse, choose Properties and change the Java Compiler to 1.6
  6. Right click on that project in Eclipse, choose Properties, choose Android, delete the libraries that it is affiliated with
  7. re-insert the libraries AndEngine and AndEnginePhysicsBox2DExtension (TODO: how)
  8. If there are still errors, then close Eclipse and then open it again, any remaining errors should go away