This is a game called Boxball. It’s pretty straightforward, but the goal is to have a player drop a ball above a line and land it in the box at the bottom. I think if I expanded this I would want to add in some way to keep score of how many balls are landed in the box in a row and maybe record high scores for each setup. There’s nothing super fancy about this, but it was a decent project for one of my first games in Java.
Click here to download a copy of the game. Once you have downloaded the game, all you need to do is unzip the file and run the .html file in your web browser. If you need any help just let me know.