diff --git a/img/tetris_icon.png b/img/tetris_icon.png new file mode 100644 index 0000000..66ea9c0 Binary files /dev/null and b/img/tetris_icon.png differ diff --git a/main.py b/main.py new file mode 100644 index 0000000..7b1e172 --- /dev/null +++ b/main.py @@ -0,0 +1,20 @@ +import pygame + +def main(): + pygame.init() + + screen = pygame.display.set_mode((800, 600)) + pygame.display.set_caption("Tetris") + icon = pygame.image.load("img/tetris_icon.png") + pygame.display.set_icon(icon) + + is_running = True + while is_running: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + is_running = False + + screen.fill((100, 149, 237)) + pygame.display.update() + +main() \ No newline at end of file