Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
Feat: [#3157] return target on trigger (#3176) master
Closes #3157 ## Changes: - The action callback of Trigger now returns the entity that triggered it. - General cleanup of Trigger class - `target` is now 100% separate from `filter`, because that's what the functionality described in the documentation implied (to me). - Converted all the different "default value fallbacks" to a single setup. - Trigger used `Entity` and `Actor` interchangeably. Rewrote it to be 100% Entity (Although Entity doesn't have any collision mechanics build in, so an argument could be made to go for 100% Actor)
Author Yorick van Klinken Committer GitHub Date (Aug 29, 2024, 12:55 PM UTC) Commit 29e8317e 29e8317e17cccd9b39d3dbd02a7f3239c1c87ba2 Parent 46ba314e 46ba314ebb751214dffb63ed1465adededfd8ec7