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 +2 -2
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +22 -5
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
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
|
|
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/
|
|
189
|
+
🎮 [https://demos.angrypixel.gg/move-and-bounce](https://demos.angrypixel.gg/move-and-bounce)
|
|
190
190
|
|
|
191
191
|
## DOCS
|
|
192
192
|
|