Star Struck game back and working again, plus finished the level design.

This commit is contained in:
photonstorm
2013-10-16 03:37:15 +01:00
parent a97f271de7
commit 31018b9295
8 changed files with 120 additions and 164 deletions
-2
View File
@@ -21,8 +21,6 @@ Phaser.Tilemap = function (game, key) {
this.layers = [];
}
console.log(this.layers);
this.currentLayer = 0;
this.debugMap = [];
+4 -4
View File
@@ -179,8 +179,6 @@ Phaser.TilemapLayer.prototype = {
this.game.world.setBounds(0, 0, this.widthInPixels, this.heightInPixels);
console.log('world', this.game.world.bounds);
},
updateTileset: function (tileset) {
@@ -200,6 +198,7 @@ Phaser.TilemapLayer.prototype = {
this.tileWidth = this.tileset.tileWidth;
this.tileHeight = this.tileset.tileHeight;
this.updateMax();
},
@@ -355,7 +354,8 @@ Phaser.TilemapLayer.prototype = {
var tile = this.tileset.tiles[this._column[x]-1];
// if (this.tileset.checkTileIndex(tile))
// {
if (tile)
{
this.context.drawImage(
this.tileset.image,
tile.x,
@@ -367,7 +367,7 @@ Phaser.TilemapLayer.prototype = {
this.tileWidth,
this.tileHeight
);
// }
}
this._tx += this.tileWidth;