Releases: melonjs/melonJS
Releases · melonjs/melonJS
v14.0.2
v14.0.1
v14.0.0
Added
- UI: New
UIBaseElement
class, a clickable container base UI element (thanks @wpernath) - UI: New
UITextButton
class, a clickable roundRect & Text base button (thanks @wpernath)
Changed
- Core: Build process will now only output a ES6 Bundle and the TS Declaration, ES5 is now fully deprecated
- Test Units: replaced the "old" ES5 based Jasmine+Karma framework by a modern ES6 based Mocha+Puppeteer one (thanks @L1lith)
- UI: the base
GUI_Object
class is now deprecated and replaced byUISpriteElement
, a Sprite based clickable element
Fixed
- Build: fix typescript generation (d.ts), no more missing API or modules
- Container: fix Container class initialization when no default viewport have been created
- Core: fix a regression with Ejecta platform detection (following ES6 refactoring)
v13.4.0
v13.3.0
v13.2.1
[13.2.1] (melonJS 2) - 2022-08-22
Fixed
- Release date and version/change tracking
[13.2.0] (melonJS 2) - 2022-08-22
Added
- Geometry: new base Point geometry object
- Tiled: now properly support Point geometry if defined in a map
Changed
- Core: replaced internal reference to the deprecated
trim[Left/Right]
methods by theirtrim[Start/End]
equivalents - WebGL: dissociate the
preMultipliedAlpha
setting from thetransparent
one since those are 2 different things
Fixed
- BitmapText: fix improper
fillStyle
initialization in BitmapText (thanks @wpernath) - Canvas: fix the "transparent" canvas mode with the canvas renderer (thanks @wpernath)
- Sprite: properly apply a tint when passed through the settings to the constructor
- WebGL: fix a regression with global opacity not being properly cascaded to texture in WebGL mode (thanks @wpernath)
v13.1.1
v13.1.0
Added
- Color: added a
setHSL(h, s, l)
andsetHSV(h, s, v)
method to the Color class - Tiled: add support for the new
class
property (note: melonJS will still set the deprecatedtype
one for backward compatibility) - Renderer: Canvas rendering mode can now be forced by adding
[#/&]canvas
to the URL (similarly with WebGL1/2 already) - Vector: new
moveTowards()
method for[Observable]Vector2d/3d
objects (limited to x and y axis for 3d vectors)
Changed
- Renderer: the double-buffering option for the Canvas Renderer is now deprecated, this to better align both renderer and enable further improvements
Fixed
- 9-Slice Sprite: fix resizing of a 9-slice sprite (thanks @NemoStein)
- Tiled: fix missing text property in TMX Object documentation
- Vector: fix
lerp()
not triggering the callback inObservableVector2/3d
objects - Renderer: fix the manual canvas scaling option (thanks @NemoStein)
v13.0.0
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)