-
Notifications
You must be signed in to change notification settings - Fork 4
Snippets
Daniel Báez edited this page Sep 8, 2024
·
7 revisions
KAPLAYGROUND provides some snippets for your usage, them are prefixed with k-
-
k-obj
: An objectadd()
in a constant -
k-init
:kaplay()
function with also aloadBean()
, great for starting. -
k-add
: A raw add() statement. -
k-arrows
: FouronKeyPress()
arrow handlers. -
k-arrows-down
: FouronKeyDown()
arrow handlers. -
k-onKeyPress
: AnonKeyPress()
event -
k-onKeyDown
: AnonKeyDown()
event -
k-onKeyRelease
: AnonKeyRelease()
event -
k-onUpdate
: AnonUpdate()
event -
k-debug
: Add the debug modedebug.inspect = true
-
k-onLoad
: An onLoad() event -
k-level
: An object (addLevel()) in a constant (with a mini ascii map and config example) -
k-scene
: A raw scene() function -
k-onCollide
: AnonCollide()
event for 2 tags