Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java420 float positionX, positionY;
426 positionX = -size;
430 positionX = getWidth() + size;
434 positionX = mRandom.nextInt(getWidth());
438 positionX = mRandom.nextInt(getWidth());
445 } while (mShip.distanceTo(positionX, positionY) < minDistance);
454 obstacle.setPosition(positionX, positionY);
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java395 float positionX, positionY; in step() local
399 positionX = -size; in step()
403 positionX = getWidth() + size; in step()
407 positionX = mRandom.nextInt(getWidth()); in step()
411 positionX = mRandom.nextInt(getWidth()); in step()
422 if (currentShip.distanceTo(positionX, positionY) < minDistance) { in step()
442 obstacle.setPosition(positionX, positionY); in step()