                        (if (not= mode :playing)
                          (game-menu {:gamemode mode :width width :height height})
                          (dom/div #js
-                                  {:style #js {:position "absolute" :top "20px" :left "20px" :color "white" :fontSize 30}}
+                                  {:style #js { :position "absolute" :top "20px" :left "20px" :color "white" :fontSize 30}}
                                   (str "Orbs remaining: " (count orbdata)))))))))
 
 

                 mesh-assets :assets/meshes
                 mode :gamemode
                 orbdata :orbs} props
                rendererprops {:width width :height height :rapidrender false}
                sceneprops (assoc rendererprops :camera "playercamera")]
            ;; until assets are loaded, just say "loading..."
            (if (or (nil? texture-assets)

                menutop (* h 0.6)]
            (if (= mode :victorymenu)
              ;; got all orbs, show completion screen
              (dom/div #js {:style #js {:display "flex" :flexDirection "column" :position "absolute" :top "0px" :left "0px" :width w :height h :color "white" :fontSize 30}}
                       (dom/div #js {:style #js {:margin "auto"}} "All orbs gathered!")
                       (dom/div #js {:style #js {:margin "auto"}} "Press space for new level"))
              ;; otherwise show startup screen
              (dom/div #js {:style #js {:display "flex" :flexDirection "column" :position "absolute" :top "0px" :left "0px" :width w :height h :color "white" :fontSize 30}}
                       (dom/div #js {:style #js { :margin "auto"}} "Blue Salamander")
                       (dom/div #js {:style #js { :margin "auto"}} "Press space to start"))))))
(def game-menu (om/factory GameMenu {:keyfn :key}))
