Excalibur v0.17.0
Thanks to @frodgesh, @jamesmcgeorge, @rougepied, @clofresh, @LoserAntbear, @FerociousQuasar, and @Carghaez for their contributions!
Breaking Changes
- Property scope
Pointer.actorsUnderPointerchanged to private; Sprite.sxreplaced withSprite.xSprite.syreplaced withSprite.ySprite.swidthreplaced withSprite.widthSprite.sheightreplaced 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.defaultsprop, 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.instancesgetter, 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.anchorprop 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.loopproperties as a replacement forSound.setVolume()andSound.setLoop(). The methodssetVolumeandsetLoophave been marked obsolete.
Fixed
- Added missing variable assignments to TileMapImpl constructor (#957)
- Correct setting audio volume level from
valuetosetValueAtTimeto 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) Indexexport order to preventalmond.jsfrom creation of corrupted modules loading order.Sound.pause()now saves correct timings.- Fix
ex.Vector.isValidedgecase atInfinity(#1006)
