Thanks to @frodgesh, @jamesmcgeorge, @rougepied, @clofresh, @LoserAntbear, @FerociousQuasar, and @Carghaez for their contributions!
Breaking Changes
- Property scope
Pointer.actorsUnderPointer
changed to private; Sprite.sx
replaced withSprite.x
Sprite.sy
replaced withSprite.y
Sprite.swidth
replaced withSprite.width
Sprite.sheight
replaced withSprite.height
Added
- Allow timers to limit repeats to a finite number of times (#957)
- Convenience method on Scene to determine whether it is the current scene. Scene.isCurrentScene() (#982)
- New
PointerEvent.stopPropagation()
method added. Works the same way as (https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation
)
(#912) - New
Actor.getAncestors()
method, which retreives full array of current Actor ancestors - Static
Actor.defaults
prop, which implementsIActorDefaults
. - Native sound events now exposed
volumechange
- on playing sound volume change;pause
- on playback pause;stop
- on playback stop;emptied
- on data cleanup(f.e. when setting new data);resume
- on playback resume;playbackstart
- on playback start;playbackend
- on playback end;
- Added
Sound.instances
getter, which returns active tracks. Playing or paused; - Added
Sound.getTrackId(track: [[AudioInstance]])
method. Which returns id of track provided,
if it is in list of active tracks.
Changed
- Refactored Easing functions to be reversable (#944)
- Now at creation every
Actor.anchor
prop is set to defaultActor.defaults.anchor
. - Scene.remove(Actor) now starts the Actor.Kill event cycle.(#981)
Deprecated
CapturePointer.update()
method now doesn't propagate event to actor, just verifies pointer events for actor.- Added
Sound.volume
&Sound.loop
properties as a replacement forSound.setVolume()
andSound.setLoop()
. The methodssetVolume
andsetLoop
have been marked obsolete.
Fixed
- Added missing variable assignments to TileMapImpl constructor (#957)
- Correct setting audio volume level from
value
tosetValueAtTime
to comply with deprecation warning in Chrome 59 (#953) - Force HiDPI scaling to always be at least 1 to prevent visual artifacts in some browsers
- Recalculate physics geometry when width/height change on Actor (#948)
- Fix camera move chaining (#944)
- Fix
pickSet(allowDuplicates: true)
now returns the proper length array with correct elements (#977) Index
export order to preventalmond.js
from creation of corrupted modules loading order.Sound.pause()
now saves correct timings.- Fix
ex.Vector.isValid
edgecase atInfinity
(#1006)