meta data for this page
Simple Game Example
this example is snake game from Googles examples. It is slightly modified to use accelerator as input
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: