Browse Source

Shapes follow the mouse now

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

4
voicegardens/static/voicegardens.js

@ -347,8 +347,8 @@ class GeneratedShape {
/** /**
* Move the shape vectors. * Move the shape vectors.
**/ **/
this.deltaX = mouseX - this.centerX; this.deltaX = mouseX - this.centerX - toScreenX;
this.deltaY = mouseY - this.centerY; this.deltaY = mouseY - this.centerY - toScreenY;
this.deltaX *= this.springing; this.deltaX *= this.springing;
this.deltaY *= this.springing; this.deltaY *= this.springing;

Loading…
Cancel
Save