mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
add animal kaiser collab
This commit is contained in:
@@ -167,7 +167,7 @@ class BaseDancerGroup():
|
||||
total_width = 1280
|
||||
num_dancers = len(self.active_dancers)
|
||||
|
||||
first_dancer = self.active_dancers[3]
|
||||
first_dancer = next((dancer for dancer in self.active_dancers if dancer is not None), None)
|
||||
if first_dancer is None:
|
||||
return
|
||||
dancer_width = tex.textures[self.name][str(first_dancer.index) + '_loop'].width
|
||||
|
||||
@@ -10,9 +10,9 @@ class Fever:
|
||||
return selected_obj(tex, index, bpm)
|
||||
|
||||
class BaseFever:
|
||||
def __init__(self, tex: TextureWrapper, index: int, bpm: float):
|
||||
def __init__(self, tex: TextureWrapper, index: int, bpm: float, path: str = 'background'):
|
||||
self.name = 'fever_' + str(index)
|
||||
tex.load_zip('background/regular', f'fever/{self.name}')
|
||||
tex.load_zip(path, f'fever/{self.name}')
|
||||
self.bounce_up = Animation.create_move((60000 / bpm) / 2, total_distance=50, ease_out='quadratic')
|
||||
self.bounce_down = Animation.create_move((60000 / bpm) / 2, total_distance=50, ease_in='quadratic', delay=self.bounce_up.duration)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
class Footer:
|
||||
def __init__(self, tex: TextureWrapper, index: int):
|
||||
def __init__(self, tex: TextureWrapper, index: int, path: str = 'background'):
|
||||
self.index = index
|
||||
if self.index == -1:
|
||||
return
|
||||
tex.load_zip('background/regular', 'footer')
|
||||
tex.load_zip(path, 'footer')
|
||||
def draw(self, tex: TextureWrapper):
|
||||
if self.index == -1:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user