initialize () {
    this.game.input.onDown.add(this.unpause, this)
    this.game.input.onDown.add(this.onPointerDown, this)
    var cursors = this.game.cursors
    cursors.up.onDown.add(this.onCursorDown, this)
    cursors.down.onDown.add(this.onCursorDown, this)
    cursors.left.onDown.add(this.onCursorDown, this)
    cursors.right.onDown.add(this.onCursorDown, this)
    // let daisiesKey = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR)
    let flowersKey = this.game.flowersKey
    flowersKey.onDown.add(this.flowersOnOff, this)
    this.kineticScrolling()
  }
/**
   * add callbacks to controls -> Phaser takes care of update in game loop
   */
add callbacks to controls -> Phaser takes care of update in game loop
add callbacks to controls - > Phaser takes care of update in game loop
initialize () {
    this.game.input.onDown.add(this.unpause, this)
    this.game.input.onDown.add(this.onPointerDown, this)
    var cursors = this.game.cursors
    cursors.up.onDown.add(this.onCursorDown, this)
    cursors.down.onDown.add(this.onCursorDown, this)
    cursors.left.onDown.add(this.onCursorDown, this)
    cursors.right.onDown.add(this.onCursorDown, this)
    let flowersKey = this.game.flowersKey
    flowersKey.onDown.add(this.flowersOnOff, this)
    this.kineticScrolling()
  }
initialize ( ) { this . game . input . onDown . add ( this . unpause , this ) this . game . input . onDown . add ( this . onPointerDown , this ) var cursors = this . game . cursors cursors . up . onDown . add ( this . onCursorDown , this ) cursors . down . onDown . add ( this . onCursorDown , this ) cursors . left . onDown . add ( this . onCursorDown , this ) cursors . right . onDown . add ( this . onCursorDown , this ) let flowersKey = this . game . flowersKey flowersKey . onDown . add ( this . flowersOnOff , this ) this . kineticScrolling ( ) }
add callbacks to controls -> Phaser takes care of update in game loop
add callbacks to controls - > Phaser takes care of update in game loop
// let daisiesKey = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR)