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