Simple Game Example

this example is snake game from Googles examples. It is slightly modified to use accelerator as input

http://dl.dropbox.com/u/64923329/code/Snake.zip

code is complicated and divided in 5 classes.

snake.java only starts program

snakeview.java has controls and moving of snake

tile view has tiles

also files from accelerometer class are implemented to give control whit accelerometer. Look for sensor update in snakeview to see how it works

Check also examples in Eclipse like accelerometerplay, snake, lunarlander.

Links:

http://obviam.net/index.php/getting-started-in-android-game-development-with-libgdx-create-a-working-prototype-in-a-day-tutorial-part-1/

http://www.javacodegeeks.com/2011/06/android-game-development-tutorials.html

http://obviam.net/

http://obviam.net/index.php/the-mvc-pattern-tutorial-building-games/