ld31-space-diggers/src/main.coffee

26 lines
369 B
CoffeeScript
Raw Normal View History

2014-12-06 09:24:36 +01:00
app = playground({
width: 16*20,
height: 16*20,
scaleToFit: true,
smoothing: false,
createTestTiles: ->
2014-12-06 09:59:01 +01:00
@testTile1 = new Tile
@testTile2 = new Tile
2014-12-06 08:22:38 +01:00
2014-12-06 09:24:36 +01:00
create: ->
@createTestTiles()
ready: ->
game.start
@setState game
step: ->
render: ->
this.layer.clear("#000");
2014-12-06 09:59:01 +01:00
@testTile1.render()
@testTile2.render()
2014-12-06 08:22:38 +01:00
})