diff --git a/v2-community/typescript/phaser.d.ts b/v2-community/typescript/phaser.d.ts index b4971509a..a8df21fc1 100755 --- a/v2-community/typescript/phaser.d.ts +++ b/v2-community/typescript/phaser.d.ts @@ -3663,8 +3663,8 @@ declare module Phaser { class AStar extends Phaser.Plugin { static VERSION: string; - static COST_ORTHAGONAL: number; - static COST_DIAGAONAL: number; + static COST_ORTHOGONAL: number; + static COST_DIAGONAL: number; static DISTANCE_MANHATTEN: string; static DISTANCE_EUCLIDIAN: string; @@ -3698,9 +3698,9 @@ declare module Phaser { class AStarPath { - constructor(nodes: Phaser.Plugin.AStar.AStarNode[], start: Phaser.Plugin.AStar.AStarNode, goal: Phaser.Plugin.AStar.AStarNode); + constructor(nodes?: {x: number, y: number}[], start?: Phaser.Plugin.AStar.AStarNode, goal?: Phaser.Plugin.AStar.AStarNode); - nodes: Phaser.Plugin.AStar.AStarNode[]; + nodes: {x: number, y: number}[]; start: Phaser.Plugin.AStar.AStarNode; goal: Phaser.Plugin.AStar.AStarNode; visited: Phaser.Plugin.AStar.AStarNode[];