Home
last modified time | relevance | path

Searched refs:mXTileCount (Results 1 – 2 of 2) sorted by relevance

/development/samples/Snake/src/com/example/android/snake/
DTileView.java42 protected static int mXTileCount; field in TileView
86 for (int x = 0; x < mXTileCount; x++) { in clearTiles()
111 for (int x = 0; x < mXTileCount; x += 1) { in onDraw()
147 mXTileCount = (int) Math.floor(w / mTileSize); in onSizeChanged()
150 mXOffset = ((w - (mTileSize * mXTileCount)) / 2); in onSizeChanged()
153 mTileGrid = new int[mXTileCount][mYTileCount]; in onSizeChanged()
DSnakeView.java383 int newX = 1 + RNG.nextInt(mXTileCount - 2); in addRandomApple()
430 for (int x = 0; x < mXTileCount; x++) { in updateWalls()
436 setTile(GREEN_STAR, mXTileCount - 1, y); in updateWalls()
484 if ((newHead.x < 1) || (newHead.y < 1) || (newHead.x > mXTileCount - 2) in updateSnake()