Skip to content

Commit

Permalink
made disabling bin fuckin work yayayay
Browse files Browse the repository at this point in the history
  • Loading branch information
rutra8002 committed Jul 17, 2024
1 parent e0887db commit 0346342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions classes/bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ def render(self):
"""
Renders the Bin on the game screen.
"""
for event in pygame.event.get():
if event.type == pygame.MOUSEBUTTONDOWN and event.button == 1: # Left click
mouse_pos = event.pos
# Assuming self.bin is your Bin instance
self.toggle_bin(mouse_pos)
if self.enabled:
self.game.screen.blit(self.bin_img, self.rect)
else:
Expand Down
2 changes: 2 additions & 0 deletions classes/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def events(self):
self.rPressed = 2

for object in self.objects:
if type(object) == bin.Bin:
object.toggle_bin(self.mousepos)
if type(object) == gameobjects.Lens:
if object.change_curvature_left:
object.change_curvature_left = False
Expand Down

0 comments on commit 0346342

Please sign in to comment.