phaserjs / phaser-ce-examples

Contains hundreds of source code examples and related media for the Phaser HTML5 Game Framework.
http://phaser.io/examples
1.77k stars 1.15k forks source link

TextureManager.SpriteSheet: Invalid frameWidth given. #189

Open debarko opened 6 years ago

debarko commented 6 years ago

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

paulzay commented 4 years ago

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