Collesion detection in the game of Asteroids
I am making Asteroids and have almost everything working except for collision detection. I know what must be done (when the one image, say for a laser, overlaps onto an image for an asteroid, the computer must detect that this has happened and must make both react according).
I know how to do everything before and after detection, but I do not know how to get the program to detect a collision.
Help is greatly appreciated.
Sharkface217 :thumb:
Re: Collesion detection in the game of Asteroids
ask if the x and y values of the laser are in the range or the span of the x and y values of the astoriod :)