se_uebungen/snake/window.py
2026-04-16 14:47:29 +02:00

13 lines
257 B
Python

import pygame
class Window:
def __init__(self, title, size):
pygame.init()
pygame.display.set_caption(title)
self.__surface = pygame.display.set_mode(size=size)
def reset(self):
self.__surface.fill((0, 0, 0))