Browse Source

some comments about curves

Kevin Heinicke 10 years ago
parent
commit
11cf7756d8
2 changed files with 5 additions and 0 deletions
  1. 3 0
      js/script.js
  2. 2 0
      js/views/particle.js

+ 3 - 0
js/script.js

@@ -1,6 +1,9 @@
 var stage, controller;
 
 function init() {
+    // Do not use this for now...
+    // createjs.MotionGuidePlugin.install();
+
     controller = new Controller;
 
     resize();

+ 2 - 0
js/views/particle.js

@@ -18,6 +18,8 @@
             this.update = function(){};
             createjs.Tween.get(this).to(
                 { x: cell_size * this.model.target.x, y: cell_size * this.model.target.y },
+                // We do not want to have magnetically curved particles for now
+                // {guide:{ path:[0,0, 0,200,200,200, 200,0,0,0] }},
                 this.model.target.time - this.model.start_time
             ).call(function(){
                 own_view.update = ParticleView.prototype.update;