Fly In The Air (A Sensor Game)
FLY IN THE AIR (A sensor game)
A man has got the power to fly in the air and his objective is to touch the rainbow,
but while going towards the rainbow if he collides with any bird/butterfly then the
game gets over. So you have to save the man from birds by rotating the device in such
a way that he will be always away from the birds.
Any bird/butterfly may come from any direction.
If you will keep on saving the man from the hurdles for 60 seconds then he will
be able to win.
Where is the game?
The apk file (which contains the game) is in bin folder which can be directly installed
in the device.
Why this game is built?
By this game a person who just knows little-bit android, will learn how to develop
a complete game.
The game is very clean, simple and complete to understand, and also the user can extend this
game by adding levels and states.
In order to modify the code in your way or to extend the game, go through these steps.
1) If you are using eclipse then install android sdk.
2) Extract the zip file in your android workspace.
3) Go to File->Import->General->Existing Projects into workspace->Click Next
4) Now choose Select root_directory and click on Browse (Browse the project FlyInAir)
5) Click on Finish.
6) Start modifying the code.
Positive points about the game source code:
1) The code is very small and easy to understand so a non voice can also understand it easily.
2) The user will understand flow of game states and screens.
3) This code explains how to use sensors in gaming.
4) This game is supported for smaller versions also.
Enhance the game in your way:
1) Replace the new images so that the game will look more beautiful.
2) Increase the game time (A variable is set in Define.java) to play more.
3) Instead of birds, you can add any other hurdles.
4) Add animations, like I have added two clouds moving from either sides continiously.
This game is built on android 3.1 version.
Now the version has gone up to 4.2 so there are many new
facilities available to port images for all screen resolutions.
If you are having the latest version of android sdk then just place the
images (currently these images are stored in FlyInAir\res\drawable-hdpi)
Make a Comment