This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var Shake = (function () { | |
function Shake(game) { | |
this.game = game; | |
} | |
/** | |
* @param {number} amp amplitude in pixels | |
* @param {number} duration | |
* @param {boolean} x shake on X axis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Shake { | |
game: Phaser.Game; | |
x: boolean; | |
y: boolean; | |
xoff: number; | |
yoff: number; | |
amp: number; | |
tween: Phaser.Tween; | |
constructor(game: Phaser.Game) { |