so i am trying to code a simple game to try to "exercise" my skills in java
You mean the same "game" you posted as a homework question here: http://www.gamedev.net/community/forums/topic.asp?topic_id=472640
- Detect coords of mouse click
- Construct vector from ball to mouse click (subtract one from the other)
- Move your ball in the direction of the vector each animation frame.
- Detect when the ball touches an edge (based on x/y position)
- Flip direction vector based on which edge was hit