Remove confusing variables around movement

This commit is contained in:
Luke Murphy 2020-01-31 18:43:22 +01:00
parent 415eab0b7b
commit a3dbca7180
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -139,12 +139,6 @@ class GeneratedShape {
/** /**
* Initialise the new shape. * Initialise the new shape.
**/ **/
this.xSpeed = 1.4;
this.ySpeed = 1.6;
this.xDirection = 1;
this.yDirection = 1;
this.synth = new p5.MonoSynth(); this.synth = new p5.MonoSynth();
this.points = []; this.points = [];
@ -154,15 +148,6 @@ class GeneratedShape {
this.colour = this.chooseColour(); this.colour = this.chooseColour();
this.curveTightness = -5; this.curveTightness = -5;
this.xDelta = 0.0;
this.yDelta = 0.0;
this.xSpeed = 0.0;
this.ySpeed = 0.0;
this.springing = 0.0009;
this.damping = 0.98;
} }
collide(shapes) { collide(shapes) {