написал базовую структуру
This commit is contained in:
21
task1.py
Normal file
21
task1.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
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()
|
||||||
Reference in New Issue
Block a user