OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:snake
(Results
1 - 5
of
5
) sorted by null
/development/samples/Snake/tests/src/com/example/android/snake/
SnakeTest.java
17
package com.example.android.
snake
;
25
public class SnakeTest extends ActivityInstrumentationTestCase2<
Snake
> {
28
* Creates an {@link ActivityInstrumentationTestCase2} for the {@link
Snake
} activity.
31
super(
Snake
.class);
/development/samples/Snake/src/com/example/android/snake/
BackgroundView.java
17
package com.example.android.
snake
;
Snake.java
17
package com.example.android.
snake
;
28
*
Snake
: a simple game that everyone can enjoy.
30
* This is an implementation of the classic Game "
Snake
", in which you control a serpent roaming
36
public class
Snake
extends Activity {
39
* Constants for desired direction of moving the
snake
46
private static String ICICLE_KEY = "
snake
-view";
61
mSnakeView = (SnakeView) findViewById(R.id.
snake
);
118
* Handles key events in the game. Update the direction our
snake
is traveling based on the
TileView.java
17
package com.example.android.
snake
;
SnakeView.java
17
package com.example.android.
snake
;
33
* SnakeView: implementation of a simple game of
Snake
50
* Current direction the
snake
is headed.
68
* between
snake
movements. This will decrease as apples are captured.
73
* mLastMove: Tracks the absolute time when the
snake
last moved, and is used to determine if a
84
* mArrowsView: View which shows 4 arrows to signify 4 directions in which the
snake
can move
90
* moves the
snake
95
* mSnakeTrail: A list of Coordinates that make up the
snake
's body mAppleList: The secret
96
* location of the juicy apples the
snake
craves.
161
// For now we're just going to load up a short default eastbound
snake
[
all
...]
Completed in 923 milliseconds