     om/IRender
     (render [_]
             (dom/div nil
+                     (om/build background-view (:player state))
                      (om/build player-coordinates (:player state))
                      (om/build player-view (:player state))))))
 
-
-

  "construct a style string from a js array. e.g position = #js [0, 9.8]"
  [player]
  (clj->js (merge {:position "absolute"
                  :background-color "orange"}
                 (ps-size (:radius player))
                 (ps-position (:x player) (:y player) (:radius player)))))


(defn player-view [player owner]
  (reify
    om/IRender
    (render [_]
            (dom/div #js {:style (player-style player)} "player"))))


;; game view/wrapper


(def physics-to-pixel 80)

(def screen-width (fn [] js/window.innerWidth))
(def screen-height (fn [] js/window.innerHeight))


;; player view
