コード例 #1
0
ファイル: board.py プロジェクト: gholami7/squarez
	def _initEntities(self):
		self.player = Player(self)
		self.entities = [
			self.player,
			Food.randomFood(self),
			Food.randomFood(self),
		]
コード例 #2
0
ファイル: board.py プロジェクト: gholami7/squarez
	def shuffleFood(self, food):
		self.entities.insert(0, Food.randomFood(self))
		self.entities.remove(food)