Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java383 final Obstacle obstacle = mObstacles.get(i);
384 if (!obstacle.step(tau)) {
395 final Obstacle obstacle = mObstacles.get(j);
396 if (bullet.collidesWith(obstacle)) {
398 obstacle.destroy();
406 final Obstacle obstacle = mObstacles.get(i);
407 if (mShip.collidesWith(obstacle)) {
409 obstacle.destroy();
453 Obstacle obstacle = new Obstacle();
454 obstacle.setPosition(positionX, positionY);
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java235 final Obstacle obstacle = mObstacles.get(i); in onDraw() local
236 obstacle.draw(canvas); in onDraw()
351 final Obstacle obstacle = mObstacles.get(i); in step() local
352 if (!obstacle.step(tau)) { in step()
363 final Obstacle obstacle = mObstacles.get(j); in step() local
364 if (bullet.collidesWith(obstacle)) { in step()
366 obstacle.destroy(); in step()
375 final Obstacle obstacle = mObstacles.get(i); in step() local
379 if (currentShip.collidesWith(obstacle)) { in step()
381 obstacle.destroy(); in step()
[all …]