예제 #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)