nsccs / pygames

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

Ship Movement #8

Closed 1deolson closed 9 months ago

1deolson commented 9 months ago

Added a ship asset and class and got movement working. The ship class controls the ships position, velocity, and sprite, and does all of the calculations involving them. For example, moving forward by adding to the velocity in the direction the ship is facing or slowing down the ship by lowering the velocity. The ship needs to have one asset as a perfect square (equal width and height) so rotation around its center works properly (the function I used for that is finicky). It also has one that defines its hitbox. Works at multiple frame rates for the most part.

1deolson commented 9 months ago

Thank you, I'm excited to see what you do.