Kaboom.js v0.4.0 Release Notes
-
- BREAK removed
init()
andkaboom.global()
, in favor ofkaboom()
, also allows multiple kaboom games on one pagejs // replaces init(), and added a 'global' flag for previous kaboom.global() kaboom({ global: true, width: 480, height: 480, });
or not globaljs const k = kaboom(); k.scene(); k.start(); k.vec2();
- BREAK changed
clearColor
onkaboom(conf)
to accept a 4 number array instead ofrgba()
- ➕ added a plugin system, see the
multiboom
example andsrc/plugins
- BREAK removed support for
.kbmsprite
, supports newer version of.pedit
through pedit plugin - BREAK
loadAseprite()
and made it an external plugin underplugins/aseprite.js
- ➕ added
sceneData()
for custom scene data kv store - 🛠 fixed
mouseClick
doesn't work on mobile - disabled context menu on canvas
- 0️⃣ prevented default behavior for 'tab' and function keys
- ➕ added
numFrames()
bysprite()
- ➕ added
screenshot()
that returns of a png base64 data url for a screenshot
- BREAK removed