Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

0.3.4

Compare
Choose a tag to compare
@oakes oakes released this 16 May 23:12
· 302 commits to master since this release

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, and z 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, and actor? 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 the key-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! and body-angle! functions now expect the angle to be in degrees instead of radians.
  • The loader, loader!, and resolver macros are gone. They were inflexible, and largely unnecessary since the asset-manager creates loaders for you. If you need to create custom loaders, you're better off doing so with java interop.