a fresh, modern & lightweight HTML5 game engine
MIT License
Bot releases are visible (Hide)
Published by obiot over 1 year ago
toHex
and toUint32
@type
tags across the APIImageLayer
extending Sprite
and not Renderable
fillStyle
and StrokeStyle
properties for Text
elementsVector[2d/3d]
x
, y
and z
propertiesPublished by obiot over 1 year ago
init
method)Published by obiot over 1 year ago
pauseOnBlur
, resumeOnFocus
and stopOnBlur
properties to configure a game behavior on blur and focus eventsBLUR
and FOCUS
eventspauseOnBlur
, resumeOnFocus
and stopOnBlur
properties are now deprecated and replaced by their Application counterpartcontains
method by using typeof instead of instanceof to identify given parameter typepreRender
flag for Tiled layer at runtime (when added to the root container)Published by obiot over 1 year ago
scaleTarget
that allows to specify which HTML element to be used as reference when scaling the canvas (thanks @johnhyde)TICK
eventtint
getter/setter, and Color copy
methodstate.DEFAULT
(thanks @johnhyde)TMXUtils
namespacePublished by obiot over 1 year ago
Published by obiot over 1 year ago
Base
plugin class is now deprecated and replaced by BasePlugin
(Base
is just an alias now)utils
and plugin
APIPublished by obiot over 1 year ago
Published by obiot over 1 year ago
addChildAt()
methodenableChildBoundsUpdate
is enabledfloating
property to false when added to a floating containerisFloating
getter to also return true when a renderable is added to nested floating containersPublished by obiot over 1 year ago
Published by obiot over 1 year ago
Published by obiot over 1 year ago
Published by obiot over 1 year ago
Published by obiot over 1 year ago
getRootAncestor()
method that returns the root container's parent (aka World Container)toBlob()
, toDataURL()
and toImageBitmap()
methods added to CanvasTexture
toBlob()
, toDataURL()
and toImageBitmap()
methods added to all RenderersisDraggable
)sortOn
property is now a proper getter/setter for the App World instance sortOn
propertyregister
method is now optional and will use the given plugin class name by defaultCanvasTexture
classPublished by obiot over 1 year ago
Compositor
class that can be extended to create custom WebGL compositorsshader
property (experimental feature)WebGLCompositor
into a QuadCompositor
and PrimitiveCompitor
for Quad and Primitive compositionlineWidth
to a value greater than 0 will now automatically stroke the textdrawStroke()
is now deprecated in favour of the lineWidth
propertyarcTo()
drawing a "looping" line between the start and end angledevice.touch
wrongly returning true
on non-touch devicesPublished by obiot over 1 year ago
centerOn
method similarly to other base geometry objectsImageLayer
renderable objectspull
methodPoint
internally (instead of Vector2d
) which is a much more simple objectcenter[X/Y]
or calling centerOn()
.setRegion()
being called at every update for non-animated spritesPublished by obiot almost 2 years ago
collision.rayCast()
function (thanks @cpravetz)cannot recycle
exception when rendering hexagonal mapsPublished by obiot almost 2 years ago
Detector
class instantiated by each physic world instance to detect and solve collisionsfps
type in the World classPublished by obiot almost 2 years ago
getPixels()
as getImageData()
under the CanvasTexture objectPublished by obiot almost 2 years ago
Published by obiot almost 2 years ago
melonjs.mjs