optimizations, optimizations
This commit is contained in:
parent
d00d7318b5
commit
44053f01f6
@ -158,7 +158,8 @@ public class BouncingBall extends Pane {
|
|||||||
|
|
||||||
public void moveRacket(double x) {
|
public void moveRacket(double x) {
|
||||||
moveEventLabel.setText("Move events: " + ++moveEvent);
|
moveEventLabel.setText("Move events: " + ++moveEvent);
|
||||||
racket.relocate(x, getHeight() - 20);
|
racket.setX(x);
|
||||||
|
//relocate(x, getHeight() - 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showInfoLabel() {
|
public void showInfoLabel() {
|
||||||
|
Loading…
Reference in New Issue
Block a user