angry-pixel 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -106,7 +106,7 @@ import { GameSystem, Transform } from "angry-pixel";
106
106
 
107
107
  class MoveAndBounceSystem extends GameSystem {
108
108
  onUpdate(): void {
109
- this.entityManager.search(MoveAndBounce).forEach(({ component, entity }) => {
109
+ this.entityManager.search(MoveAndBounce, (component, entity) => {
110
110
  const transform = this.entityManager.getComponent(entity, Transform);
111
111
  const { boundaries, direction, speed } = component;
112
112
 
@@ -186,7 +186,7 @@ game.run();
186
186
 
187
187
  ### Check this example live
188
188
 
189
- 🎮 [https://angrypixel.gg/angry-pixel-logo-bounce](https://angrypixel.gg/angry-pixel-logo-bounce)
189
+ 🎮 [https://demos.angrypixel.gg/move-and-bounce](https://demos.angrypixel.gg/move-and-bounce)
190
190
 
191
191
  ## DOCS
192
192