chore: Update dependency excalibur to v0.31.0 #256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.30.3->0.31.0Release Notes
excaliburjs/Excalibur (excalibur)
v0.31.0Compare Source
Breaking Changes
Deprecated
Added
ex.Camera.setStrategies()andex.Camera.strategiesfor additional control of strategy orderex.Sound({...})option back constructor to set all the same props available on soundex.SoundManagertype for managing groups of audio/sound effects/music volume in an easier wayex.Animation.datato store arbitrary meta data for an animation. Data can be directly added in the constructor as an option, by using the optionaldataargument infromSpriteSheet(...)and as an option infromSpriteSheetCoordinates({...})ex.Engine({global: ...})where you can provide a keyboard global to override if iframe detection fails for anyway.onDeactivate(), returning data will be passed to the nextSceneActivationContextin thepreviousSceneDataproperty!transitionstartandtransitionendevents toex.Scenesnavigation*events toex.Engineex.Vectorto specify offset and margin inSpriteSheet.fromImageSource({..})maxVelattribute toMotionComponent, which clamps velocity on separated X and Y axesClock.clearSchedule(id)and haveClock.schedulereturn an ID so you can clear a scheduled callback before it firesFixed
ParticleEmitterParticledid not receive z index value from emitter when in World spaceanim.reset()inside of an animation event handler likeanim.once('end', () => anim.reset())would not work correctlyGpuParticleEmitterdid not rotate with their parentsParticleEmitterdid not respectParticleTransform.Localex.ColliderComponent/ex.BodyComponentthat prevented collider tracking on entities that haveex.TransformComponent/ex.ColliderComponent, this influenced users doing Entity level ECS with pointer events.ex.Sound.play(0)would not set the volume to 0, instead the previous volume would play.onTransitionon the initial scene transitionex.TriggerOptionstype to all optional parametersex.GamepadButtonEventindexto disabiguate betweenex.Buttons.UnknownMap<Entity>Updates
Changed
ex.Camera.addStrategy()to accept multiple strategiesfromSpriteSheet(...),fromSpriteSheetCoordinates({...})andclone()ofex.Animationto return the subclass if called from thereConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.