コード例 #1
0
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()
コード例 #2
0
	def __init__(self):
		events.init(self)
		self.clock = pygame.time.Clock()
		self.session = Session()
		self.stack = GUIStack(self)
		self.hud = HUD(self)