Added new miner

This commit is contained in:
Ruben Müller 2014-12-06 20:08:15 +01:00
parent 31c538d6e1
commit eeb7d50055
2 changed files with 1 additions and 4 deletions

View file

@ -1,6 +1,3 @@
class Miner extends BaseEntity class Miner extends BaseEntity
render: (x, y) ->
app.layer.drawRegion app.entities.layers, [8, 0, 8, 8], x, y
tick: (tile) -> tick: (tile) ->
tile.click "left" tile.click "left"

View file

@ -50,7 +50,7 @@ class Tile extends BaseEntity
app.layer.drawRegion app.images.layers, tileLayer.sprite, x*8, y*8 app.layer.drawRegion app.images.layers, tileLayer.sprite, x*8, y*8
if @currentMiner 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 if @isSelected
app.layer.drawImage app.images.selected, x*8, y*8 app.layer.drawImage app.images.selected, x*8, y*8