Kaplay Library Crash Course

Опубликовано: 22 Февраль 2026
на канале: JSLegendDev
9,317
282

Important links :
Kaplay docs : https://kaplayjs.com
Kaplay installation guide : https://kaplayjs.com/guides/install
Kaplayground : https://play.kaplayjs.com/
Kaplay Discord server :   / discord  
My substack for written tutorials : https://jslegenddev.substack.com


Chapters

0:00 Intro - What is Kaplay
1:26 How to install Kaplay
5:38 How to deploy/publish a game made with Kaplay
7:42 How to initialize the Kaplay
13:02 How to load assets in Kaplay
23:57 How scenes work in Kaplay
26:59 How game objects work in Kaplay
31:06 Child vs parent game objects
32:42 Kaplay major components : the sprite() component
35:45 Kaplay major components : the area() component
38:48 Kaplay major components : the body() component
43:53 Kaplay major components : the text() component
51:57 Introducing tags and get() method
55:53 use() and unuse() methods to add/remove components
58:07 Handling collisions with onCollide() and onCollideEnd()
1:04:10 Handling use input with onKeyDown(), onKeyPress() and onKeyRelease()
1:17:11 Advanced features : tween() function
1:20:01 Advanced features : Briefly introducing how game maps are made in Kaplay
1:22:38 Advanced features : Briefly introducing how AI made with state machines
1:23:59 Advanced features : Briefly introducing custom events in Kaplay