Added new miner
This commit is contained in:
parent
31c538d6e1
commit
eeb7d50055
2 changed files with 1 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue