Commit 95f39a07 authored by jwacyk's avatar jwacyk
Browse files

modification menu.py ajout du bouton quitter

parent 5d7f56b1
......@@ -78,21 +78,21 @@ class Menu(object):
def show_menu_on_screen(self, screen):
pygame.draw.rect(screen, constants.GREEN, self.green_rect)
pygame.draw.rect(screen, constants.BLACK, self.black_rect)
pygame.draw.rect(screen, constants.YELLOW, self.yellow_rect)
pygame.draw.rect(screen, constants.ORANGE, self.orange_rect)
pygame.draw.rect(screen, constants.RED, self.red_rect)
pygame.draw.rect(screen, constants.PINK, self.pink_rect)
pygame.draw.rect(screen, constants.PURPLE, self.purple_rect)
pygame.draw.rect(screen, constants.BLUE, self.blue_rect)
pygame.draw.rect(screen, constants.PRETTY_BLUE, self.pretty_blue_rect)
pygame.draw.rect(screen, constants.LIGHT_BLUE, self.light_blue_rect)
pygame.draw.rect(screen, constants.DARK_GREEN, self.dark_green_rect)
pygame.draw.rect(screen, constants.BROWN, self.brown_rect)
pygame.draw.rect(screen, constants.GRAY, self.gray_rect)
pygame.draw.rect(screen, constants.DARK_GRAY, self.dark_gray_rect)
pygame.draw.rect(screen, constants.BLACK, self.black_rect)
pygame.draw.rect(screen, constants.YELLOW, self.yellow_rect)
pygame.draw.rect(screen, constants.ORANGE, self.orange_rect)
pygame.draw.rect(screen, constants.RED, self.red_rect)
pygame.draw.rect(screen, constants.PINK, self.pink_rect)
pygame.draw.rect(screen, constants.PURPLE, self.purple_rect)
pygame.draw.rect(screen, constants.BLUE, self.blue_rect)
pygame.draw.rect(screen, constants.PRETTY_BLUE, self.pretty_blue_rect)
pygame.draw.rect(screen, constants.LIGHT_BLUE, self.light_blue_rect)
pygame.draw.rect(screen, constants.DARK_GREEN, self.dark_green_rect)
pygame.draw.rect(screen, constants.BROWN, self.brown_rect)
pygame.draw.rect(screen, constants.GRAY, self.gray_rect)
pygame.draw.rect(screen, constants.DARK_GRAY, self.dark_gray_rect)
pygame.draw.rect(screen, constants.DARK_GRAY, self.quit_button_rect)
screen.blit(self.quit_text, (self.quit_button_rect.x, self.quit_button_rect.y))
screen.blit(self.quit_text, (self.quit_button_rect.x + 5, self.quit_button_rect.y + 2))
def set_show_menu(self, state):
self.show_menu = state
......
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