This starfield is buggy. When the ship is decelerating in one direction it does okay but not in other directions. In one deceleration direction it just comes to a complete stop. Also at various times the stars drift when the ship comes to a stop.
Please note that I can not set the stars position like I had done originally by using the opposite direction of the ship as this was causing problems with other sprite movements. The problem arises with trying to get the stationary ship to move close to other sprites. I had gotten all kinds of odd movements where sprites where suddenly jumping on top of the ship to where you could never catch up to a sprite. So I need to manually set each x,y coordinate of the stars.
I am using the cos and sin of an angle to get the x,y coordinates. I tried converting them to radians but it did not work. Orginally when I first started working on this game in c I was using radians but the same formula is not working. In c, I would offset the angle degrees by 90 and then multiplied the result by 0.0174553292 (which is pie/180).