start of Menu implementation

This commit is contained in:
IM23a-bachmannj2
2025-02-02 09:16:50 +01:00
parent b8887598d4
commit fc31ab5912
12 changed files with 296 additions and 51 deletions
+3 -2
View File
@@ -2,14 +2,15 @@ import pygame
from game.menu import StartMenu, GameMenu
from game.game import Game
from game.settings import width, height
import game.settings as setting
def main():
running = True
pygame.init()
screen = pygame.display.set_mode((width, height))
screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
setting.width, setting.height = pygame.display.get_window_size()
clock = pygame.time.Clock()
pygame.display.set_caption("Tetris")