mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 09:27:37 +00:00
Update Typescript definitions
Add the plugin Juicy
This commit is contained in:
parent
1d99a94453
commit
85dd149085
1 changed files with 37 additions and 0 deletions
37
typescript/phaser.d.ts
vendored
37
typescript/phaser.d.ts
vendored
|
@ -3152,8 +3152,45 @@ declare module Phaser {
|
|||
update(): void;
|
||||
}
|
||||
|
||||
class Juicy extends Phaser.Plugin {
|
||||
|
||||
constructor(game: Phaser.Game);
|
||||
|
||||
createScreenFlash(color?: string) : Phaser.Plugin.Juicy.ScreenFlash;
|
||||
createTrail(length?: number, color?:number): Phaser.Plugin.Juicy.Trail;
|
||||
overScale(object: Phaser.Sprite, scale?: number, initialScale?: Phaser.Point): void;
|
||||
jelly(object: Phaser.Sprite, strength?: number, delay?: number, initialScale?: Phaser.Point): void;
|
||||
mouseStretch(object: Phaser.Sprite, strength?: number, initialScale?: Phaser.Point): void;
|
||||
update(): void;
|
||||
shake(duration?: number, strength?: number): void;
|
||||
}
|
||||
|
||||
module Juicy {
|
||||
|
||||
class Trail {
|
||||
|
||||
constructor(game: Phaser.Game, trailLength?: number, color?: number);
|
||||
|
||||
target: Phaser.Sprite;
|
||||
trailLength: number;
|
||||
trailWidth: number;
|
||||
trailScaling: boolean;
|
||||
trailColor: number;
|
||||
|
||||
update(): void;
|
||||
addSegment(x: number, y: number): void;
|
||||
redrawSegments(offsetX: number, offsetY: number): void;
|
||||
|
||||
}
|
||||
|
||||
class ScreenFlash {
|
||||
|
||||
constructor(game: Phaser.Game, color?: string);
|
||||
|
||||
flash(maxAlpha?: number, duration?: number);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class PluginManager implements IStateCycle {
|
||||
|
|
Loading…
Reference in a new issue