need to change the diaper .... :D
This commit is contained in:
parent
22e61f4e13
commit
c35af25d1c
1 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,9 @@ class Tile extends BaseEntity
|
||||||
constructor: (options) ->
|
constructor: (options) ->
|
||||||
super options
|
super options
|
||||||
|
|
||||||
@layers = (new Tilelayer(type: restype) for restype, amount in app.game.resources)
|
#@layers = (new Tilelayer(type: restype) for restype, amount in app.game.resources)
|
||||||
|
for restype, amount in app.game.resources
|
||||||
|
console.log(restype, amount)
|
||||||
|
|
||||||
@currentLayer = getRandomInt 0, 4
|
@currentLayer = getRandomInt 0, 4
|
||||||
|
|
||||||
|
@ -10,5 +12,5 @@ class Tile extends BaseEntity
|
||||||
# TODO: digging deeper?
|
# TODO: digging deeper?
|
||||||
|
|
||||||
render: (x, y)->
|
render: (x, y)->
|
||||||
tile = @layers[@currentLayer]
|
#tile = @layers[@currentLayer]
|
||||||
tile.render(app.layer, x, y)
|
#tile.render(app.layer, x, y)
|
||||||
|
|
Loading…
Reference in a new issue