From 123ac2936309e1eb0597d2cd76b0ca5e8e505aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Wed, 4 Mar 2026 13:29:08 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D0=BE=D0=B5=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.py | 41 ++++++++++++++++++++++++++++++++++++++++- 2.py | 0 3.py | 0 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 2.py create mode 100644 3.py diff --git a/1.py b/1.py index 3492467..6c072e2 100644 --- a/1.py +++ b/1.py @@ -1 +1,40 @@ -print("hello, World") +import pygame +import sys + +pygame.init() + +# Настройки экрана +screen = pygame.display.set_mode((600, 600)) +pygame.display.set_caption("Злой смайлик") + + +YELLOW = (255, 255, 0) +BLACK = (0, 0, 0) +WHITE = (255, 255, 255) +RED = (255, 0, 0) + +running = True +while running: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + running = False + + screen.fill(WHITE) + + pygame.draw.circle(screen, YELLOW, (300, 300), 200) + + pygame.draw.circle(screen, RED, (220, 220), 30) + pygame.draw.circle(screen, RED, (380, 220), 30) + + pygame.draw.circle(screen, BLACK, (220, 220), 12) + pygame.draw.circle(screen, BLACK, (380, 220), 12) + + pygame.draw.line(screen, BLACK, (150, 150), (230, 190), 20) + pygame.draw.line(screen, BLACK, (450, 150), (370, 190), 20) + + pygame.draw.rect(screen, BLACK, (200, 370, 200, 30)) + + pygame.display.flip() + +pygame.quit() +sys.exit() diff --git a/2.py b/2.py new file mode 100644 index 0000000..e69de29 diff --git a/3.py b/3.py new file mode 100644 index 0000000..e69de29