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.
chore: Refactor Entity (#1820) master
This PR simplifies `Entity` to make only one way to add/remove components. ## Changes - Removes the `components` object on Entity as a way of adding/removing components - Extracts initializing entities with a template entity into a separate method, supports templates with children - Support cloning entities with children - Rename's `add()` to `addChild()`, `remove()` to `removeChild()`, and `removeAll()` to `removeAllChildren()`
Author Erik Onarheim Committer GitHub Date (Mar 30, 2021, 5:22 AM UTC) Commit b684ff8c b684ff8c799b58e7259ef8997546bb5fedc0946e Parent 3dbe3ec7 3dbe3ec753a3376c04d29f5452d67b6d0a3a89dd