Commit aab188e2 authored by jwacyk's avatar jwacyk
Browse files

modification menu.py ajout du bouton quitter

parent 95f39a07
...@@ -71,6 +71,9 @@ class Menu(object): ...@@ -71,6 +71,9 @@ class Menu(object):
elif self.dark_gray_rect.collidepoint(position): elif self.dark_gray_rect.collidepoint(position):
player.set_color(constants.DARK_GRAY) player.set_color(constants.DARK_GRAY)
return True return True
elif self.quit_button_rect.collidepoint(position):
pygame.quit()
sys.exit()
else : else :
return True return True
else : else :
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment