Kaboom-like
Using the functional approach of Kaboom.js, kiboom plugin feels like a native part of the library.
npm i kiboom
pnpm add kiboom
yarn add kiboom
bun add kiboom
ni kiboom
Kaboom-like
Using the functional approach of Kaboom.js, kiboom plugin feels like a native part of the library.
Extendable API
Create, merge and extend your object makers for create optionable objects
Easy to use
Create your own maker functions with a few lines of code.
TypeScript Support
Full TypeScript support out of the box.
// Create a enemy maker
// We create some options with defaultsconst makeEnemyOpt = makeOptions(() => ({ speed: 100, hp: 100,}));
// We create the new makerconst makeEnemy = extendMaker(makeObject, makeEnemyOpt, (opt) => [ // here our components list hp(opt.hp), move(LEFT, opt.speed),]);
// Now we can use our new makerk.add(makeEnemy({ hp: 200, // We can override our maker options speed: 200, // We can override our maker options pos: vec2(100, 100), // We can modify the base options of makeObject anchor: "topleft", // We can modify the base options of makeObject}));