kaboom.js is a JavaScript library that helps you make games fast and fun!
<script src="https://kaboomjs.com/lib/0.1.0/kaboom.js"></script>
<script type="module">
// make kaboom functions global
kaboom.global();
// init kaboom context
init();
// define a scene
scene("main", () => {
// add a text at position (100, 100)
add([
text("ohhimark", 32),
pos(100, 100),
]);
});
// start the game
start("main");
</script>
use examples to test / add features
npm run site
- go to http://localhost:8000/examples
- edit examples in
site/pub/examples/