mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
minor fixes
This commit is contained in:
@@ -75,10 +75,6 @@ class DonBG(DonBGBase):
|
||||
self.move = Animation.create_move(10000, total_distance=-1280)
|
||||
self.move.start()
|
||||
self.move.loop = True
|
||||
def draw(self, tex: TextureWrapper):
|
||||
self._draw_textures(tex, 1.0)
|
||||
if self.is_clear:
|
||||
self._draw_textures(tex, self.clear_fade.attribute)
|
||||
def _draw_textures(self, tex: TextureWrapper, fade: float):
|
||||
def _draw_textures(self, tex: TextureWrapper, fade: float, y: float):
|
||||
for i in range(2):
|
||||
tex.draw_texture(self.name, 'background', frame=self.is_clear, fade=fade, x=(i*1280)+self.move.attribute)
|
||||
|
||||
@@ -37,7 +37,5 @@ class DancerGroup(BaseDancerGroup):
|
||||
class BGFever(BGFeverBase):
|
||||
def start(self):
|
||||
self.transitioned = True
|
||||
def update(self, current_time_ms: float):
|
||||
pass
|
||||
def draw(self, tex: TextureWrapper):
|
||||
tex.draw_texture(self.name, 'background')
|
||||
|
||||
@@ -36,8 +36,6 @@ class DancerGroup(BaseDancerGroup):
|
||||
class BGFever(BGFeverBase):
|
||||
def start(self):
|
||||
self.transitioned = True
|
||||
def update(self, current_time_ms: float):
|
||||
pass
|
||||
def draw(self, tex: TextureWrapper):
|
||||
tex.draw_texture(self.name, 'background')
|
||||
tex.draw_texture(self.name, 'overlay')
|
||||
|
||||
@@ -19,8 +19,8 @@ class Background:
|
||||
self.chibi = ChibiController(self.tex_wrapper, 2, bpm, path)
|
||||
|
||||
class DonBG(DonBG6):
|
||||
def __init__(self, tex: TextureWrapper, player_num: int, bpm: float, path: str):
|
||||
super().__init__(tex, player_num, bpm, path)
|
||||
def __init__(self, tex: TextureWrapper, index: int, player_num: int, path: str):
|
||||
super().__init__(tex, index, player_num, path)
|
||||
self.overlay_move_2 = Animation.create_move(8000, total_distance=-760)
|
||||
self.overlay_move_2.loop = True
|
||||
self.overlay_move_2.start()
|
||||
|
||||
Reference in New Issue
Block a user