I created a JApplet game for a class project. My game is basically a dodge-ball game. I have 5 dodgeballs bouncing around the screen with a player starting in the middle. The object is to mouse drag the player dodging all of the balls bouncing.
The problem I am having is the dodge-balls pass right through my player. I want the game to end if the player gets hit. I am having difficulty setting this up and was wondering what exactly do i need to be using. I believe it has something to do with mouse listener but am not sure. If someone could help point me in the right direction would be much appreciated.
Thanks