moveDotToRow(dot, originalRow, targetRow) {
    let points = [];
    let c = dot.column;
    for (let r = originalRow; r <= targetRow; r++) {
      points.push(this.grid[r][c].x);
      points.push(this.grid[r][c].y);
    }

    let path = new Phaser.Curves.Path(this.grid[originalRow][c].x, this.grid[originalRow][c].y);
    path.splineTo(points);
    dot.startFall(path);
  }
// Uses a curve and tween to animate the dot moving down to a new row.
Uses a curve and tween to animate the dot moving down to a new row.
Uses a curve and tween to animate the dot moving down to a new row .
moveDotToRow(dot, originalRow, targetRow) {
    let points = [];
    let c = dot.column;
    for (let r = originalRow; r <= targetRow; r++) {
      points.push(this.grid[r][c].x);
      points.push(this.grid[r][c].y);
    }
    let path = new Phaser.Curves.Path(this.grid[originalRow][c].x, this.grid[originalRow][c].y);
    path.splineTo(points);
    dot.startFall(path);
  }
moveDotToRow ( dot , originalRow , targetRow ) { let points = [ ] ; let c = dot . column ; for ( let r = originalRow ; r <= targetRow ; r ++ ) { points . push ( this . grid [ r ] [ c ] . x ) ; points . push ( this . grid [ r ] [ c ] . y ) ; } let path = new Phaser . Curves . Path ( this . grid [ originalRow ] [ c ] . x , this . grid [ originalRow ] [ c ] . y ) ; path . splineTo ( points ) ; dot . startFall ( path ) ; }
Uses a curve and tween to animate the dot moving down to a new row.
Uses a curve and tween to animate the dot moving down to a new row .