We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa7789 commit afafa5dCopy full SHA for afafa5d
Asteroid.pde
@@ -3,7 +3,7 @@ class Asteroid extends SpaceObject {
3
private long birth;
4
5
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));
+ 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));
7
this.angVel = Math.random()*0.2-0.1;
8
this.birth = millis();
9
}
0 commit comments