Exemple #1
0
    def action(self):
        State.level = 0

        realGuy = Funcs.ship_assign(State.picked_ship,
                                    State.start_lives,
                                    player=True)

        Scripts.main_loop(realGuy)
Exemple #2
0
    def action(self):
        global realGuy
        # global t
        State.t = False

        for object in State.player_group:

            object.speed = [0, 0]
            object.kill()
        for object in State.movable:
            object.kill()
        for object in State.interface:
            object.kill()

        realGuy = Funcs.ship_assign(State.picked_ship,
                                    State.start_lives,
                                    player=True)

        State.save['level'] = 0

        Funcs.spawn_wave(realGuy)
        Scripts.main_loop(realGuy)