This commit is contained in:
2026-02-20 09:49:26 +01:00
commit 9bab6d8885
8 changed files with 254 additions and 0 deletions

12
src/main.ts Normal file
View File

@@ -0,0 +1,12 @@
import kaplay, { Color } from "kaplay";
// import "kaplay/global"; // uncomment if you want to use without the k. prefix
const k = kaplay();
k.loadRoot("./"); // A good idea for Itch.io publishing later
k.loadSprite("bean", "sprites/bean.png");
k.add([k.pos(120, 80), k.sprite("bean")]);
k.onClick(() => k.addKaboom(k.mousePos()));