mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
add buttoburst collab
This commit is contained in:
@@ -14,7 +14,8 @@ from libs.texture import TextureWrapper
|
||||
class Background:
|
||||
COLLABS = {
|
||||
"A3": libs.bg_collabs.a3.Background,
|
||||
"ANIMAL": libs.bg_collabs.animal.Background
|
||||
"ANIMAL": libs.bg_collabs.animal.Background,
|
||||
"BUTTOBURST": libs.bg_collabs.buttoburst.Background
|
||||
}
|
||||
def __init__(self, player_num: int, bpm: float, scene_preset: str = ''):
|
||||
self.tex_wrapper = TextureWrapper()
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
from . import a3
|
||||
from . import animal
|
||||
from . import buttoburst
|
||||
|
||||
@@ -26,7 +26,9 @@ class Renda0(BaseRenda):
|
||||
super().__init__(tex, index)
|
||||
self.vert_move = Animation.create_move(1500, total_distance=800)
|
||||
self.vert_move.start()
|
||||
self.frame = random.randint(0, 5)
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user