11 lines
235 B
CoffeeScript
11 lines
235 B
CoffeeScript
class Tilelayer extends BaseEntity
|
|
constructor: (options) ->
|
|
{@type, @depth, @amount} = options
|
|
|
|
render: (layer, x, y)->
|
|
# TODO: Draw sprite
|
|
color = "green"
|
|
layer.fillStyle color
|
|
.fillRect x*8, y*8, 8, 8
|
|
|