aboutsummaryrefslogtreecommitdiff
path: root/asteroid.py
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2023-07-30 15:36:09 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2023-07-30 15:36:09 +0530
commit1a3a0ba4f986b902e9c958cd10d4be95d4c287d5 (patch)
treecd7ba431da6620c14a1d8878792a43f1da48d307 /asteroid.py
parentd3278cf87722518847e79e56572793d9318043c3 (diff)
customize asteroids
Diffstat (limited to 'asteroid.py')
-rw-r--r--asteroid.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/asteroid.py b/asteroid.py
index 1735c8b..dd80433 100644
--- a/asteroid.py
+++ b/asteroid.py
@@ -7,6 +7,9 @@ class Asteroid:
self.y = 60 # Starting y position at the top
self.speed_y = random.randint(1, 3) # Random downward speed
+ self.width = 92
+ self.height = 92
+
# Load asteroid image
self.asteroid_image = pygame.image.load('res/asteroid.png')