Exemple #1
0
 def load_move_count(self):
     move_holder = load_sprite("assets/img/holders/numberBox.png")
     move_holder.rect.left, move_holder.rect.top = [1250, 50]
     self.moveHolder = pygame.sprite.GroupSingle(move_holder)
     move_count = load_sprite("assets/img/holders/moveCount.png")
     move_count.rect.left, move_count.rect.top = [1000, 45]
     self.moveCount = pygame.sprite.GroupSingle(move_count)
Exemple #2
0
 def load_undo_count(self):
     undo_holder = load_sprite("assets/img/holders/numberBox.png")
     undo_holder.rect.left, undo_holder.rect.top = [1250, 120]
     self.undoHolder = pygame.sprite.GroupSingle(undo_holder)
     undo_count = load_sprite("assets/img/holders/undoCount.png")
     undo_count.rect.left, undo_count.rect.top = [1000, 115]
     self.undoCount = pygame.sprite.GroupSingle(undo_count)
Exemple #3
0
 def load_holders(self):
     sprite = load_sprite("assets/img/holders/endScoreHolder.png")
     sprite.rect.left, sprite.rect.top = [self.coords[0] - 10, self.coords[1]]
     self.score_holder = pygame.sprite.GroupSingle(sprite)
     copy = load_sprite("assets/img/holders/endScoreHolder.png")
     copy.rect.left, copy.rect.top = [self.coords[0] - 10, self.coords[1] + 190]
     self.undo_holder = pygame.sprite.GroupSingle(copy)
Exemple #4
0
    def load_hint(self):
        hint_up = load_sprite("assets/img/arrow_up.png")
        self.hint_up = pygame.sprite.GroupSingle(hint_up)
        hint_down = load_sprite("assets/img/arrow_down.png")
        self.hint_down = pygame.sprite.GroupSingle(hint_down)

        hint_b = load_sprite("assets/img/buttons/hint.png")
        hint_b.rect.left, hint_b.rect.top = [1250, 280]
        self.hint_b = pygame.sprite.GroupSingle(hint_b)

        hint_no = load_sprite("assets/img/buttons/no-hint.png")
        hint_no.rect.left, hint_no.rect.top = [1250, 280]
        self.hint_no = pygame.sprite.GroupSingle(hint_no)
Exemple #5
0
 def get_title(self):
     sprite = load_sprite("assets/img/titles/Settings.png")
     sprite.rect.left, sprite.rect.top = [380, 50]
     self.title = pygame.sprite.GroupSingle(sprite)
Exemple #6
0
 def get_quit(self):
     quit = load_sprite("assets/img/buttons/quit.png")
     quit.rect.left = 20
     quit.rect.top = 20
     self.quit = pygame.sprite.GroupSingle(quit)
Exemple #7
0
 def get_back(self):
     back = load_sprite("assets/img/buttons/back.png")
     back.rect.left = 20
     back.rect.top = 20
     self.back = pygame.sprite.GroupSingle(back)
Exemple #8
0
 def load_quit(self):
     quit_img = load_sprite("assets/img/buttons/menu.png")
     quit_img.rect.left = 20
     quit_img.rect.top = 20
     self.quit = pygame.sprite.GroupSingle(quit_img)
Exemple #9
0
 def load_undo(self):
     undo_img = load_sprite("assets/img/buttons/undo.png")
     undo_img.rect.left = 1250
     undo_img.rect.top = 200
     self.undoB = pygame.sprite.GroupSingle(undo_img)
Exemple #10
0
 def load_ball(self, num, coords):
     ball_file = ball_dict.get(num)
     ball = load_sprite("assets/img/balls/" + ball_file)
     ball.rect.left = coords[0]
     ball.rect.top = coords[1]
     self.balls.add(ball)
Exemple #11
0
 def load_completed_flask(self):
     completed = load_sprite("assets/img/flasks/flask-4-completed.png")
     completed.rect.left = self.coords[0]
     completed.rect.top = self.coords[1]
     self.flask_comp = pygame.sprite.GroupSingle(completed)
Exemple #12
0
 def load_selected_flask(self):
     selected = load_sprite("assets/img/flasks/flask-4-selected.png")
     selected.rect.left = self.coords[0]
     selected.rect.top = self.coords[1]
     self.flask_sel = pygame.sprite.GroupSingle(selected)
Exemple #13
0
 def load_default_flask(self):
     flask = load_sprite("assets/img/flasks/flask-white.png")
     flask.rect.left = self.coords[0]
     flask.rect.top = self.coords[1]
     self.flask = pygame.sprite.GroupSingle(flask)
Exemple #14
0
 def load_back_to_menu(self):
     back = load_sprite("assets/img/buttons/backToMenu.png")
     back.rect.left, back.rect.top = [500, 800]
     self.back_to_menu = pygame.sprite.GroupSingle(back)
Exemple #15
0
 def load_level_passed(self):
     sprite = load_sprite("assets/img/titles/levelPassed.png")
     sprite.rect.left, sprite.rect.top = [350, 200]
     self.passed = pygame.sprite.GroupSingle(sprite)