Up and down arrows aim and space fires. Uses clones for the canon balls and very simple physics (fake) Play around and use it in your own games!
I start the canon ball at the center of the canon which is the back round part. This avoids having to calculate the sweep of the end of the canon, and is kind of how real canons work.