meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
android:gameexample [2012/07/05 16:12] esa-petriandroid: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://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. Check also examples in Eclipse like accelerometerplay, snake, lunarlander.