From 5d66391773b14f34273b1de9195281c0de1053a7 Mon Sep 17 00:00:00 2001 From: 24_PolujanovVE <24_PolujanovVE@iux.local> Date: Wed, 4 Mar 2026 15:40:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D0=B5=D1=86=202=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task2.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/task2.py b/task2.py index d6f1af6..f1826ea 100644 --- a/task2.py +++ b/task2.py @@ -45,11 +45,14 @@ def house(x, y): house(0, 0) -def prizrak(): - circle(screen, (200, 200, 200), (800, 700), 40) - polygon(screen, (200, 200, 200), [(840, 700), (845, 707), (847, 715), (865, 735), (875, 752), (880, 765), (900, 775), (907, 780), (904, 786), (897, 790), (880, 800), (870, 797), (860, 797), (855, 804), (850, 810), (840, 810), (830, 805), (810, 810), (795, 830), (780, 830), (760, 820), (750, 780), (760, 760), (760, 700)]) +def prizrak(x, y): + circle(screen, (200, 200, 200), (800+x, 700+y), 40) + polygon(screen, (200, 200, 200), [(840+x, 700+y), (845+x, 707+y), (847+x, 715+y), (865+x, 735+y), (875+x, 752+y), (880+x, 765+y), (900+x, 775+y), (907+x, 780+y), (904+x, 786+y), (897+x, 790+y), (880+x, 800+y), (870+x, 797+y), (860+x, 797+y), (855+x, 804+y), (850+x, 810+y), (840+x, 810+y), (830+x, 805+y), (810+x, 810+y), (795+x, 830+y), (780+x, 830+y), (760+x, 820+y), (750+x, 780+y), (760+x, 760+y), (760+x, 700+y)]) + circle(screen, (255, 0, 0), (780+x, 685+y), 4) + circle(screen, (255, 0, 0), (800+x, 690+y), 4) -prizrak() + +prizrak(0, 0) pygame.display.update() clock = pygame.time.Clock()