build/app.js
/**
   * Handles movement logic for the ghost
   * @param {number} elapsedMs - The amount of MS that have passed since the last update
   */
Handles movement logic for the ghost
@param {number} elapsedMs - The amount of MS that have passed since the last update
Handles movement logic for the ghost @param { number } elapsedMs - The amount of MS that have passed since the last update
update(elapsedMs) {
    this.oldPosition = Object.assign({}, this.position);
    if (this.moving) {
      this.position = this.handleMovement(elapsedMs);
      this.setSpriteSheet(this.name, this.direction, this.mode);
      this.msSinceLastSprite += elapsedMs;
    }
  }
update ( elapsedMs ) { this . oldPosition = Object . assign ( { } , this . position ) ; if ( this . moving ) { this . position = this . handleMovement ( elapsedMs ) ; this . setSpriteSheet ( this . name , this . direction , this . mode ) ; this . msSinceLastSprite += elapsedMs ; } }
Handles movement logic for the ghost
 @param {number} elapsedMs - The amount of MS that have passed since the last update
Handles movement logic for the ghost @param { number } elapsedMs - The amount of MS that have passed since the last update