Files
tetri5/main.py

20 lines
462 B
Python

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()