Skip to content

Commit afafa5d

Browse files
authored
Update Asteroid.pde
1 parent ffa7789 commit afafa5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Asteroid.pde

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Asteroid extends SpaceObject {
33
private long birth;
44

55
public Asteroid() {
6-
super(new float[]{(float)Math.random()*displayWidth, (float)Math.random()*displayHeight}, Math.random()*TWO_PI, (float)Math.random()*3+2, (int)Math.round(Math.random()*5+5));
6+
super(new float[]{(float)Math.random()*width, (float)Math.random()*height}, Math.random()*TWO_PI, (float)Math.random()*3+2, (int)Math.round(Math.random()*5+5));
77
this.angVel = Math.random()*0.2-0.1;
88
this.birth = millis();
99
}

0 commit comments

Comments
 (0)