17 lines
217 B
Plaintext
17 lines
217 B
Plaintext
class GameState {
|
|
construct new() {
|
|
|
|
}
|
|
|
|
switch(level) {
|
|
_currentLevel = level.new()
|
|
}
|
|
|
|
update() {
|
|
_currentLevel.update()
|
|
}
|
|
|
|
draw(dt) {
|
|
_currentLevel.draw(dt)
|
|
}
|
|
} |