Subway Surfers For Linux Site

show_score(score, screen) show_coins(total_coins, screen)

# Update coins & collection for coin in coins[:]: coin.update(speed) if coin.off_screen(): coins.remove(coin) elif player.rect.colliderect(coin.rect) and player.track == coin.track: coins.remove(coin) total_coins += 1 score += 10 # extra points for coins Subway Surfers For Linux

class Player: def (self): self.x = 100 self.track = 1 # 0,1,2 self.rect = pygame.Rect(self.x, TRACK_Y[self.track], PLAYER_WIDTH, PLAYER_HEIGHT) 2 self.rect = pygame.Rect(self.x