Closed pserwylo closed 10 months ago
Created a turret class and moved turret related code from the tank into this. Helps with things like:
Game
class.In general, will make it easier to do things like implement different types of guns in the future.
Was going to use the
MonoGame.Extended.Tween
library to do nice smooth zooming/panning, but that turned out to be more targetted at animations where you knew the start position and the end position of something. When zooming/panning, the desired location/zoom is constantly changing every frame, so it worked much better to just use theMovementVelocity
helper class you created for panning, and some manual interpolation for zooming.