It's a game where u shoot from a cannon and the cannon-ball moves like a projectile and hits a target. So u will see three major things in this program:
1. Rotating a cannon;
2. How to move an object like a projectile
3. A very simple collision detection
Before compiling the code dont forget to change the path used in initgraph() function accordingly.
This is a DOS game and needs Turbo C/C++ to compile. If u want to see the output(the complete program), Download the game from here: