ld31-space-diggers/src/game.coffee
Aaron Mueller 22e61f4e13 tiles ...
2014-12-06 13:15:57 +01:00

21 lines
299 B
CoffeeScript

app.game =
start: ->
for i in [0..20*15]
@map[i] = new Tile
render: ->
for tile, i in @map
tile.render(i-(Math.floor(i/20)*20), Math.floor(i/20))
@hud.render()
step: ->
map: []
resources:
stardust: 0
bedrock: 0
lubinit: 0
oxodum: 0
notch: 0