asteroids render

This commit is contained in:
2025-07-12 20:04:42 +02:00
parent 0eb198f284
commit 0ee85e61b2
3 changed files with 70 additions and 0 deletions

13
asteroid.py Normal file
View File

@@ -0,0 +1,13 @@
from circleshape import CircleShape
import pygame
class Asteroid(CircleShape):
def __init__(self, x, y, radius):
super().__init__(x,y, radius)
def draw(self, screen):
pygame.draw.circle(screen, (255,255,255), (self.position.x, self.position.y), self.radius)
def update(self, dt):
self.position += self.velocity * dt