ld31-space-diggers/src/entities/tilelayer.coffee

11 lines
235 B
CoffeeScript
Raw Normal View History

2014-12-06 12:37:57 +01:00
class Tilelayer extends BaseEntity
2014-12-06 09:16:55 +01:00
constructor: (options) ->
2014-12-06 12:37:57 +01:00
{@type, @depth, @amount} = options
render: (layer, x, y)->
# TODO: Draw sprite
color = "green"
layer.fillStyle color
.fillRect x*8, y*8, 8, 8