This is my simplest engine for projectile physics. Press down to launch the snowball and move the mouse around to aim.
All code by me. You can use this for your games if you want.