Add Timer and Keylistener and let the basket move.
In this assignment, we program the dynamics of the game: to control and track all the game elements, to ‘catch’ balls and to keep score. For the launcher and basket we use pictures that are also supplied. So, you get class definitions for the game elements and an accompanying class diagram it’s in the zip-file). In order not to complicate this task, this has already been done. Normally you would make a design for all (moving) game elements (launcher, basket, balls), e.g. The balls come from a launcher which launches balls with random trajectories and speeds. The basket is located at the bottom of the screen and can only move to the left and right. The aim is to catch as many balls as possible and earn points that way. The user of the game controls a basket in which the balls must be collected.
In this tutorial, you will make a simple game in which balls are launched, which we then have to catch.