MelonJS Versions Save

a fresh, modern & lightweight HTML5 game engine

15.13.0

7 months ago

Changed

  • UI: UITextButton backgroundColor and hoverColor properties are now deprecated in favor of hoverOffColor and hoverOnColor

Fixed

  • UI: fix duplicated text rendering in UITextButton
  • UI: fix an exception when destroying a UITextButton

15.12.0

7 months ago

Added

  • Renderer: add proper width and height (getter/setter) properties and deprecate getHeight() and getWidth()

Changed

  • Audio: update howler.js to version 2.2.4

15.11.0

8 months ago
  • plugin: the BasePlugin class now holds a reference to the app or game instance that registered the plugin
  • plugin: new plugin.get() method to retrieve a plugin instance by its Class Type or registered name

15.10.0

8 months ago

Added

  • utils: new file getPath() method that return the path element of a full file path

Changed

  • Chore: new "docs" directory where production documentation is generated, and properly published using Github Workflows
  • Chore: update NPM dependencies

Fixed

  • Loader: fix the setParser() method not being exported (and therefore preventing from using and setting custom parser)

15.9.2

8 months ago

Fixed

  • Renderer: fix the Canvas Renderer setMask() method ignoring the default path when no argument is passed
  • Geometries: fix missing type property for all geometry and use internally for type checking instead of relying on instanceof

15.9.1

8 months ago

Fixed

  • Geometry: add default parameters to the Polygon constructor, allowing to instantiate "empty" polygons
  • TMX: fix CanvasRenderer option typo when using TMXLayer pre-rendering option (thanks @0o001)
  • TypeScript: fix missing parameter for setMask() in the parent Renderer class

15.9.0

9 months ago

Added

  • Input: new hasActiveEvents returning true if there are any pending events in the queue
  • Input: new hasRegisteredEvents returning true if there are registered pointer event listeners
  • Physic: new WORLD_STEP event emmitted after the builtin physic world has been updated (if enabled)
  • Renderer: fix/enable batching for all ellipse & arc(To) WebGL stroke operations
  • Renderer: the setTransform and transform() methods now also accept individual components to match the CanvasRenderingContext2D API

Fixed

  • Plugin: add missing deprecation warning for plugin.Base (deprecated since [15.1.6] and replaced by BasePlugin)

Changed

  • Physic: split the world update method into a separate step for clearer code when using custom update logic.

15.8.0

9 months ago

Added

  • Doc: add proper documentation and example for Renderer drawing-related APIs
  • Physic: new physic flag allowing to disable the builtin physic implementation
  • Renderer: new TextureCanvas invalidate() method to force reuploading the corresponding WebGL Texture

Fixed

  • Doc: fix missing default game application instance
  • Renderer: properly deallocate and reallocate texture unit after a texture deletion in WebGL rendering mode

15.7.0

9 months ago

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)

15.6.0

10 months ago

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