halfway through imas collab

This commit is contained in:
Anthony Samms
2025-10-26 11:14:16 -04:00
parent 63a0a11d64
commit ef8e1e4b03
10 changed files with 70 additions and 25 deletions

View File

@@ -19,6 +19,12 @@ class BGFeverBase:
self.name = 'bg_fever_' + str(index)
tex.load_zip(path, f'bg_fever/{self.name}')
self.transitioned = False
def start(self):
pass
def update(self, current_time_ms: float):
pass
def draw(self, tex: TextureWrapper):
pass
class BGFever1(BGFeverBase):
class Tile:

View File

@@ -18,6 +18,8 @@ class BGNormalBase:
tex.load_zip(path, f'bg_normal/{self.name}')
def update(self, current_time_ms: float):
pass
def draw(self, tex: TextureWrapper):
tex.draw_texture(self.name, 'background')
class BGNormal1(BGNormalBase):
def __init__(self, tex: TextureWrapper, index: int, path: str):

View File

@@ -22,6 +22,10 @@ class DonBGBase:
if self.is_clear:
self._draw_textures(tex, self.clear_fade.attribute, y)
def _draw_textures(self, tex: TextureWrapper, fade: float, y: float):
for i in range(5):
tex.draw_texture(self.name, 'background', frame=self.is_clear, fade=fade, x=(i*328)+self.move.attribute, y=y)
def update(self, current_time_ms: float, is_clear: bool):
if not self.is_clear and is_clear:
self.clear_fade.start()