a fresh, modern & lightweight HTML5 game engine
BasePlugin
class now holds a reference to the app or game instance that registered the pluginplugin.get()
method to retrieve a plugin instance by its Class Type or registered namegetPath()
method that return the path element of a full file pathsetParser()
method not being exported (and therefore preventing from using and setting custom parser)hasActiveEvents
returning true if there are any pending events in the queuehasRegisteredEvents
returning true if there are registered pointer event listenersWORLD_STEP
event emmitted after the builtin physic world has been updated (if enabled)setTransform
and transform()
methods now also accept individual components to match the CanvasRenderingContext2D APIplugin.Base
(deprecated since [15.1.6] and replaced by BasePlugin
)physic
flag allowing to disable the builtin physic implementationinvalidate()
method to force reuploading the corresponding WebGL Texturegame
application instancesetFloat
method allowing to specify RGBA components in a normalized float formatload
method in the documentation and typingsdepth
getter/setter that will returns the depth of a renderable on the z axisVIDEO_INIT
eventbeginPath
, lineTo
, moveTo
, rect
, roundRect
, closePath
, fill
and stroke
)document
(now using globalThis.document
)