diff --git a/snake/snake_template.py b/snake/snake_template.py index 03f11d693cc532398c40ffa0adeff1b4bbffaaf2..9813891fe9a7c02e807040c258b0e1d96f3b4c63 100644 --- a/snake/snake_template.py +++ b/snake/snake_template.py @@ -14,6 +14,13 @@ green = (0, 255, 0) blue = (50, 153, 213) # Step 1: Defining the window's graphical variables +unite = 10 +largeur_zone = 60 +hauteur_zone = 40 +couleur_nourriture = red +couleur_serpent = green +couleur_fond = white + # Step 2.3: Showing a square in the window def draw_square(x: int, y: int, colour: tuple): @@ -62,7 +69,7 @@ def game_turn(snake, end, direction, food): # Initialisation of the game window ==> do not delete pygame.init() # Step 2.1: replace 100,100 by using the correct variables -console = pygame.display.set_mode((100,100)) +console = pygame.display.set_mode((largeur_zone, hauteur_zone)) # Set window title pygame.display.set_caption("Snake by Rubika_BI1_Anim3D")