Fixed Animation index 0 issue and hooked TilemapLayer to camera.

This commit is contained in:
photonstorm
2013-10-16 02:09:12 +01:00
parent fd5eeb9088
commit a97f271de7
15 changed files with 844 additions and 306 deletions
+1 -1
View File
@@ -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