SEARCH
CTRL + K
Interface
GfxFont
:
tex
:
Texture
map
:
Record
<
string
,
Quad
>
size
:
number
Open
In new tab
3001.0.19
v4000
3001.0.19
Guides
API Reference
Blog
Start
kaplay
quit
KAPLAYOpt
Assets
loadRoot
loadSprite
loadSpriteAtlas
loadAseprite
loadPedit
loadBean
loadJSON
loadSound
loadMusic
loadFont
loadBitmapFont
loadShader
loadShaderURL
load
loadProgress
getSprite
getSound
getFont
getBitmapFont
getShader
getAsset
Asset
SpriteData
SoundData
Game Obj
add
make
readd
get
query
destroy
destroyAll
GameObjRaw
GameObj
GameObjID
Components
pos
scale
rotate
color
opacity
sprite
text
polygon
rect
circle
uvquad
area
anchor
z
outline
particles
body
surfaceEffector
areaEffector
pointEffector
platformEffector
buoyancyEffector
constantForce
doubleJump
move
offscreen
follow
shader
textInput
timer
fixed
stay
health
lifespan
named
state
fadeIn
mask
drawon
tile
agent
animate
serializeAnimation
sentry
patrol
pathfinder
Comp
Component Types
CircleComp
CircleCompOpt
ColorComp
MaskComp
OpacityComp
OutlineComp
ParticlesOpt
ParticlesComp
PolygonComp
PolygonCompOpt
RectComp
RectCompOpt
ShaderComp
SpriteComp
SpriteCompOpt
TextComp
TextCompOpt
UVQuadComp
AgentComp
AgentCompOpt
FixedComp
PosComp
SentryComp
SentryCompOpt
TileComp
TileCompOpt
HealthComp
LifespanCompOpt
NamedComp
StateComp
StayComp
TextInputComp
TimerComp
AreaComp
AreaCompOpt
BodyComp
BodyCompOpt
DoubleJumpComp
AnchorComp
FollowComp
LayerComp
OffScreenComp
OffScreenCompOpt
RotateComp
ScaleComp
ZComp
MergeComps
CompList
EmptyComp
LevelComp
Scene
getSceneName
scene
go
layers
Input
onGamepadConnect
onGamepadDisconnect
onClick
onKeyDown
onKeyPress
onKeyPressRepeat
onKeyRelease
onCharInput
onMouseDown
onMousePress
onMouseRelease
onMouseMove
onTouchStart
onTouchMove
onTouchEnd
onScroll
onGamepadButtonDown
onGamepadButtonPress
onGamepadButtonRelease
onGamepadStick
onButtonPress
onButtonRelease
onButtonDown
isTouchscreen
mousePos
mouseDeltaPos
isKeyDown
isKeyPressed
isKeyPressedRepeat
isKeyReleased
isMouseDown
isMousePressed
isMouseReleased
isMouseMoved
isGamepadButtonPressed
isGamepadButtonDown
isGamepadButtonReleased
isButtonPressed
isButtonDown
isButtonReleased
getButton
setButton
pressButton
releaseButton
getGamepadStick
getLastInputDeviceType
charInputted
Key
MouseButton
KGamepadButton
GamepadStick
Events
trigger
on
onFixedUpdate
onUpdate
onDraw
onAdd
onDestroy
onUse
onUnuse
onTag
onUntag
onLoad
onLoadError
onLoading
onError
onResize
onCleanup
onCollide
onCollideUpdate
onHover
onHoverUpdate
onHoverEnd
onHide
onShow
onSceneLeave
KEvent
KEventHandler
KEventController
cancel
GameObjEventMap
Info
width
getTreeRoot
height
center
dt
fixedDt
restDt
time
isFocused
setBackground
getBackground
getGamepads
setCursor
getCursor
setCursorLocked
isCursorLocked
setFullscreen
isFullscreen
canvas
VERSION
Timer
wait
loop
TimerController
TweenController
Math
raycast
vec2
rgb
hsl2rgb
quad
chance
lerp
tween
easings
easingSteps
easingLinear
easingCubicBezier
map
mapc
wave
deg2rad
rad2deg
clamp
evaluateQuadratic
evaluateQuadraticFirstDerivative
evaluateQuadraticSecondDerivative
evaluateBezier
evaluateBezierFirstDerivative
evaluateBezierSecondDerivative
evaluateCatmullRom
evaluateCatmullRomFirstDerivative
curveLengthApproximation
normalizedCurve
testLinePoint
testLineLine
testLineCircle
testRectRect
testRectLine
testRectPoint
testCirclePolygon
isConvex
triangulate
NavMesh
Point
Line
Rect
Circle
Ellipse
Polygon
Vec2
Color
Mat4
Quad
RNG
Vec2Args
ShapeType
RaycastHit
RaycastResult
UniformValue
UniformKey
Uniform
LerpValue