melonJS/melonJS: Release 10.7.0
Added
- Core : new
device.nodeJS
to detect if running under node.js
- Particle Emitter: added the possibility to define a specific tint and blend mode for particles
- Renderable: new
centerOn
method to center a renderable around given coordinates
- Renderer: added "additive" as an alias for the "lighter" blend mode
- Renderer: listen to
contextlost
& contextrestored
events in Canvas rendering mode (@see https://developer.chrome.com/blog/canvas2d/#context-loss)
Changed
- Core : replace internal use of global window object by
globalThis
- Core : refactor the boot process, and device/feature detection/initialisation to better work within node.js (will still require jsdom and node-canvas)
- Particle Emitter: refactoring of the Emitter class to directly extend
Container
instead of Renderable
Fixed
- Particle Emitter: fix a regression in
ParticleEmitter
causing a crash, after es6 class reformatting
- Particle Emitter: fix particle additive blend mode in WebGL