๐งฐ KAPLAY Technique Playground
Your toolbox for building Pac-Man, Donkey Kong, and Fishy. Each card teaches one technique with a live, runnable example you can watch and tweak. Plan your game in the workbooks, then come here to grab the pieces you need.
How to use this page: Click
โถ Run example to watch a technique run right here. For examples that use the keyboard,
click on the game first so it has focus, then use the keys listed under it. When you want the code, hit
โถ Open in KAPLAYGROUND โ it drops the whole example straight into the editor at
play.kaplayjs.com, ready to run and tinker with. (Or use
Copy to paste it into a game you're already building.)
Two things to know. These examples need the internet โ they download KAPLAY to run, so red text just means it couldn't load; check your connection and hit Restart. And Open in KAPLAYGROUND makes a separate scratch project set to the right KAPLAY version โ your own game stays where it is, so go ahead and experiment.
Used in:
๐ป Pac-Man
๐ฆ Donkey Kong
๐ Fishy
๐ Cheatsheet
โถ KAPLAYGROUND
๐ Full docs