diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-30 15:16:43 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-30 15:16:43 -0300 |
commit | bd36c692357c85de7058a28abc63ab9abc228a58 (patch) | |
tree | 714b3c539b8180006c4de4e76c5f834ac3f1fe5f /sast/soul.rpy-sast.py | |
parent | 0909dac3c032f23bf6335ae00f36f89e1f8408dd (diff) | |
download | renpy-bd36c692357c85de7058a28abc63ab9abc228a58.tar.gz renpy-bd36c692357c85de7058a28abc63ab9abc228a58.tar.bz2 renpy-bd36c692357c85de7058a28abc63ab9abc228a58.tar.xz renpy-bd36c692357c85de7058a28abc63ab9abc228a58.zip |
Add sast/ folder so I can test if the fault is the YML or the poor tool I'm using
Diffstat (limited to 'sast/soul.rpy-sast.py')
-rw-r--r-- | sast/soul.rpy-sast.py | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sast/soul.rpy-sast.py b/sast/soul.rpy-sast.py new file mode 100644 index 0000000..b1ea694 --- /dev/null +++ b/sast/soul.rpy-sast.py @@ -0,0 +1,52 @@ +if True: + class ManaSparkle(object): + def __init__(self, spd=25, multi=True): + self.sm = SpriteManager(update=self.update) + self.items = [ ] + if multi: + d = Transform("images/EnBallBlue.png", zoom=.05) + for i in range(0, 80): + self.add(d, renpy.random.randint(spd, spd*2)) + d = Transform("images/EnBallBlue.png", zoom=.10) + for i in range(0, 45): + self.add(d, renpy.random.randint(spd, spd*2)) + d = Transform("images/EnBallBlue.png", zoom=.25) + for i in range(0, 10): + self.add(d, renpy.random.randint(spd, spd*2)) + d = Transform("images/EnBallBlue.png", zoom=.40) + for i in range(0, 5): + self.add(d, renpy.random.randint(spd, spd*2)) + def add(self, d, speed): + s = self.sm.create(d) + startx = renpy.random.randint(0, 1200) + starty = renpy.random.randint(400, 720) + vect = renpy.random.randint(0, 4) + self.items.append((s, startx, starty, vect, speed)) + def update(self, st): + for s, startx, starty, vect, speed in self.items: + if vect % 2 == 0: + s.x = (startx + speed * st) % 1300 + else: + s.x = (startx - speed * st) % 1300 + if vect % 2 == 1: + s.y = (starty - speed * st) % 800 + else: + s.y = (starty + speed * st) % 800 + return 0 + progress = 0 + mySoul = None + renpy.invoke_in_thread(load_souldata) + while progress < 100: + if responsive: + sdelay() + else: + responsive = True + break + if persistent.steam and steam.initialized: + mySoul["name"] = steam.get_persona_name() + loop = True + renpy.call_in_new_context(_return) + loop = False + del loop + RPCUpdate("The Void", "launcher") + RPCUpdate("The Void", "launcher") |