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:
- File
- Import
- Select 'General/Existing Projects into Workspace'
- Browse for the project root folder
- Check the project
- Finish
In Eclipse
- Project - Properties - Java Compiler - set the correct version
- In Eclipse, go to File - New - Project - Android - Android Project From Existing Code, then click Next
- Browse to the location where you downloaded the git to
- Click Finish
- Now the new project should appear in Eclipse, but it will have a red X and some errors
- Right click on that project in Eclipse, choose Properties and change the Java Compiler to 1.6
- Right click on that project in Eclipse, choose Properties, choose Android, delete the libraries that it is affiliated with
- re-insert the libraries AndEngine and AndEnginePhysicsBox2DExtension (TODO: how)
- If there are still errors, then close Eclipse and then open it again, any remaining errors should go away