Skip to content

Releases: melonjs/melonJS

v14.0.2

18 Oct 08:58
Compare
Choose a tag to compare

Fixed

  • Build: fix wrong distribution files being published on NPM

v14.0.1

18 Oct 08:56
Compare
Choose a tag to compare

Fixed

  • Physic: fix faulty colllision detection under certain circumstances

v14.0.0

11 Oct 05:59
Compare
Choose a tag to compare

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 by UISpriteElement, 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

27 Sep 02:58
Compare
Choose a tag to compare

Added

  • BitmapText: melonJS will now throw a warning message in the console, instead of failing silently, if a Glyph is not defined for a given character (thanks @wpernath)

Fixed

  • BitmapText: fix kerning when scaling BitmapText objects (thanks @SiLiKhon)

v13.3.0

28 Aug 07:10
Compare
Choose a tag to compare

Added

  • Documentation: enable offline documentation access with the latest webdoc 2.1 version

Changed

  • Readme: replace link to the latest tutorial

v13.2.1

22 Aug 03:52
Compare
Choose a tag to compare

[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 their trim[Start/End] equivalents
  • WebGL: dissociate the preMultipliedAlpha setting from the transparent 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

10 Aug 00:00
Compare
Choose a tag to compare
  • Release date and version/change tracking

v13.1.0

09 Aug 23:55
Compare
Choose a tag to compare

Added

  • Color: added a setHSL(h, s, l) and setHSV(h, s, v) method to the Color class
  • Tiled: add support for the new class property (note: melonJS will still set the deprecated type 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 in ObservableVector2/3d objects
  • Renderer: fix the manual canvas scaling option (thanks @NemoStein)

v13.0.0

18 Jul 06:47
Compare
Choose a tag to compare

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 the data:[<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 instantiable Application object, with game now being the default instance of it (@see #1091)
  • Loader: onload and onerror 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)

v12.0.0

27 Jun 06:14
Compare
Choose a tag to compare

this release mostly contains the new melonjs logo/rebranding.

Changed

  • Loader: the default loading screen has been updated with the new melonjs logo
  • String: replaced own trim[left/right] functions with native es10 equivalent (with polyfill)