class Game(object): def __init__(self): events.init(self) self.clock = pygame.time.Clock() self.session = Session() self.stack = GUIStack(self) self.hud = HUD(self) def tick(self, input_events): self.stack(input_events) self.turn_queue.apply() self.event_queue.apply() self.stack.tick()
def __init__(self): events.init(self) self.clock = pygame.time.Clock() self.session = Session() self.stack = GUIStack(self) self.hud = HUD(self)