chibis now move at current bpm

This commit is contained in:
Anthony Samms
2025-11-15 13:18:31 -05:00
parent b36dda4b12
commit 9d789eb412
3 changed files with 21 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ class Background:
def __init__(self, tex: TextureWrapper, player_num: PlayerNum, bpm: float, path: str, max_dancers: int):
self.tex_wrapper = tex
self.max_dancers = max_dancers
self.don_bg = DonBG(self.tex_wrapper, 0, 1, path)
self.don_bg = DonBG(self.tex_wrapper, 0, PlayerNum.P1, path)
self.bg_normal = BGNormal(self.tex_wrapper, 0, path)
self.bg_fever = BGFever(self.tex_wrapper, 0, path)
self.footer = None
@@ -71,7 +71,7 @@ class BGNormal(BGNormal2):
tex.draw_texture(self.name, 'curtain')
class DonBG(DonBGBase):
def __init__(self, tex: TextureWrapper, index: int, player_num: int, path: str):
def __init__(self, tex: TextureWrapper, index: int, player_num: PlayerNum, path: str):
super().__init__(tex, index, player_num, path)
self.move = Animation.create_move(10000, total_distance=-1280)
self.move.start()