phaser-ce-examples icon indicating copy to clipboard operation
phaser-ce-examples copied to clipboard

TextureManager.SpriteSheet: Invalid frameWidth given.

Open debarko opened this issue 7 years ago • 1 comments

The load spritesheet expects {frameWidth: x, frameHeight: y}. The line in question uses the Phaser 2 format. I think it might not work.

TextureManager.SpriteSheet: Invalid frameWidth given.

https://github.com/photonstorm/phaser-examples/blob/921295a5d7316e7f860a466644948f2eb32cf640/examples/phaser3/075%20blitter%20tilemap.js#L7

debarko avatar May 02 '18 16:05 debarko

this.load.spritesheet('tiles', 'assets/tilemaps/tiles/cybernoid.png', { frameWidth: 16, frameHeight: 16 });

paulzay avatar Nov 05 '20 10:11 paulzay