The basics are pretty simple.
create a table. create balls. use physics. set gravity to 0.
Select ball and make a cue aiming at the ball. on mouse button released move cue towards ball and give the ball an impulse in the angle of the cue. To shoot harder or softer make the impuls bigger depending on how long the mouse has been pushed.