Mozaik effekt
This commit is contained in:
@@ -9,13 +9,13 @@ gamestates = {
|
||||
}
|
||||
gamestate = "none"
|
||||
|
||||
def switch_gamestate(state):
|
||||
def switch_gamestate(game, state):
|
||||
global gamestate
|
||||
gamestate = state
|
||||
gamestates[gamestate].switch()
|
||||
gamestates[gamestate].switch(game)
|
||||
|
||||
def update(dt):
|
||||
gamestates[gamestate].update(dt)
|
||||
def update(game, dt):
|
||||
gamestates[gamestate].update(game, dt)
|
||||
|
||||
def draw(game):
|
||||
gamestates[gamestate].draw(game)
|
||||
|
||||
Reference in New Issue
Block a user