Liking cljdoc? Tell your friends :D

quip.core

Creating and running a game, along with management of update and draw functions.

Creating and running a game, along with management of update and draw
functions.
raw docstring

default-draw!clj

(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-fps-counter!clj

(draw-fps-counter! {:keys [average-fps] :as state})
source

draw-state!clj

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

draw-wrapperclj

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

Allow us to change our draw function.

Allow us to change our draw function.
sourceraw docstring

gameclj

(game
  {:keys [init-scenes-fn restart-fn current-scene]
   :or {init-scenes-fn (constantly {}) restart-fn identity current-scene :none}
   :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

restartclj

(restart {:keys [restart-fn] :as state})
source

start!clj

(start! {:keys [title size setup update draw focus-gained focus-lost key-pressed
                key-released mouse-pressed mouse-released mouse-entered
                mouse-exited mouse-clicked mouse-moved mouse-dragged mouse-wheel
                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-framerateclj

(update-framerate {:keys [fr-window] :as state})

Keep track of the current average framerate.

Keep track of the current average framerate.
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