* Basic Game State Implementation

* Code Refactoring
This commit is contained in:
Indrajith K L
2021-08-02 13:48:25 +05:30
parent 2ff207a1d3
commit 7d988900e2
5 changed files with 48 additions and 18 deletions

17
game_state.wren Normal file
View File

@@ -0,0 +1,17 @@
class GameState {
construct new() {
}
switch(level) {
_currentLevel = level.new()
}
update() {
_currentLevel.update()
}
draw(dt) {
_currentLevel.draw(dt)
}
}