From c84e0aa41e187d0f1ce814e71bf8d2bbba050d2e Mon Sep 17 00:00:00 2001 From: Nicolas Sudres Date: Wed, 27 Jul 2022 11:24:12 +0200 Subject: [PATCH] add window init function --- Snake/src/window.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Snake/src/window.py b/Snake/src/window.py index e69de29..a08d411 100644 --- a/Snake/src/window.py +++ b/Snake/src/window.py @@ -0,0 +1,9 @@ +import pygame +from pygame.locals import * + +def init_game(): + pygame.init() + screen = pygame.display.set_mode((1280, 720), pygame.SCALED) + pygame.display.set_caption("Test Window") + + return screen \ No newline at end of file