Dec-09-2019, 04:57 PM
Location and money aren't global concepts, though. If there's two players, they could both be in different places and have different amounts of money. So I'd suggest a class to hold data and actions that are unique to players. Something like...
class Player: def __init__(self, start_location, start_money=0): self.location = start_location self.money = start_moneyThen in the Control.__init__ you'd create your players, and either a) pass that list to the states when you call it's .startup() method so they know about the players, or b) pass the list to both the get_event() and the update() methods.