how do i get my asteroid demo to calculate the angles properly?
Develop games in your browser. Powerful, performant & highly capable.
Maybe the following tutorial by Kyatric - Asteroid clone in less than 100 events - would help you?