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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/angry-pixel?style=for-the-badge)](https://www.npmjs.com/package/angry-pixel)
4
4
  [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](https://github.com/angry-pixel-studio/angry-pixel-engine/blob/master/LICENSE)
5
- [![Docs](https://img.shields.io/badge/docs-angrypixel-blue?style=for-the-badge&color=blue)](https://angrypixel.gg/engine/api-docs)
5
+ [![Docs](https://img.shields.io/badge/docs-angrypixel-blue?style=for-the-badge&color=blue)](https://docs.angrypixel.gg)
6
6
  [![Actions](https://img.shields.io/github/actions/workflow/status/angry-pixel-studio/angry-pixel-engine/main.yml?branch=main&style=for-the-badge)](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 load the systems of the scene
139
- loadSystems(): void {
140
- this.systems.push(MoveAndBounceSystem);
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
- loadSystems(): void {
158
- this.systems.push(MoveAndBounceSystem);
157
+ registerSystems(): void {
158
+ this.addSystem(MoveAndBounceSystem);
159
159
  }
160
160
 
161
161
  // within this method we create the entities
162
- setup(): void {
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
- ## API DOCS
191
+ ## DOCS
192
192
 
193
- 🔎 [https://angrypixel.gg/engine/api-docs](https://angrypixel.gg/engine/api-docs)
193
+ 🔎 [Documentation](https://docs.angrypixel.gg)\
194
+ ⚙️ [Api Docs](https://api-docs.angrypixel.gg)