OK. Firstly, sorry it’s a long one. This implementation of Asteroids started out simply, but then I just though what the heck, let’s do it properly! This video shows how to implement asteroids at the command prompt using simple C++ and basic mathematics.
Code: https://github.com/OneLoneCoder/videos/blob/master/OneLoneCoder_Asteroids.cpp
Blog: www.onelonecoder.com