From 285cf1a71d0183780ac20296e72692de78daec2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artjoms=20Marians=20=C5=85e=C4=8Dajevs?= Date: Mon, 26 Feb 2024 08:52:01 +0000 Subject: [PATCH] Update main.py --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 91d34d6..6e509d8 100644 --- a/main.py +++ b/main.py @@ -75,14 +75,13 @@ class Bullet(pygame.sprite.Sprite): def update(self): self.rect.x += BULLET_SPEED * math.cos(math.radians(self.angle)) self.rect.y += BULLET_SPEED * math.sin(math.radians(self.angle)) - + # Проверка столкновения снаряда со стенами if pygame.sprite.spritecollideany(self, walls): self.kill() # Удаляем снаряд, если он столкнулся со стеной - # Определение класса стены - +# Определение класса стены class Wall(pygame.sprite.Sprite): def __init__(self, x, y, image): super().__init__()