Search code examples
androidmobileaccelerometer

Simple Native Game - Android


For my mobile programming course we've finally been given some free reign to design and develop our own application. Our only requirement is that we have to implement geo-location or sensors in some way. I've chosen to try and make a very simple game which implements the accelerometer. The basic idea is that shapes will fall out of the sky (top of the screen) and you have to tilt the phone to make the 'guy' move and catch the shapes before they hit the ground. I have some ideas for game flavor but my teacher recommends I forsake that and just get the basic game play down (we only have 10 days).

So my question for you- does anyone have any high level advice for this application I'm going to tackle? Are there any good game/physics libraries for native android?


Solution

  • By native I'm assuming you mean the SDK, and not the NDK since you haven't added the android-ndk tag.

    The two game engines best suited for your needs are AndEngine and Libgdx. They both have the Box2D physics engine as well. AndEngine comes with several examples, and combining a few of them could give you what you need. Both engines have a good community support as well.