melonJS/melonJS: Release 15.4.0
Added
- Application: new
pauseOnBlur
, resumeOnFocus
and stopOnBlur
properties to configure a game behavior on blur and focus events
Changed
- Core: visibility and focus/blur events are now managed internally through new global
BLUR
and FOCUS
events
- Device:
pauseOnBlur
, resumeOnFocus
and stopOnBlur
properties are now deprecated and replaced by their Application counterpart
- Geometry: optimize Rect
contains
method by using typeof instead of instanceof to identify given parameter type
Fixed
- Renderable : fix a potential issue with a Tile Layer not being properly redrawn when adding or clearing individual tiles
- TMX : properly set the
preRender
flag for Tiled layer at runtime (when added to the root container)
- TMX : fix pre-rendering for non-orthogonal maps
- UI: fix dirty flag for base UI elements not being set due to wrong property name (thanks @yuta0315)