mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
34 lines
642 B
TypeScript
34 lines
642 B
TypeScript
|
/// <reference path="../Game.ts" />
|
||
|
/// <reference path="../core/Rectangle.ts" />
|
||
|
/// <reference path="PhysicsManager.ts" />
|
||
|
|
||
|
/**
|
||
|
* Phaser - Physics - IPhysicsShape
|
||
|
*/
|
||
|
|
||
|
module Phaser.Physics {
|
||
|
|
||
|
export interface IPhysicsShape {
|
||
|
|
||
|
game: Game;
|
||
|
world: PhysicsManager;
|
||
|
sprite: Sprite;
|
||
|
physics: Phaser.Components.Physics;
|
||
|
|
||
|
position: Vec2;
|
||
|
oldPosition: Vec2;
|
||
|
offset: Vec2;
|
||
|
|
||
|
bounds: Rectangle;
|
||
|
oH: number;
|
||
|
oV: number;
|
||
|
|
||
|
setSize(width: number, height: number);
|
||
|
preUpdate();
|
||
|
update();
|
||
|
render(context:CanvasRenderingContext2D);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|