Пример #1
0
    def __init__(self, stages, position=(0, 0), width=400):
        self.stages = stages
        self.position = position
        self.width = width
        self.cursor = 0

        self.option_background = R.get_image("menu_option")
        self.lock_image = R.get_image("lock")

        self._init_cover()
Пример #2
0
    def __init__(self, environment):
        super().__init__(environment)
        self.pattern_gen = Stage3.PatternGen(environment)

        self.background = R.get_image("stage3_bg")
        self.music = "stage3"
        self.id = 3
Пример #3
0
    def __init__(self, environment):
        super().__init__(environment)
        self.pattern_gen = Stage5.PatternGen(environment)

        self.background = R.get_image("stage5_bg")
        self.music = "stage5"
        self.id = 5
        config.G = 999999
Пример #4
0
    def __init__(self, environment, position):
        super().__init__(environment, position)
        self.image = pygame.transform.scale(R.get_image("platform1"),
                                            self.size.int())

        self.direction = 1
        self.progress = 0.0
        self.speed = 100
Пример #5
0
    def __init__(self, size, position):
        self.size = size
        self.position = position
        self.is_new_record = False
        self.surface = pygame.Surface(self.size)

        self.background = pygame.transform.scale(R.get_image("black_board"),
                                                 self.size)

        self.reset()
Пример #6
0
    def __init__(self, scene, position=(0, 0)):
        self.scene = scene
        self.size = (600, 900)
        self.position = position
        self.is_hidden = True
        self.surface = pygame.Surface(self.size)
        self.ranking_list = RankingList((550, 600), (25, 150))
        self.option_selector = OptionSelector((self.size[0], 50), (0, 750))
        self.db = Database()

        self.background = R.get_image("ranking_bg")

        self.reset()
Пример #7
0
 def __init__(self, environment, position):
     super().__init__(environment, position)
     self.image = pygame.transform.scale(R.get_image("platform2"),
                                         self.size.int()).convert_alpha()
Пример #8
0
 def setup(self):
     self.background = R.get_image("menu_bg")
Пример #9
0
 def __init__(self, environment, position):
     super().__init__(environment, position)
     self.image = pygame.transform.scale(R.get_image("platform1"),
                                         self.size.int()).convert_alpha()
     self.image.fill((255, 255, 255, 120), None, pygame.BLEND_RGBA_MULT)
Пример #10
0
 def __init__(self):
     self.title = R.get_image("title")
     self.bliping_progress = 0.0
Пример #11
0
 def __init__(self, environment, position):
     super().__init__(environment, position, 'Gravity Reducer')
     self.timer = Timer()
     self.image = pygame.transform.scale(R.get_image("gravity_reducer"),
                                         self.size.int())
Пример #12
0
 def setup(self):
     self.background = Background(R.get_image("home_bg"), self.get_bound())
     self.information_ui = Information()
Пример #13
0
 def __init__(self, environment, position):
     super().__init__(environment, position, 'Sprint shoes')
     self.image = pygame.transform.scale(R.get_image("spring_shoes"),
                                         self.size.int())
Пример #14
0
 def __init__(self, environment, position):
     super().__init__(environment, position, 'BB Wavegun')
     self.image = pygame.transform.scale(R.get_image("bb_wavegun"),
                                         self.size.int())