mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
bc00c900e9
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. |
||
---|---|---|
.. | ||
p2.d.ts | ||
phaser.comments.d.ts | ||
phaser.d.ts | ||
pixi.comments.d.ts | ||
pixi.d.ts | ||
readme.md |
TypeScript Definitions
Reference the phaser.d.ts
in your project.
Please use TypeScript 1.4+
phaser.d.ts
contains a reference topixi.d.ts
andp2.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.