Skip to content

Releases: melonjs/melonJS

v10.1.1

12 Nov 00:41
Compare
Choose a tag to compare

Fixed

  • documentation: add missing pages for Container and World object
  • Renderable: also flag as "dirty" when changing opacity, or when viewport change is triggering an ImageLayer update

v10.1.0

07 Nov 23:22
Compare
Choose a tag to compare

Changed

  • Input: refactor me.Pointer by extending me.Bounds instead of me.Rect (simplify implementation and memory usage when using pointer Event)
  • WebGL: refactor/simplify the WebGLCompositor implementation to be more generic
  • WebGL: prevent temporary Array Buffer Allocation when using WebGL2
  • WebGL: tint color are now packed into Uint32 before passing them to the Vertex Shader
  • Device: replace use of deprecated onorientationchange() event listener by the standard ScreenOrientation one

Fixed

  • Input: fix a regression, throwing an undefined property exception, when accessing me.input.pointer before registering on any events (thanks @kkeiper1103)
  • WebGL: fix initial declaration of the WebGLVersion property

v10.0.2

02 Nov 08:33
Compare
Choose a tag to compare

Fixed

  • Documentation: fix missing class definition after the 10.0.0 release

v10.0.1

25 Oct 04:36
Compare
Choose a tag to compare

Fixed

  • Physic: fix a regression (crash) with undefined reference in the minified ES6 module

v10.0.0

25 Oct 04:34
Compare
Choose a tag to compare

Added

  • melonJS is now a pure ES6 library, for class definition, inheritance and semantic
  • melonJS now includes typescript definition for the ESM melonjs.module bundle (thanks @qpwo)
  • Core : new me.event.BOOT event that will be triggered when melonJS is initialized
  • Physic : physic bodies can now be configured as static bodies (which do not move automatically and do not check for collision with others)
  • Event : new system events at the beginning and end of both the update and draw "loop"

Changed

  • Jay Inheritance has been replaced with ES6 standard inheritance
  • Core : object using the pooling function must now implement a onResetEvent method and use the recycling flag when registered
  • Core : manually pushing a non recyclable object into the object pool will now throw an exception instead of silently failing
  • Physic : physic body update and collision check is now automatically done through the world simulation update loop
  • Physic : fixed gravitational acceleration (thanks @neilsf)
  • Event: minPubSub event based implementation has been replaced by a nodeJS event emitter based implementation
  • Renderable: calling flipX/Y() without argument will now flip the renderable as expected

Deprecated

  • all deprecated API from the legacy melonJS version have been removed

Fixed

  • Renderer: fix the stencil masking feature on renderable components (for both WebGL and Canvas mode)
  • Loader: fix a graphic glitch in the default preloading screen

v9.1.2

03 Oct 00:02
Compare
Choose a tag to compare

https://github.com/melonjs/melonJS/wiki/Upgrade-Guide#80x-to-91x-stable

Fixed

  • fix a regression with state pause & resume when losing & gaining window focus
  • remove duplicated translate method for basic shapes and add missing shift method to Polygon

v9.1.1

27 Sep 08:25
Compare
Choose a tag to compare

[9.1.1] - 2021-09-26

Fixed

  • Renderable : fix the error message in me.Sprite on undefined image/texture source

v9.1.0

27 Sep 08:26
Compare
Choose a tag to compare

[9.1.0] - 2021-09-26

Added

  • Renderable : simplify ImageLayer implementation by extending Sprite object
  • TMX : add missing tinting support for Image Layers (was added "only" for Tiled Layer in 9.0.0)
  • TMX : add support for the new Tiled Parallax Layers x and y ratio properties

Fixed

  • TMX : fix a regression with Parallax scrolling ratio

melonJS 9.0.2

24 Sep 23:56
Compare
Choose a tag to compare
  • Audio : Howler audio core update (2.2.3)
  • Core : overall code rewrite to comply with ES6 module and class semantic (at the exception of #1021)
  • Core : melonJS build process now automatically output one ES5 umd "legacy" bundle, and one pure ES6 module
  • Core : the "legacy" es5 umd bundle is now automatically transpiled (from ES6 to ES5) using rollup and bubble
  • Core : internal rewrite on object bound implementation, with all Renderable now fully using/relying on the me.Bounds object introduced in last version
  • Container : Unified bound management between Container and Renderable (Container now follow its parent Renderable implementation)
  • Container : Containers defines an additional enableChildBoundsUpdate flag to enable full bounds update, including child bounds (disabled by default)
  • Entity : me.CollectableEntity is now deprecated and replaced by a more generic me.Collectable base object that do not extend me.Entity anymore
  • Entity : me.LevelEntity is now deprecated and replaced by a more generic me.Trigger objects that do not extend me.Entity anymore
  • Math : add missing applyInverse() method to the Matrix3d implementation
  • Math : fix Matrix3d translate method when passing a 2d vector as argument
  • Renderable : fix Renderables bounds not correctly respecting the anchor point.
  • Renderer : WebGL2 is now the default mode when using the WebGL renderer (use preferWebGL1 = true calling me.video.init if you need to force WebGL1)
  • Tiled : add TMX tintcolor parsing for tile and object layers
  • Stage : me.Stage constructor now accept new argument properties to specify the onResetEvent and onDestroyEvent functions
  • Stage : fix a crash with legacy API when using the deprecated me.ScreenObject object
  • TMX : fix crash when trying to add collisionType to text nodes (thanks @framp)
  • TMX : fix a regression with the Tile Layer preRender feature
  • TMX : fix tile properties import for the new Tiled JSON format (thanks @3ck0o)
  • TMX : "unnamed" object in Tiled will now instantiate base Renderable object (with a physic body) rather than an "sprite-less" Entity object
  • Tween: allow to pass a set of tween properties to the '.to' method instead of just the duration (thanks @0xf0f0f0)

melonJS 8.0.1

12 Aug 02:38
Compare
Choose a tag to compare

8.0.0 release fix for NPM and jsDeliver, see https://github.com/melonjs/melonJS/releases/tag/8.0.0