* Basic Game State Implementation
* Code Refactoring
This commit is contained in:
17
game_state.wren
Normal file
17
game_state.wren
Normal file
@@ -0,0 +1,17 @@
|
||||
class GameState {
|
||||
construct new() {
|
||||
|
||||
}
|
||||
|
||||
switch(level) {
|
||||
_currentLevel = level.new()
|
||||
}
|
||||
|
||||
update() {
|
||||
_currentLevel.update()
|
||||
}
|
||||
|
||||
draw(dt) {
|
||||
_currentLevel.draw(dt)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user