This commit is contained in:
Bram Verhulst
2024-07-04 14:42:38 +02:00
commit 67af73c6b5
60 changed files with 13407 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class NextLevel {
currentState = 0;
states: Array<Function> = [];
constructor(states: Array<Function>) {
this.states = states;
}
update() {
this.states[this.currentState]();
}
next() {
this.currentState++;
}
}