summaryrefslogtreecommitdiff
path: root/engine/Game.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-07-20 22:22:26 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-07-20 22:22:26 -0700
commit619a039942c3c02552f72275634a9f6c0788c570 (patch)
tree43151191c920d0d705db71306f58409e97b60d03 /engine/Game.ts
parent72c6c7de12e9833f52bf2d0718d70f044f8ab57e (diff)
downloadjumpstorm-619a039942c3c02552f72275634a9f6c0788c570.tar.gz
jumpstorm-619a039942c3c02552f72275634a9f6c0788c570.zip
very basic websocket setup
Diffstat (limited to 'engine/Game.ts')
-rw-r--r--engine/Game.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/Game.ts b/engine/Game.ts
index c2a2c4f..3682fbd 100644
--- a/engine/Game.ts
+++ b/engine/Game.ts
@@ -55,6 +55,7 @@ export class Game {
const dt = timeStamp - this.lastTimeStamp;
this.lastTimeStamp = timeStamp;
+ // rebuild the Component -> { Entity } map
this.componentEntities.clear();
this.entities.forEach((entity) =>
entity.getComponents().forEach((component) => {