10.7.0
版本发布时间: 2022-05-04 15:28:57
melonjs/melonJS最新发布版本:17.4.0(2024-06-22 08:57:43)
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 ofRenderable
Fixed
- Particle Emitter: fix a regression in
ParticleEmitter
causing a crash, after es6 class reformatting - Particle Emitter: fix particle additive blend mode in WebGL
1、 melonjs.js 1.13MB
2、 melonjs.min.js 337.69KB
3、 melonjs.module.d.ts 410.42KB
4、 melonjs.module.js 1.1MB