This is the code that I wrote for my CGG asteroids assignment. I have only uploaded this file as the code uses a library that was written by my lecturer and as such I haven’t uploaded it. However the functionality of the external functions should be understandable from their names.