     (.add scene light2)
     (.setSize renderer js/window.innerWidth js/window.innerHeight)
     (js/document.body.appendChild (.-domElement renderer))
+    (js/document.addEventListener "keydown" handle-input)
     (swap! world assoc :prev js/Performance.now)
     (swap! world assoc :accum-time 0.0)
     (let [animate (fn animate [current-time]

(enable-console-print!)

(def world (atom {}))

(defn update-world
  [delta-time]

        leftover-time (@world :accum-time)
        time-step 16.666666666666668]
    (swap! world assoc :prev-time now)
    (process-input)
    (when (@world :running)
      (swap! world assoc :leftover-time
             (loop [accumulated (+ leftover-time (- now prev))]
               (if (>= accumulated time-step)
                 (do (update-world time-step)
                     (recur (- accumulated time-step)))
                 accumulated))))))

(defn ^:export init-game
  []
