From eeb7d50055fb3397b48aa772fe5a79aed6980d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20M=C3=BCller?= Date: Sat, 6 Dec 2014 20:08:15 +0100 Subject: [PATCH] Added new miner --- src/entities/miner.coffee | 3 --- src/entities/tile.coffee | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/entities/miner.coffee b/src/entities/miner.coffee index 6b38872..8b817d7 100644 --- a/src/entities/miner.coffee +++ b/src/entities/miner.coffee @@ -1,6 +1,3 @@ class Miner extends BaseEntity - render: (x, y) -> - app.layer.drawRegion app.entities.layers, [8, 0, 8, 8], x, y - tick: (tile) -> tile.click "left" diff --git a/src/entities/tile.coffee b/src/entities/tile.coffee index 170f9d5..3985b03 100644 --- a/src/entities/tile.coffee +++ b/src/entities/tile.coffee @@ -50,7 +50,7 @@ class Tile extends BaseEntity app.layer.drawRegion app.images.layers, tileLayer.sprite, x*8, y*8 if @currentMiner - app.layer.drawRegion app.images.entities, [8, 0, 8, 8], x*8, y*8 + app.layer.drawRegion app.images.entities, [16, 0, 8, 8], x*8, y*8 if @isSelected app.layer.drawImage app.images.selected, x*8, y*8