Add configurable game flow, finish punching, and audio cues
This commit is contained in:
11
miniprogram/game/core/gameSessionState.ts
Normal file
11
miniprogram/game/core/gameSessionState.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export type GameSessionStatus = 'idle' | 'running' | 'finished' | 'failed'
|
||||
|
||||
export interface GameSessionState {
|
||||
status: GameSessionStatus
|
||||
startedAt: number | null
|
||||
endedAt: number | null
|
||||
completedControlIds: string[]
|
||||
currentTargetControlId: string | null
|
||||
inRangeControlId: string | null
|
||||
score: number
|
||||
}
|
||||
Reference in New Issue
Block a user