(get-pos sprite & [offset-x offset-y])
return the position of sprite as a vec2. optionally pass in an x and y offset to add to the returned vector
return the position of sprite as a vec2. optionally pass in an x and y offset to add to the returned vector
(make-point x y)
Make a PIXI Point from x and y
Make a PIXI Point from x and y
(make-sprite
texture
&
{:keys [x y xhandle yhandle scale alpha interactive mousedown rotation tint
tiling tiling-width tiling-height visible]
:or
{x 0 y 0 xhandle 0.5 yhandle 0.5 scale 1 alpha 1 rotation 0 tiling false}})
construct a sprite by its texture. optionally pass in other things
construct a sprite by its texture. optionally pass in other things
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close