mirror of
https://github.com/wassname/phaser.git
synced 2026-07-05 17:30:19 +08:00
Fixed Animation index 0 issue and hooked TilemapLayer to camera.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
// This one gives tileset as a string, the other an object
|
||||
// layer = new Phaser.TilemapLayer(game, 0, 0, 640, 400, 'tiles', map, 0);
|
||||
layer = new Phaser.TilemapLayer(game, 0, 0, 640, 400, tileset, map, 0);
|
||||
layer = new Phaser.TilemapLayer(game, 0, 0, 800, 400, tileset, map, 0);
|
||||
|
||||
// To set tiles for collision you need to modify the Tileset, which is a property of the layer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user