Skip to content

v3001.0.5

Compare
Choose a tag to compare
@lajbel lajbel released this 18 Dec 16:58
· 11 commits to v3001 since this release

[3001.0.5] - 2024-12-18

Added

  • Added tags and components separation in KAPLAYOpt.tagsAsComponents
    (experimental)
  • Added .is(), .tag() and .untag() to GameObjRaw, check, add and remove
    (experimental)
  • Added .has() to GameObjRaw, to check if a game object has a component tags
    (experimental)
  • Added events for listen to comps being removed or added onUse() and
    onUnused() (experimental)
  • Added k.cancel() to cancel the current event (experimental)
  • onKeyPress("space", () => {
        // do something
        // cancel the event
        return cancel();
    });
  • Added getDefaultLayer() to get the default layer (experimental)
  • Added getLayers() to get the layers list (experimental)
  • Added many JSDoc specifiers on many functions (@require, @deprecated, @since, @group, etc)

Changed

  • Added .use(), .unuse() and .has() to GameObjRaw, to add, remove and
    check components. This only works with KAPLAYOpt.tagsAsComponents set to
    true (experimental)

Deprecated

  • Deprecated camera methods camScale(), camPos() and camRot() in favor of
    setCamScale(), getCamScale(), setCamPos(), getCamPos(), setCamRot()
    and getCamRot.
  • Deprecated camTransform() in favor of getCamTransform().
  • Deprecated camFlash() in favor of flash(), for a shake()-like name.

Fixed

  • Fixed artifacts present in some TrueType fonts.
  • Fixed .use() and .unuse() with area components.