Exemple #1
0
    def start_stage(self, game, stage):
        self.game = game
        if stage < 6:
            text = ('STAGE %d' % stage).encode()
        elif stage == 6:
            text = b'FINAL STAGE'
        elif stage == 7:
            text = b'EXTRA STAGE'

        self.stage_name = NativeText((192, 200),
                                     game.std.name,
                                     shadow=True,
                                     align='center')
        self.stage_name.set_timeout(240,
                                    effect='fadeout',
                                    duration=60,
                                    start=120)

        self.set_song_name(game.std.bgms[0][0])

        self.level_start = [
            Text((16 + 384 / 2, 200),
                 self.ascii_anm,
                 text=text,
                 align='center')
        ]  #TODO: find the exact location.
        self.level_start[0].set_timeout(240,
                                        effect='fadeout',
                                        duration=60,
                                        start=120)
        self.level_start[0].set_color('yellow')
Exemple #2
0
 def set_song_name(self, name):
     #TODO: use the correct animation.
     self.song_name = NativeText((384, 432),
                                 '♪ ' + name,
                                 shadow=True,
                                 align='right')
     self.song_name.set_timeout(240,
                                effect='fadeout',
                                duration=60,
                                start=120)