def __init__(self, position, combo):
self.position = pygame.Vector2(position)
- self.velocity = pygame.Vector2(0, -1)
+ self.velocity = pygame.Vector2(0, -100)
self.time = self.LIFE_TIME
self.combo = combo
- self.text_surface = font.render(self.combo, True, BLACK)
+ self.text_surface = font_large.render(self.combo, True, BLACK)
def update(self, delta):
self.position += self.velocity * delta / 1000
self.score += 1
if self.time_since_last_hit < self.COMBO_TIME:
self.current_combo += 1
- self.combo_counters.append(ComboCounter(hit.position, str(self.current_combo)))
+ if self.current_combo > 1:
+ self.combo_counters.append(ComboCounter(hit.position, f"x{self.current_combo+1}"))
self.time_since_last_hit = 0
font = pygame.font.SysFont("Arial", 50)
+font_large = pygame.font.SysFont("Arial", 80)
\ No newline at end of file