dancers can be removed

This commit is contained in:
Yonokid
2025-12-31 14:45:08 -05:00
parent 102d82001f
commit 7ef74a601b
2 changed files with 13 additions and 0 deletions

View File

@@ -162,6 +162,12 @@ class BaseDancerGroup():
dancer.start()
self.active_count += 1
def remove_dancer(self):
if self.active_count > 1:
self.active_count -= 1
position = self.spawn_positions[self.active_count]
self.active_dancers[position] = None
def update(self, current_time_ms: float, bpm: float):
for dancer in self.dancers:
dancer.update(current_time_ms, bpm)