конец 2 задания

This commit is contained in:
2026-03-04 15:40:20 +03:00
parent 525b58c88a
commit 5d66391773

View File

@@ -45,11 +45,14 @@ def house(x, y):
house(0, 0) house(0, 0)
def prizrak(): def prizrak(x, y):
circle(screen, (200, 200, 200), (800, 700), 40) circle(screen, (200, 200, 200), (800+x, 700+y), 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)]) 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() pygame.display.update()
clock = pygame.time.Clock() clock = pygame.time.Clock()