summaryrefslogtreecommitdiff
path: root/src/engine/Game.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-02 05:30:17 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-02 05:30:17 -0700
commitcbb88091bdf69cc8752ef1cc3662dc0b99e3ead6 (patch)
treeb10e56d8f5281a9e91db8e2a923f91b216129459 /src/engine/Game.ts
parent4b9349b3f8bee21eb086cfd6e7668532a50e6048 (diff)
downloadthe-abstraction-engine-cbb88091bdf69cc8752ef1cc3662dc0b99e3ead6.tar.gz
the-abstraction-engine-cbb88091bdf69cc8752ef1cc3662dc0b99e3ead6.zip
key lock / player curry collisions
Diffstat (limited to 'src/engine/Game.ts')
-rw-r--r--src/engine/Game.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/Game.ts b/src/engine/Game.ts
index 2df9f17..9fe9e87 100644
--- a/src/engine/Game.ts
+++ b/src/engine/Game.ts
@@ -25,6 +25,10 @@ export class Game {
this.running = true;
}
+ public stop() {
+ this.running = false;
+ }
+
public addEntity(entity: Entity) {
this.entities.set(entity.id, entity);
}