Skip to content

Releases: melonjs/melonJS

v15.7.0

19 Jul 04:41
Compare
Choose a tag to compare

Added

  • Color: new setFloat method allowing to specify RGBA components in a normalized float format

Fixed

  • Renderer: fix how alpha and globalAlpha values are applied in the Canvas Renderer to match with WebGL
  • TypeScript : fix loader.Asset definition typings (causing an error with the Vite-Typescript boilerplate)

v15.6.0

18 Jul 10:05
Compare
Choose a tag to compare

Added

  • Audio: expose the audio load method in the documentation and typings
  • Loader: melonJS now dynamically assign parser/preload functions to known asset types
  • Loader: add the possibility to specify a user defined parser/preload function for a given asset type
  • Renderable: new depth getter/setter that will returns the depth of a renderable on the z axis
  • Renderer: the default renderer instance is now passed as parameter when emitting the global VIDEO_INIT event
  • Renderer: add path like methods (beginPath, lineTo, moveTo, rect, roundRect, closePath, fill and stroke)

Changed

  • Geometry: optimize Path2d triangulation by only recalculating all triangles when the path is modified

Fixed

  • Core: fix some leftover direct global references to document (now using globalThis.document)
  • Geometry: fix consecutive Path2d line stroke in WebGL mode

v15.5.0

13 Jul 01:41
Compare
Choose a tag to compare

Changed

  • Color: optimize conversion function such as toHex and toUint32
  • Geometry: optimize circle/ellispe creation and recycling
  • Renderable: revert previous changes on the flip[X/Y] optimization since it's causing backward compatibility issue

Fixed

  • Doc: fix multiple incorrect @type tags across the API
  • Doc: fix ImageLayer extending Sprite and not Renderable
  • Doc: fix missing fillStyle and StrokeStyle properties for Text elements
  • Physic: fix a potential memory leak when recalculating a polygon edges and normals
  • TypeScript: fix missing typings for Vector[2d/3d] x, y and z properties
  • TypeScript: fix typings for Array parameter type

v15.4.1

24 Jun 02:51
Compare
Choose a tag to compare

Fixed

  • Audio : fix a TypeScript definition issue introduced in the previous version (on the audio init method)

v15.4.0

24 Jun 02:42
Compare
Choose a tag to compare

Added

  • Application: new pauseOnBlur, resumeOnFocus and stopOnBlur properties to configure a game behavior on blur and focus events

Changed

  • Core: visibility and focus/blur events are now managed internally through new global BLUR and FOCUS events
  • Device: pauseOnBlur, resumeOnFocus and stopOnBlur properties are now deprecated and replaced by their Application counterpart
  • Geometry: optimize Rect contains method by using typeof instead of instanceof to identify given parameter type

Fixed

  • Renderable : fix a potential issue with a Tile Layer not being properly redrawn when adding or clearing individual tiles
  • TMX : properly set the preRenderflag for Tiled layer at runtime (when added to the root container)
  • TMX : fix pre-rendering for non-orthogonal maps
  • UI: fix dirty flag for base UI elements not being set due to wrong property name (thanks @yuta0315)

v15.3.0

23 May 07:27
Compare
Choose a tag to compare

Added

  • Renderer: new scaleTarget that allows to specify which HTML element to be used as reference when scaling the canvas (thanks @johnhyde)

Changed

  • Application: world steps and rendering update are now done through a new global TICK event
  • Application: further "decoupling" of Application, Stage and State (see #1091)
  • Renderable : faster implementation of the tint getter/setter, and Color copy method

Fixed

  • doc: fix the @name value of state.DEFAULT (thanks @johnhyde)
  • doc: fix documentation for the TMXUtils namespace
  • Renderer: fix potential memory leak in WebGL, where the renderer was not clearing the save/restore stack upon reset
  • TypeScript : fix optional arguments typings for all renderers and Application constructor

v15.2.1

14 May 02:39
Compare
Choose a tag to compare

Fixed

  • TMX: fix a regression with the inflate patch entry point

v15.2.0

12 May 08:31
Compare
Choose a tag to compare

Changed

  • Plugin: the Base plugin class is now deprecated and replaced by BasePlugin (Base is just an alias now)

Fixed

  • Typescript: fix typing for the utils and plugin API
  • Utils: fix "namespace" es6 declaration and export

v15.1.6

10 May 01:01
Compare
Choose a tag to compare
  • TypeScript: fix typings for methods taking a renderable as argument, by enumerating all different class types

v15.1.5

05 May 08:20
Compare
Choose a tag to compare
  • Container: fix child bounds not being recalculated when a child is added through the addChildAt() method
  • Container: fix container not recursively updating child bounds when enableChildBoundsUpdate is enabled
  • Renderable: fix floating coordinates mismatch by forcing a child floating property to false when added to a floating container
  • Renderable: fix the isFloating getter to also return true when a renderable is added to nested floating containers
  • UI: fix initial UIBaseElement bound calculation when using nested UI containers
  • UI: fix UIBaseElement container not propagating events to child objects by default