This is a very basic minigame I made with C++ in Visual Studio which uses projectile motion for firing a cannonball and hitting enemies The user picks the direction and speed of the cannonball to hit oncoming enemies which when hit will reset and cause deformation to the floating eye. The eye can also be hit and any collision made or if info is requested it will produce a message in the command line window. Controls A - rotates left D - rotates right W - rotates up X - rotates down O - increases speed of shot P - decreases speed of shot I – info R – resets cannonball F – fire cannon
Code used to create the program, expand image to see all.
View PDF
gLike
VS C++ Cannonball Program

This is a very basic minigame I made with C++ in Visual Studio which uses projectile motion for firing a cannonball and hitting enemies

The user picks the direction and speed of the cannonball to hit oncoming enemies which when hit will reset and cause deformation to the floating eye. The eye can also be hit and any collision made or if info is requested it will produce a message in the command line window.

Controls A - rotates left
D - rotates right
W - rotates up
X - rotates down
O - increases speed of shot
P - decreases speed of shot
I – info
R – resets cannonball
F – fire cannon

Josh Leach
Game Mechanics Assistant Manchester, United Kingdom