KAPLAY is a JavaScript and TypeScript game library that makes it easy to create games for the web. It's free, open-source and fun. KAPLAY makes game development FFF (Fun, Fast, Fantastic).
KAPLAY is enjoyable and fun to use and easy to learn. That's why we've designed it to be based on blocks and functions. Here are some of the most common blocks you'll use.
kaplay();
play("sound");
destroy(obj)
get("dino")
obj.jump() // body() needed
obj.use(rotate(90))
debug.log("hi")
add([ sprite("rex"), pos(20, 40), "dino", ]);
add([ sprite("bean") pos(10, 10), rotate(90), anchor("center"), ]);
scene("win", (score) => { debug.log(score) }); // go and send params go("win", 1);
onKeyPress("f", () => { // code }); onKeyRelease(...); onKeyDown(...);
add([ sprite("bean"), area(), body(), ]);
onUpdate("dino", (obj) => { // needs rotate() obj.angle += 15 });
add([ sprite("bean"), area() ]);
add([ sprite("bean"), pos(20, 40) ]);
add([ text("ohhi"), pos(20, 40) ]);
loadSprite("sprite", "/bean.png"); loadFont("font", "/font.ttf"); loadSound("sound", "/sound.mp3");
onUpdate(() => { // code });
onDraw(() => { // code });
loop(1, () => { // every 1s });
wait(1, () => { // after 1s });
No more long nested methods likeobj.position.transform.translate(10, 20)
Just simple and fun to use methods and functions.
What our users say about KAPLAY. We are proud to have such a great community.
Amy@amyspark-ng
Clickery Hexagon's developer
The development of KAPLAY has allowed me to make Clickery an awesome game.
JSLegend@jslegendev
JavaScript content creator
KAPLAY has a very intuitive and easy to use API that makes gamedev a breeze compared to other alternatives.
Isaac Pante@ipante
Game Designer, developper & College Teacher
KAPLAY is the best framework to teach programming and create fast and furious video games. We already won three awards with it, and counting!
niceEli@niceEli
Developer
KAPLAY is one of the best libraries for TypeScript I’ve tried. It’s a very simple API yet very powerful.