mirror of
https://github.com/wassname/phaser.git
synced 2026-08-11 11:23:06 +08:00
Final commit before rebuilding the Tilemap system.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
game.stage.backgroundColor = '#000000';
|
||||
|
||||
bg = game.add.tileSprite(0, 0, 800, 600, 'background');
|
||||
bg.fixedToCamera = true;
|
||||
|
||||
map = game.add.tilemap(0, 0, 'level1');
|
||||
map.setCollisionRange(1, 12, true, true, true, true);
|
||||
|
||||
Reference in New Issue
Block a user