|
|
@ -101,7 +101,6 @@ public class Tank extends GameObject {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void move() {
|
|
|
|
public void move() {
|
|
|
|
System.out.println("tank move start:" + this.toString());
|
|
|
|
|
|
|
|
if (!this.moving) {
|
|
|
|
if (!this.moving) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -133,7 +132,6 @@ public class Tank extends GameObject {
|
|
|
|
new Audio("audio/tank_move.wav").play();
|
|
|
|
new Audio("audio/tank_move.wav").play();
|
|
|
|
}).start();
|
|
|
|
}).start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
System.out.println("tank move end:" + this.toString());
|
|
|
|
|
|
|
|
rectangle.x = x;
|
|
|
|
rectangle.x = x;
|
|
|
|
rectangle.y = y;
|
|
|
|
rectangle.y = y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|