             # init crafty canvas
             Crafty.init null, null, document.getElementById('crafty-canvas')
 
-            # Crafty.sprite 128, "sprite.png",
-            #     grass: [0,0,1,1],
-            #     stone: [1,0,1,1]
             Crafty.sprite 30, 45, "test_sprites_small.png",
                 blank: [0, 0]
                 player: [1, 0]

                zSize = levelDimensions[2]
                level = Crafty.diamondIso.init 30, 30, xSize, ySize

                for x in [xSize...0] # back to front to prevent overlap
                    for y in [1...ySize + 1]
                        for z in [1...zSize + 1]
                        # for z in [2...zSize + 2]
                            # which = Crafty.math.randomInt 0,10
                            # type = if which > 5 then "grass" else "stone"
                            tile = placeTile [x, y, z], 'blank'
                centerX = parseInt xSize/2
                centerY = parseInt ySize/2
                $log.debug 'centering viewport at', centerX, centerY


                placeEntity tile, position
                return tile
    ]
