Skip to content

Commit 5186154

Browse files
authored
Merge pull request #7 from Stuhl/changes-made-from-integrating-with-planet-nine
Changing naming and removing unecessary files
2 parents 79be19d + 9dce471 commit 5186154

13 files changed

+42
-57
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ const PositionComponent: Component = {
5353
```
5454

5555
```TypeScript
56-
const MassComponent: Component = {
57-
name: "mass",
56+
const physicsComponent: Component = {
57+
name : "physics",
5858
state: {
59-
mass: 1.5,
60-
velocityX: 0,
61-
velocityY: 0
59+
accelerationX : 0.1,
60+
accelerationY : 0.2,
61+
velocityX : 0,
62+
velocityY : 0
6263
}
6364
}
6465
```
@@ -122,7 +123,7 @@ ECS.addProcessor(GravityProcessor)
122123
So after we registered our components and processors, we can now compose our entity:
123124

124125
```TypeScript
125-
const Player: Entity = ECS.createEntity("Player", ["position", "mass"], ["gravity_processor"])
126+
const Player: Entity = ECS.createEntity("Player", ["position", "physics"], ["gravity_processor"])
126127
```
127128

128129
After that you register it in the system:
@@ -148,4 +149,4 @@ In a ECS, components and processors are your bread and butter. You write those t
148149
## Roadmap
149150
- v2.1.0
150151
- Implement .freeze() and .unfreeze() to make one-time effects possible
151-
- Better error handling
152+
- Better error handling

index.1f1b23d4.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

index.1f1b23d4.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.460f891d.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

index.460f891d.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.b7f0e208.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

index.b7f0e208.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.bca4918e.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

index.bca4918e.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)