Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java420 float positionX, positionY;
427 positionY = mRandom.nextInt(getHeight());
431 positionY = mRandom.nextInt(getHeight());
435 positionY = -size;
439 positionY = getHeight() + size;
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
400 positionY = mRandom.nextInt(getHeight()); in step()
404 positionY = mRandom.nextInt(getHeight()); in step()
408 positionY = -size; in step()
412 positionY = getHeight() + size; in step()
422 if (currentShip.distanceTo(positionX, positionY) < minDistance) { in step()
442 obstacle.setPosition(positionX, positionY); in step()