コード例 #1
0
ファイル: Bullet.java プロジェクト: michaelatremblay/school
 /** sets the bullet's location by taking in two floats */
 public void setPosition(float x, float y) {
   changedPosition.x = x;
   changedPosition.y = y;
   if (changedPosition.x > Game.width || changedPosition.y > Game.height) expired = true;
   super.setFrame((double) x, (double) y, (double) size, (double) size);
 }
コード例 #2
0
 protected void ellipseImpl(float x, float y, float w, float h) {
   ellipse.setFrame(x, y, w, h);
   drawShape(ellipse);
 }