Some more refactoring - not working for now
[xogo.git] / utils / Move.js
index 62eddea..776be9f 100644 (file)
@@ -1,12 +1,14 @@
 // class "Move": generic ready-to-play verbose move, standardised format.
 export default class Move {
+
   // o: {appear, vanish, [start,] [end,]}
   // appear,vanish = arrays of PiPo
   // start,end = coordinates to apply to trigger move visually (think castle)
   constructor(o) {
     this.appear = o.appear;
     this.vanish = o.vanish;
-    this.start = o.start || { x: o.vanish[0].x, y: o.vanish[0].y };
-    this.end = o.end || { x: o.appear[0].x, y: o.appear[0].y };
+    this.start = o.start || {x: o.vanish[0].x, y: o.vanish[0].y};
+    this.end = o.end || {x: o.appear[0].x, y: o.appear[0].y};
   }
+
 };