meta data for this page
| Both sides previous revisionPrevious revision | |||
| android:gameexample [2012/07/05 16:12] – esa-petri | android:gameexample [2012/07/05 22:14] (current) – esa-petri | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Simple Game Example ===== | ===== Simple Game Example ===== | ||
| + | this example is snake game from Googles examples. It is slightly modified to use accelerator as input | ||
| + | * http:// | ||
| + | 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, | Check also examples in Eclipse like accelerometerplay, | ||