21 lines
300 B
CoffeeScript
21 lines
300 B
CoffeeScript
app = playground({
|
|
width: 8*20*5,
|
|
height: 8*15*5,
|
|
scaleToFit: true,
|
|
smoothing: false,
|
|
|
|
create: ->
|
|
@loadImages "layers", "active", "selected", "entities"
|
|
|
|
ready: ->
|
|
@game.start()
|
|
@setState @game
|
|
|
|
step: ->
|
|
|
|
render: ->
|
|
@layer.clear "#00f"
|
|
@game.render()
|
|
|
|
})
|