Installation
This plugin is only compatible with the version 3000 of Kaboom.js, so make sure you have it installed.
Installation
npm i kiboom
yarn add kiboom
pnpm add kiboom
Usage
We recommend have a separate file for the engine, and another for the game.
import kaboom from "kaboom";import { kiboom } from "kiboom";
export const k = kaboom({ // This loads your plugin plugins: [ kiboom ],});
// This should be your entry fileimport k from "./engine.js";
k.add(k.makeSprite({ pos: k.vec2(100, 100), sprite: "player",}));