Fix global var bug
This commit is contained in:
parent
37a70d73dc
commit
9dcb86f9f9
2
main.py
2
main.py
|
@ -123,7 +123,7 @@ def interact_with_student():
|
|||
|
||||
# Main game loop
|
||||
def play_game():
|
||||
global player_hunger, player_health, player_inventory
|
||||
global player_name, player_hunger, player_health, player_inventory
|
||||
# Introduction
|
||||
sprint("Welcome to Next Dining: The Video Game!")
|
||||
sprint("What is your name?")
|
||||
|
|
Loading…
Reference in a new issue