Skip to content

Releases: melonjs/melonJS

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

v15.1.4

26 Apr 10:46
Compare
Choose a tag to compare

Fixed

  • Core: fix a regression with OffscreenCanvas support detection
  • Doc: fix broken hyperlinks in the audio documentation
  • TypeScript: fix documentation and typings for the loader API (thanks @edmundg)

v15.1.3

24 Apr 04:30
Compare
Choose a tag to compare
  • WebGL: fix a crash when creating/uploading a texture on browser(s) not supporting OffscreenCanvas