13.0.0
版本发布时间: 2022-07-18 14:47:17
melonjs/melonJS最新发布版本:17.4.0(2024-06-22 08:57:43)
added
- Event: also provide a reference to the camera viewport being resized when emitting
VIEWPORT_ONRESIZE
- Unit Test: added base64 encoded data preload testing for image and audio assets
- Utils: new
isDataUrl()
helper returning true if the given url is in thedata:[<mediatype>][;base64],<data>
format.
Changed
- Core: full ES6 refactoring of
me.device
, and API clean-up (@see https://github.com/melonjs/melonJS/wiki/Upgrade-Guide#120x-to-130x-stable) - Game: refactoring of the global
game
into an instantiableApplication
object, withgame
now being the default instance of it (@see #1091) - Loader:
onload
andonerror
callbacks are now optionals when directly loading assets (easier with base64 encoded assets) - Physic: World physic implementation is now properly tight to its corresponding parent application/game (@see #1091)
- Physic: Gravity is now properly applied as a force, instead of directly modifying a body velocity
- Physic: Gravity now properly takes in account the body mass
- Physic: resulting force is now properly cancelled at the end of an update cycle (not required anymore to manually set it to 0 in user code)
Fixed
- Doc: fix missing
Timer
documentation following previous refactoring - Loader: fix loading/preloading of base64 audio assets, and base64 encoded FontFace
- Renderer: fix a regression with the masking features in the Canvas Rendering mode
- Text: fix an uncaught exception when removing Text object from the game world that use offScreenCanvas texture caching (thanks @wpernath)
1、 melonjs.js 1.16MB
2、 melonjs.min.js 323.02KB
3、 melonjs.module.d.ts 426.85KB
4、 melonjs.module.js 1.13MB