Liking cljdoc? Tell your friends :D

quip.core


default-drawclj

(default-draw {:keys [scenes current-scene] :as state})
source

default-initial-stateclj

Default initial values for the state map. The result of the game's :setup function will be merged on top.

Default initial values for the `state` map. The result of the game's
`:setup` function will be merged on top.
sourceraw docstring

default-on-closeclj

(default-on-close & _)
source

default-optsclj

Default game configuration options.

Default game configuration options.
sourceraw docstring

default-updateclj

(default-update state)
source

draw-stateclj

(draw-state {:keys [scenes current-scene] :as state})
source

draw-wrapperclj

(draw-wrapper {:keys [parent-draw-fn] :as state})
source

gameclj

(game {:keys [init-scenes-fn current-scene profiling?]
       :or {init-scenes-fn (constantly {}) current-scene :none profiling? false}
       :as override-opts})

Create a quip game configuration.

Takes a single override-opts map argument which contains overrides for default-opts.

Works with an empty override-opts, but needs a :init-scenes-fn and a :current-scene to start doing anything useful.

Create a quip game configuration.

Takes a single `override-opts` map argument which contains overrides
for `default-opts`.

Works with an empty `override-opts`, but needs a `:init-scenes-fn`
and a `:current-scene` to start doing anything useful.
sourceraw docstring

runclj

(run {:keys [title size setup update draw key-pressed key-released mouse-pressed
             mouse-released middleware on-close]
      :as game})

Run a quip game configuration as a quil sketch.

Run a quip game configuration as a quil sketch.
sourceraw docstring

update-stateclj

(update-state {:keys [scenes current-scene] :as state})
source

update-wrapperclj

(update-wrapper {:keys [parent-update-fn] :as state})

Allow us to change our update function.

Allow us to change our update function.
sourceraw docstring

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

× close