add 1080p and more support

This commit is contained in:
Anthony Samms
2025-11-20 02:07:46 -05:00
parent 802d9c5b37
commit 1fae2ebd18
31 changed files with 631 additions and 602 deletions

View File

@@ -15,7 +15,7 @@ class Renda:
class BaseRenda:
def __init__(self, tex: TextureWrapper, index: int):
self.name = 'renda_' + str(index)
self.hori_move = Animation.create_move(1500, total_distance=1280)
self.hori_move = Animation.create_move(1500, total_distance=tex.screen_width)
self.hori_move.start()
def update(self, current_time_ms: float):
@@ -24,13 +24,13 @@ class BaseRenda:
class Renda0(BaseRenda):
def __init__(self, tex: TextureWrapper, index: int):
super().__init__(tex, index)
self.vert_move = Animation.create_move(1500, total_distance=800)
self.vert_move = Animation.create_move(1500, total_distance=tex.screen_height + (80 * tex.screen_scale))
self.vert_move.start()
tex_list = tex.textures['renda'][self.name].texture
num_of_rendas = len(tex_list) if isinstance(tex_list, list) else 0
self.frame = random.randint(0, num_of_rendas - 1)
self.x = random.randint(0, 500)
self.y = random.randint(0, 20)
self.x = random.randint(0, int(500 * tex.screen_scale))
self.y = random.randint(0, int(20 * tex.screen_scale))
def update(self, current_time_ms: float):
super().update(current_time_ms)
@@ -43,8 +43,8 @@ class Renda1(BaseRenda):
def __init__(self, tex: TextureWrapper, index: int):
super().__init__(tex, index)
self.frame = random.randint(0, 5)
self.y = random.randint(0, 200)
self.rotate = Animation.create_move(800, total_distance=360)
self.y = random.randint(0, int(200 * tex.screen_scale))
self.rotate = Animation.create_move(800, total_distance=tex.screen_height//2)
self.rotate.start()
self.origin = ray.Vector2(64, 64)
@@ -60,10 +60,10 @@ class Renda1(BaseRenda):
class Renda2(BaseRenda):
def __init__(self, tex: TextureWrapper, index: int):
super().__init__(tex, index)
self.vert_move = Animation.create_move(1500, total_distance=800)
self.vert_move = Animation.create_move(1500, total_distance=tex.screen_height + (80 * tex.screen_scale))
self.vert_move.start()
self.x = random.randint(0, 500)
self.y = random.randint(0, 20)
self.x = random.randint(0, int(500 * tex.screen_scale))
self.y = random.randint(0, int(20 * tex.screen_scale))
def update(self, current_time_ms: float):
super().update(current_time_ms)