We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2778786 commit a40cdd3Copy full SHA for a40cdd3
src/main/java/com/example/javafx/Shape.java
@@ -10,7 +10,7 @@ public class Shape {
10
private Board board;
11
private int deltaX = 0;
12
private int x, y;
13
- private int minimumSpeed = 20;
+ private int minimumSpeed = 300;
14
private int color;
15
16
private boolean collision = false, moveX = false;
@@ -41,7 +41,7 @@ public int update(int score){
41
42
if(collision)
43
{
44
- if(normalSpeed == 20)
+ if(normalSpeed <= 300)
45
normalSpeed = minimumSpeed;
46
else
47
normalSpeed -= 20;
0 commit comments