Browse Source

Remove confusing variables around movement

main
Luke Murphy 5 years ago
parent
commit
a3dbca7180
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 15
      voicegardens/static/voicegardens.js

15
voicegardens/static/voicegardens.js

@ -139,12 +139,6 @@ class GeneratedShape {
/**
* Initialise the new shape.
**/
this.xSpeed = 1.4;
this.ySpeed = 1.6;
this.xDirection = 1;
this.yDirection = 1;
this.synth = new p5.MonoSynth();
this.points = [];
@ -154,15 +148,6 @@ class GeneratedShape {
this.colour = this.chooseColour();
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) {

Loading…
Cancel
Save