mirror of
https://github.com/wassname/phaser.git
synced 2026-07-09 00:20:17 +08:00
bmd tweaks
This commit is contained in:
@@ -287,9 +287,11 @@ Phaser.GameObjectFactory.prototype = {
|
||||
*/
|
||||
bitmapData: function (key, width, height) {
|
||||
|
||||
var bmd = new Phaser.BitmapData(this.game, key, width, height);
|
||||
// var bmd = new Phaser.BitmapData(this.game, key, width, height);
|
||||
|
||||
return this.game.cache.addBitmapData(bmd.name, bmd);
|
||||
// return this.game.cache.addBitmapData(bmd.name, bmd);
|
||||
|
||||
return this.world.add(new Phaser.BitmapData(this.game, x, y, width, height, tileset, tilemap, layer));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user