Skip to content

Commit a40cdd3

Browse files
author
Nolin Reddy
committed
fixed the thing
1 parent 2778786 commit a40cdd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/example/javafx/Shape.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Shape {
1010
private Board board;
1111
private int deltaX = 0;
1212
private int x, y;
13-
private int minimumSpeed = 20;
13+
private int minimumSpeed = 300;
1414
private int color;
1515

1616
private boolean collision = false, moveX = false;
@@ -41,7 +41,7 @@ public int update(int score){
4141

4242
if(collision)
4343
{
44-
if(normalSpeed == 20)
44+
if(normalSpeed <= 300)
4545
normalSpeed = minimumSpeed;
4646
else
4747
normalSpeed -= 20;

0 commit comments

Comments
 (0)