angry-pixel 2.1.4 → 2.1.5
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 +10 -9
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +109 -42
- 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 +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/angry-pixel)
|
|
4
4
|
[](https://github.com/angry-pixel-studio/angry-pixel-engine/blob/master/LICENSE)
|
|
5
|
-
[](https://angrypixel.gg
|
|
5
|
+
[](https://docs.angrypixel.gg)
|
|
6
6
|
[](https://github.com/angry-pixel-studio/angry-pixel-engine/actions?query=workflow%3AContinuous)
|
|
7
7
|
|
|
8
8
|
## What is Angry Pixel Engine?
|
|
@@ -135,9 +135,9 @@ class MainScene extends Scene {
|
|
|
135
135
|
this.assetManager.loadImage("logo.png");
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// within this method we
|
|
139
|
-
|
|
140
|
-
this.
|
|
138
|
+
// within this method we register the systems of the scene
|
|
139
|
+
registerSystems(): void {
|
|
140
|
+
this.addSystem(MoveAndBounceSystem);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
```
|
|
@@ -154,12 +154,12 @@ class MainScene extends Scene {
|
|
|
154
154
|
this.assetManager.loadImage("logo.png");
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
this.
|
|
157
|
+
registerSystems(): void {
|
|
158
|
+
this.addSystem(MoveAndBounceSystem);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
// within this method we create the entities
|
|
162
|
-
|
|
162
|
+
createEntities(): void {
|
|
163
163
|
// camera
|
|
164
164
|
this.entityManager.createEntity([new Transform(), new Camera({ layers: ["Logo"] })]);
|
|
165
165
|
|
|
@@ -188,6 +188,7 @@ game.run();
|
|
|
188
188
|
|
|
189
189
|
🎮 [https://angrypixel.gg/angry-pixel-logo-bounce](https://angrypixel.gg/angry-pixel-logo-bounce)
|
|
190
190
|
|
|
191
|
-
##
|
|
191
|
+
## DOCS
|
|
192
192
|
|
|
193
|
-
🔎 [
|
|
193
|
+
🔎 [Documentation](https://docs.angrypixel.gg)\
|
|
194
|
+
⚙️ [Api Docs](https://api-docs.angrypixel.gg)
|