Liking cljdoc? Tell your friends :D

clunk.core


default-draw!clj

(default-draw! {:keys [vg default-font window current-scene] :as state})
source

default-on-closeclj

(default-on-close & _)
source

default-optsclj

source

drain-events!clj

(drain-events!)
source

draw-background!clj

(draw-background! [r g b a])
source

draw-game!clj

(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`.
sourceraw docstring

draw-preload-progress!clj

(draw-preload-progress! window current total)
source

empty-queueclj

source

enqueue-event!clj

(enqueue-event! e)
source

eventsclj

source

gameclj

(game override-opts)

Create a game config map

Create a game config map
sourceraw docstring

initclj

(init {[initial-window-width initial-window-height] :size :as game-config})
source

initial-stateclj

source

main-loopclj

(main-loop {:keys [window] :as state})
source

preload-assets!clj

(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
sourceraw docstring

process-eventclj

(process-event {:keys [current-scene scenes] :as state}
               {:keys [event-type] :as e})
source

reset-ortho-projectionclj

(reset-ortho-projection w h)
source

start!clj

(start! {:keys [init-scenes-fn on-start-fn on-close-fn] :as game})
source

start-event-pollingclj

(start-event-polling state)
source

update-gameclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close