Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wacyk Jean-Gabriel
Wiiberry
Commits
aab188e2
Commit
aab188e2
authored
Jan 20, 2019
by
jwacyk
Browse files
modification menu.py ajout du bouton quitter
parent
95f39a07
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/menu.py
View file @
aab188e2
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment