Skip to content

Commit

Permalink
added some bad png
Browse files Browse the repository at this point in the history
  • Loading branch information
rutra8002 committed Jul 19, 2024
1 parent 8432163 commit 5933112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
exit_icon = pygame.image.load('images/exit.png') # Loading the exit icon image
torch = pygame.image.load('images/torch.png') # Loading the torch image
laser = pygame.image.load('images/black_rectangle.png') # Loading the laser image
blackhole = pygame.image.load('images/blackhole.png') # Loading the blackhole image
bin = pygame.image.load('images/trash1.png')
disabled_bin = pygame.image.load("images/trash.png")
bad_coursor = pygame.image.load('images/bad_coursor.png') # Loading the bad cursor image
Expand Down
5 changes: 5 additions & 0 deletions gui/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ def __init__(self, game, number, tooltip_text):
self.icon = images.corridor_icon
self.icon = pygame.transform.scale(self.icon, (button_width, button_height))
self.icon_rect = self.icon.get_rect(center=self.rect.center)
elif self.number == 7:
self.color = (20, 20, 20)
self.icon = images.blackhole
self.icon = pygame.transform.scale(self.icon, (button_width, button_height))
self.icon_rect = self.icon.get_rect(center=self.rect.center)

elif self.number == -1:
self.color = None
Expand Down

0 comments on commit 5933112

Please sign in to comment.