This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
0.3.4
This release provides several improvements:
- Shapes and UI entities now have the ability to rotate with the
:angle
keyword, much like textures already do. However, some UI entities, like labels, cannot be rotated. - New listener functions like gesture-detector! and click-listener! for setting various properties associated with those screen functions.
- The
x
,y
, andz
functions (along with their bang equivalents) now work on Vector2 and Vector3 objects so you can conveniently set and get these values. - In play-clj.ui, you may now use
actor!
to call methods commonly used by all UI entities, andactor?
to test whether it is a UI entity of any kind.
There are a few small breaking changes:
- I'm transitioning the
:on-key-down
and:on-key-up
screen functions to pass the key code as:key
instead of:keycode
. However,:keycode
will still work so this is not (yet) a breaking change. I'm doing this because (1) it's easy to confuse:keycode
with thekey-code
function, and (2):key
is more consistent with:button
, which is how button codes are passed. - In play-clj.g2d-physics, the
body-position!
andbody-angle!
functions now expect the angle to be in degrees instead of radians. - The
loader
,loader!
, andresolver
macros are gone. They were inflexible, and largely unnecessary since theasset-manager
creates loaders for you. If you need to create custom loaders, you're better off doing so with java interop.