World's fastest HTML5 2D game engine 🛸
Updated spine core to v4
Minor fixes and improvements
Added simple 'Camera' class
Added System#onPaused
and System#onResumed
events
Added Component#enabled
property
Added GameObject#xy
property
Added Vector#random
method
Added Rectangle#random
method
Added GameObject#removeAllChildren
method
Added ability to use OffscreenCanvas to measure the text
Fixed incorrect pointerUp
message
Changed AssetManager to post complete
even if the queue is empty
Changed sounds to be auto paused on engine pause
Refactored Emitter
Input
to Black.input
MasterAudio
to Black.audio
Time
to Black.time
AssetManager.default
to Black.assets
Black
to `Black.engine__initialize
method for initialization so constructor can be overridenDevice
to Black.device
Device#isLandscape
to Black.viewport.isLandscape
, same for isPortrait
.TextField#color
to TextField#textColor
stage.orientation
to viewport.orientationand
StageOrientationto
Orientation`useHiDPR
property to control render quality on high DPI screensgetTextures
returning null for backed vectorsGraphics#cacheAsBitmapDynamic
property allowing to disable auto refresh of bitmap cacheskewX
and skewY
properties in the DisplayObject
GameObject#relativeTo
method to calculates GameObject's position relative to another GameObjectGraphics#quadraticCurveTo
methodGraphics#setLineDash
methodisNonZero
for Graphics#fill
method to control winding orderGraphicsData
class. Now you can have many graphics objects inside one Graphics GameObject.pixel by pixel
method. Line height is a bit smaller from now. But overall font metrics looks good and exactly the same on different browsers.visible
propertyStage#onUpdate
callsTextField#highQuality
property to control how TextField will be rendered