mirror of
https://github.com/wassname/phaser.git
synced 2026-07-20 12:30:48 +08:00
Adding Type support for collision checks.
This commit is contained in:
@@ -51,6 +51,8 @@ Phaser.Tilemap = function (game, key, x, y, resizeWorld, tileWidth, tileHeight)
|
||||
this.position.x = x;
|
||||
this.position.y = y;
|
||||
|
||||
this.type = Phaser.TILEMAP;
|
||||
|
||||
this.renderer = new Phaser.TilemapRenderer(this.game);
|
||||
|
||||
this.mapFormat = map.format;
|
||||
|
||||
@@ -73,6 +73,7 @@ Phaser.TilemapLayer = function (parent, id, key, mapFormat, name, tileWidth, til
|
||||
this.ID = id;
|
||||
this.name = name;
|
||||
this.key = key;
|
||||
this.type = Phaser.TILEMAPLAYER;
|
||||
|
||||
this.mapFormat = mapFormat;
|
||||
this.tileWidth = tileWidth;
|
||||
|
||||
Reference in New Issue
Block a user