Skip to content

Commit 2bf2681

Browse files
committed
fix: Correct GameCoreService annotation for World in Entity class
feat: Add event system configuration to game configuration
1 parent d917e64 commit 2bf2681

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/core/ecs/Entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class Entity {
2424
@GameCoreService(EventSystem)
2525
private eventSystem!: EventSystem;
2626

27-
@GameCoreService(World)
27+
@GameCoreService("World")
2828
private world!: World;
2929

3030
constructor(private readonly id: string = randomUUID()) {

src/game.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ const gameConfiguration: GameConfiguration = {
99
state: "StartScreen",
1010
bundle: "StartScreen"
1111
},
12+
eventSystem: {
13+
history: {
14+
enabled: true,
15+
maxSize: 100
16+
}
17+
},
18+
inputDevice: {
19+
gamepad: {
20+
axisThreshold: 0.5,
21+
deadZone: 0.1
22+
},
23+
buffer: {
24+
bufferFrames: 5,
25+
bufferTime: 200
26+
}
27+
},
1228
assetLoader: {
1329
manifest: assetManifest,
1430
useCache: true

0 commit comments

Comments
 (0)