mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
bab50d7c88
* Internally the Cache now uses a single _cache object, which is partitioned to store the various different object types. Before the cache used lots of private objects, one per data type, but it's now a lot cleaner and we've managed to cut out hundreds of lines of duplicate code in the process. * Cache.getImage has a new argument which lets you return either just the HTML Image element or the entire image cache object, which includes the baseTexture and frame data. * Cache.getImage will return a __default image if the key isn't given, or a __missing image if the key is given but not found in the cache. This means it will always return a valid image and no longer cause Phaser to throw runtime errors deeper down with invalid image objects. |
||
---|---|---|
.. | ||
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.