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.
It would be a good idea to make frame rate based on the system.
Making the game scale-able to other resolutions would involve changing a lot of the constants and maybe providing assets at multiple resolutions. Resolution settings are common in games for a reason, it could be worth doing especially if people have issues running it at high or low DPIs.
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.