API Reference
Docs for all KAPLAY functions, components, types and more.
KAPLAY API is the easiest and a lot of fun to use!
It all starts with kaplay()...
Then you usually add()
objects. The object itself includes many useful methods and properties that you might miss if you only search for general functions or components.
You can see these when you navigate to their "returns", interfaces, or types, like add() > GameObj > GameObjRaw.
The same goes for components. When you check how to use them, don't forget to explore everything they offer. For example, pos() > PosComp – besides setting the position of the object, you could miss
all the things you can do with it now, like obj.move()
!
Or the other way around, check types if you can't find specific mechanics like e.g. collisions in AreaComp.
TL;DR: Remember to also check params, returns, interfaces, or types, besides the global functions for their goodies.