Exemplo n.º 1
0
 def getAllElements(self):
     Board.wall_list=positions.border()
     Board.height=positions.floorHeight()
     Board.lad_pos=positions.floorOpening()
     positions.ladderPositions()
     #place the coins
     positions.coinPosition()
     positions.wallPosition()
Exemplo n.º 2
0
	def level(self):
		for i in range(0,7):
			if self.rect.y <=board.Board.height[i] and self.rect.y>=board.Board.height[i+1]:
				self.levels=i

		if self.levels==6:
			self._scores+=50
			board.Board.status+=1
			if board.Board.status>2:
				self.gameover()
			else:
				self.lifes=3
				for coin in sprites.Coin.coin_list:
					sprites.Coin.coin_list.remove(coin)
				positions.coinPosition()

				for fireball in sprites.FireBall.fire_ball_list:
					sprites.FireBall.fire_ball_list.remove(fireball)
				self.reset()
			pass