ld31-space-diggers/src/main.coffee

20 lines
241 B
CoffeeScript
Raw Normal View History

2014-12-06 09:24:36 +01:00
app = playground({
2014-12-06 10:34:53 +01:00
width: 8*20,
height: 8*15,
2014-12-06 09:24:36 +01:00
scaleToFit: true,
smoothing: false,
create: ->
ready: ->
2014-12-06 10:34:53 +01:00
@game.start()
@setState @game
2014-12-06 09:24:36 +01:00
step: ->
2014-12-06 10:34:53 +01:00
2014-12-06 09:24:36 +01:00
render: ->
2014-12-06 10:34:53 +01:00
@layer.clear("#00f");
@game.render
2014-12-06 08:22:38 +01:00
})