melonJS/melonJS: Release 15.6.0
Added
- Audio: expose the audio
load
method in the documentation and typings
- Loader: melonJS now dynamically assign parser/preload functions to known asset types
- Loader: add the possibility to specify a user defined parser/preload function for a given asset type
- Renderable: new
depth
getter/setter that will returns the depth of a renderable on the z axis
- Renderer: the default renderer instance is now passed as parameter when emitting the global
VIDEO_INIT
event
- Renderer: add path like methods (
beginPath
, lineTo
, moveTo
, rect
, roundRect
, closePath
, fill
and stroke
)
Changed
- Geometry: optimize Path2d triangulation by only recalculating all triangles when the path is modified
Fixed
- Core: fix some leftover direct global references to
document
(now using globalThis.document
)
- Geometry: fix consecutive Path2d line stroke in WebGL mode