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