Steps needed to set-up working environment for Android development :
- Install JDK, from here.
- Install Eclipse from here. You can also use any other IDE, but it's recommended to use Eclipse since a lot of examples and tutorials out there assumed you use eclipse.
- Download and install the Android SDK, following the instructions here.
- After you have installed the Android SDK successfully, explore the SDK a bit, and try to setup the android emulator through Eclipse, by going to the menu Window>Android SDK and AVD manager>Virtual devices.
Since the goal is to quickly be able to make games, it's better to use a ready made engine rather than creating our own engine.
My engine of choice is AndEngine because this engine has a great community, you can get a lot of help by searching and asking on their forum.
Instructions on how to download and install AndEngine can be found in this tutorial.
Try to explore the andengineexamples project and try to run it on your device/emulator, it will give you a lot of info about how AndEngine works.
Make sure you complete the "Hello World" tutorial, and you can use that as base to learn deeper about AndEngine and Android application structure.
The guy who wrote that AndEngine tutorial also has many other tutorials and can be found in here.
The guy who wrote that AndEngine tutorial also has many other tutorials and can be found in here.
Some more addition :
- You should read about Android activity lifecycle from the documentation, to better understand the application structure.
- To create game that uses the box2d physics engine on AndEngine, you need to copy the whole folder "libs" from andengineexamples project and paste that folder on your project folder. After that, copy "andenginephysicsbox2dextension.jar" from folder "andengineexamples/lib" to your own lib folder, then add that jar to your project's build path.
Now we are ready to make games!
No comments:
Post a Comment