Expanding BitmapData

This commit is contained in:
photonstorm
2013-11-17 04:33:16 +00:00
parent ba6863bdf5
commit 7ad4164e3a
7 changed files with 1065 additions and 119 deletions
+2 -7
View File
@@ -280,18 +280,13 @@ Phaser.GameObjectFactory.prototype = {
* A BitmapData object which can be manipulated and drawn to like a traditional Canvas object and used to texture Sprites.
*
* @method Phaser.GameObjectFactory#bitmapData
* @param {string} [key] - A key the BitmapData will use when added to the Phaser.Cache. If none is given a UUID is generated.
* @param {number} [width=256] - The width of the BitmapData in pixels.
* @param {number} [height=256] - The height of the BitmapData in pixels.
* @return {Phaser.BitmapData} The newly created BitmapData object.
*/
bitmapData: function (key, width, height) {
bitmapData: function (width, height) {
// var bmd = new Phaser.BitmapData(this.game, key, width, height);
// return this.game.cache.addBitmapData(bmd.name, bmd);
return this.world.add(new Phaser.BitmapData(this.game, x, y, width, height, tileset, tilemap, layer));
return new Phaser.BitmapData(this.game, width, height);
}