nsccs / pygames

Collection of games created with pygame.
4 stars 4 forks source link

Implement asteroid #12

Closed jaredscarr closed 9 months ago

jaredscarr commented 9 months ago

An asteroid is an object that when introduced to the game has a size, direction, and velocity. It's position must be tracked. If it is shot then it will spawn a predetermined (?) number of smaller sized asteroids.

See code in ship class for movement.

znschaffer commented 9 months ago

I went ahead and refactored the Ship class out to be Entity, passing in sprite assets through the constructor - This should make it easy to reuse most of the movement and velocity logic for asteroids and eventually the saucers