diff --git a/public/images/layers.png b/public/images/layers.png index eddf642..54933be 100644 Binary files a/public/images/layers.png and b/public/images/layers.png differ diff --git a/src/entities/tile.coffee b/src/entities/tile.coffee index 2d07728..ca69c72 100644 --- a/src/entities/tile.coffee +++ b/src/entities/tile.coffee @@ -25,9 +25,11 @@ class Tile extends BaseEntity else @currentLayer += 1 - if @currentLayer > app.game.resources.length + if @currentLayer > Object.keys(app.game.resources).length @died = true + @currentMiner = null if @currentMiner + tick: -> @currentMiner.tick @