phaser/typescript
photonstorm bc00c900e9 BitmapData.smoothProperty is a new property that holds the string based prefix needed to set image scaling on the BitmapData context.
BitmapData.copyTransform allows you to draw a Game Object to the BitmapData, using its `worldTransform` property to control the location, scaling and rotation of the object. You can optionally provide

BitmapData.drawGroup now uses the new `copyTransform` method, to provide for far more accurate results. Previously nested Game Objects wouldn't render correctly, nor would Sprites added via `addChild` to another Sprite. BitmapText objects also rendered without rotation taken into account, and the Sprites smoothing property was ignored. All of these things are now covered by the new drawGroup method, which also handles full deep iteration down the display list.
2016-06-14 15:29:56 +01:00
..
p2.d.ts split p2 definitions into its own file 2015-03-18 11:44:11 -07:00
phaser.comments.d.ts Phaser 2.4.9 RC3. 2016-06-09 17:13:31 +01:00
phaser.d.ts BitmapData.smoothProperty is a new property that holds the string based prefix needed to set image scaling on the BitmapData context. 2016-06-14 15:29:56 +01:00
pixi.comments.d.ts Phaser 2.4.9 RC3. 2016-06-09 17:13:31 +01:00
pixi.d.ts TypeScript defs update. 2016-06-09 16:29:09 +01:00
readme.md Updated TypeScript Readme 2015-08-01 12:06:25 +01:00

TypeScript Definitions

Reference the phaser.d.ts in your project.

Please use TypeScript 1.4+

  • phaser.d.ts contains a reference to pixi.d.ts and p2.d.ts and so both these files must remain siblings in the same directory.
  • pixi.d.ts has deviated from the official project. If you are a pixi user, pick up the ball over at the official pixi typescript repo.

Contributing

If you find any mistakes in these definitions or you feel they can be improved in any way, please make a pull request against the dev branch.

Note

Creature and Box2D are not yet defined.