diff options
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") |