(draw-game! {:keys [scenes current-scene] :as state})
Draw the game using the current scenes :draw-fn
.
Draw the game using the current scenes `:draw-fn`.
(preload-assets! window {audio-assets :audio image-assets :image})
Pre-load assets and display a loading bar
Pre-load assets and display a loading bar
(process-event {:keys [current-scene scenes] :as state}
{:keys [event-type] :as e})
(update-game {:keys [scenes current-scene] :as state})
Update the game state based on the current scenes :update-fn
.
Applies all unprocessed events to the game.
Update the game state based on the current scenes `:update-fn`. Applies all unprocessed events to the game.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close