You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 eventreturncancel();});
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.