6

John Fremlin's blog: Android throw your phone entertainment - BomberAgent

 3 years ago
source link: http://john.freml.in/android-bomberagent-launch
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Posted 2010-12-05 17:49:00 GMT

Spent the weekend building an Android game with Davey and Eugenio. It's on the Android market (called BomberAgent). The further you throw your phone the more points you get! Try it out and give it good rating ;-)

Rather upset with Eclipse crashing and not having autosave, but Android development is a breeze compared to the old Symbian days. Documentation rather poor (API docs aren't really documentation if you have factory methods) and lots of weird untyped constants (public final static ints). The Handler mechanism is a bit ghetto, getWindow().setFormat(PixelFormat.TRANSLUCENT) is needed before video will work, the MediaPlayer is unnecessarily unpleasant about its state machine (isPlaying throws an error if it's in the wrong state), and lots of odd issues with the accelerometer. Tried out a few scoring functions; fortunately no need to calibrate with SensorManager.SENSOR_DELAY_FASTEST.

But anyway we had fun and the game looks and sounds great! The source is available on github. Next stage, an iPhone port? Donations of properly Jobs-compliant Apple kit very welcome!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK