Cannons Game

I’m creating a Cannons type game right now and i was just wondering how i would create the kind of physics engine for it.I would like it so that when the player holds down the mouse button,the pressure increases thus making the bullet go further.Any Ideas?