I'm planning to add a health system in a python game. I want it to be in a game_state['']. How would I go about making the health system relative to the damage you've taken?
Like this:
print "Your health is", game_state['health']
print "Zombie attacks"
global health = game_state['health'] - 10
print "Your health is", game_state['health'] - 10
Would something like that work? Can I use global?