Liking cljdoc? Tell your friends :D

quip.scene


current-sceneclj

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

draw-scene-spritesclj

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

Draw each sprite in the current scene using its :draw-fn.

Draw each sprite in the current scene using its `:draw-fn`.
sourceraw docstring

fade-to-blackclj

(fade-to-black state progress max)
source

transitionclj

(transition
  {:keys [parent-update-fn parent-draw-fn] :as state}
  target-scene
  &
  {:keys [transition-fn transition-length init-fn]
   :or {transition-fn fade-to-black transition-length 20 init-fn identity}})

Temporarily replace parent-update-fn and parent-draw-fn with transition handdling versions which will set themselves back to the originals on completion.

Temporarily replace `parent-update-fn` and `parent-draw-fn` with
transition handdling versions which will set themselves back to the
originals on completion.
sourceraw docstring

update-scene-spritesclj

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

Update each sprite in the current scene using its :update-fn.

Update each sprite in the current scene using its `:update-fn`.
sourceraw docstring

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

× close