app.game = { start: -> for i in [0..20*15] @map[i] = new Tile hud: -> app.layer .fillStyle "#00f" .fillRect 0, 0, 200, 50 render: -> for i in @map i.render() step: -> @hud map: [] resources: ore: 50 stone: 100 }