a fresh, modern & lightweight HTML5 game engine
MIT License
Bot releases are hidden (Show)
Published by obiot about 2 years ago
Published by obiot about 2 years ago
Published by obiot about 2 years ago
UIBaseElement
class, a clickable container base UI element (thanks @wpernath)UITextButton
class, a clickable roundRect & Text base button (thanks @wpernath)GUI_Object
class is now deprecated and replaced by UISpriteElement
, a Sprite based clickable elementPublished by obiot about 2 years ago
Published by obiot about 2 years ago
Published by obiot about 2 years ago
trim[Left/Right]
methods by their trim[Start/End]
equivalentspreMultipliedAlpha
setting from the transparent
one since those are 2 different thingsfillStyle
initialization in BitmapText (thanks @wpernath)Published by obiot about 2 years ago
Published by obiot about 2 years ago
setHSL(h, s, l)
and setHSV(h, s, v)
method to the Color classclass
property (note: melonJS will still set the deprecated type
one for backward compatibility)[#/&]canvas
to the URL (similarly with WebGL1/2 already)moveTowards()
method for [Observable]Vector2d/3d
objects (limited to x and y axis for 3d vectors)lerp()
not triggering the callback in ObservableVector2/3d
objectsPublished by obiot over 2 years ago
VIEWPORT_ONRESIZE
isDataUrl()
helper returning true if the given url is in the data:[<mediatype>][;base64],<data>
format.me.device
, and API clean-up (@see https://github.com/melonjs/melonJS/wiki/Upgrade-Guide#120x-to-130x-stable)game
into an instantiable Application
object, with game
now being the default instance of it (@see #1091)onload
and onerror
callbacks are now optionals when directly loading assets (easier with base64 encoded assets)Timer
documentation following previous refactoringPublished by obiot over 2 years ago
this release mostly contains the new melonjs logo/rebranding.
trim[left/right]
functions with native es10 equivalent (with polyfill)Published by obiot over 2 years ago
DOM_READY
event triggered when the DOM is loaded and ready (now used internally to trigger the onReady()
function)Published by obiot over 2 years ago
get(state)
function that return the instance to the Stage associated with the given statecollision.response
that serves no purpose anymore)x
and y
arguments of the draw method are set to a default valueonCollision
methodsetMaxVelocity
and setFriction
method scopePath2D.arcTo
, Rect.centerOn
, Texture.AdduVs
)Published by obiot over 2 years ago
timer
(namespace) now being the default instance of the Timer classaddFrame()
methodlocalStorage
clone()
methodstrokeLine()
in the CanvasRendererPublished by obiot over 2 years ago
CanvasTexture
object to allow recycling canvas through the engine (text caching, default particles, effect, etc..)toRGBA
or toHex8
eval()
by Function()
when parsing map including executable codesubstr
function with slice
Published by obiot over 2 years ago
contains
and other utility methods to RoundRectPublished by obiot over 2 years ago
Published by obiot over 2 years ago
Published by obiot over 2 years ago
device.nodeJS
to detect if running under node.jscenterOn
method to center a renderable around given coordinatescontextlost
& contextrestored
events in Canvas rendering mode (@see https://developer.chrome.com/blog/canvas2d/#context-loss)globalThis
Container
instead of Renderable
ParticleEmitter
causing a crash, after es6 class reformattingPublished by obiot over 2 years ago
Published by obiot over 2 years ago
MoveTo[Top/Bottom]
, move[Up/Down]
and swapChildren