Kaboom.js v0.2.0 Release Notes
-
- (BREAK) removed
aseSpriteSheet
conf field fromloadSprite(name, src, conf)
- ➕ added
pause()
,resume()
,stop()
,loop()
,unloop()
,volume()
,detune()
,speed()
methods to the handle returned byplay()
- ➕ added
camShake()
for built in camera shake - ➕ added
loadAseprite(name, imgSrc, jsonSrc)
- ➕ added area component generation for
text()
- ➕ added
noArea
to conf field ofsprite()
,rect()
andtext()
, allowing to disable auto area component generation - ➕ added a
quad
field to sprite comp creation configsprite(id, { quad: quad(0, 0, 0.5, 0.5) })
- 🛠 fixed
resolve()
not working if the obj also hassolid
, so it does not check for itself (#8) mousePos()
accepts a layer argument, which returns the mouse position affected by camera transform if that layer is notcamIgnore()
-ed- 🛠 fixed camera position getting calculated before completing every object's update (#14)
- 🛠 fixed some cases
on("grounded", f)
called multiple times when moving on a smooth platform - ➕ added
revery()
to iterate objects in reverse order - ➕ added
readd()
to re-add an object to the scene without triggering events - ➕ added
level.spawn()
- (BREAK) removed