21 lines
353 B
Python
21 lines
353 B
Python
import pygame
|
|
from pygame.draw import*
|
|
|
|
pygame.init()
|
|
|
|
FPS = 30
|
|
screen = pygame.display.set_mode((400,400))
|
|
|
|
#Рисунок
|
|
|
|
pygame.display.update()
|
|
clock = pygame.time.Clock()
|
|
finished = False
|
|
|
|
while not finished:
|
|
clock.tick(FPS)
|
|
for event in pygame.event.get():
|
|
if event.type == pygame.QUIT:
|
|
finished = True
|
|
|
|
pygame.quit() |