Skip to content

Commit

Permalink
use mute button with bg
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilhenry committed Aug 31, 2024
1 parent 3882606 commit c488ce9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file added assets/sprites/music_bg3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/music_bg4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@
SPRT_BESTFS_BTN = pygame.image.load(PATH_SPRITES / "bst_button1.png")
SPRT_BESTFS_BTN_CLICKED = pygame.image.load(PATH_SPRITES / "bst_button2.png")

SPRT_MUSIC_OFF_BTN = pygame.image.load(PATH_SPRITES / "music_off.png")
SPRT_MUSIC_ON_BTN = pygame.image.load(PATH_SPRITES / "music_on.png")
SPRT_MUSIC_OFF_BTN_HOVERED = pygame.image.load(PATH_SPRITES / "music_bg4.png")
SPRT_MUSIC_OFF_BTN = pygame.image.load(PATH_SPRITES / "music_bg3.png")
SPRT_MUSIC_ON_BTN_HOVERED = pygame.image.load(PATH_SPRITES / "music_bg2.png")
SPRT_MUSIC_ON_BTN = pygame.image.load(PATH_SPRITES / "music_bg1.png")

SPRT_RESTART_BTN = pygame.image.load(PATH_SPRITES / "reset1.png")
SPRT_RESTART_BTN_CLICKED = pygame.image.load(PATH_SPRITES / "reset2.png")
Expand Down
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def __init__(
(30 + 64 + 5, 400),
c.SPRT_MUSIC_ON_BTN,
c.SPRT_MUSIC_OFF_BTN,
c.SPRT_MUSIC_ON_BTN_HOVERED,
c.SPRT_MUSIC_OFF_BTN_HOVERED,
)
self.undo_button = widgets.ImageButton(
(99 + 64 + 5, 400),
Expand Down

0 comments on commit c488ce9

Please sign in to comment.