lock tactics based on local storage

This commit is contained in:
Jon Eugster
2023-07-29 00:05:19 +02:00
parent ffc666f5d9
commit 1205d83246
5 changed files with 110 additions and 35 deletions
+9 -1
View File
@@ -24,11 +24,19 @@ interface WorldProgressState {
export interface GameProgressState {
inventory: string[],
// Difficulty: the default is 2.
difficulty: number,
data: WorldProgressState
}
/**
* Currently we have three difficulties:
*
* | lock tactics | lock levels |
* --|--------------|-------------|
* 0 | no | no |
* 1 | yes | no |
* 2 | yes | yes |
*/
const DEFAULT_DIFFICULTY = 2
/** The progress made on all lean4-games */