HomeSort by relevance Sort by last modified time
    Searched refs:mXTileCount (Results 1 - 2 of 2) sorted by null

  /development/samples/Snake/src/com/example/android/snake/
TileView.java 42 protected static int mXTileCount;
86 for (int x = 0; x < mXTileCount; x++) {
111 for (int x = 0; x < mXTileCount; x += 1) {
147 mXTileCount = (int) Math.floor(w / mTileSize);
150 mXOffset = ((w - (mTileSize * mXTileCount)) / 2);
153 mTileGrid = new int[mXTileCount][mYTileCount];
SnakeView.java 383 int newX = 1 + RNG.nextInt(mXTileCount - 2);
430 for (int x = 0; x < mXTileCount; x++) {
436 setTile(GREEN_STAR, mXTileCount - 1, y);
484 if ((newHead.x < 1) || (newHead.y < 1) || (newHead.x > mXTileCount - 2)

Completed in 54 milliseconds