This is a game I created using a Java GUI application, which allows a player to control a space ship while shooting down encroaching enemy ships. This was inspired by the YouTuber Tech with Tim who made a pygame version of it. The general rule of the game is to press 'P' to begin and 'A' to pause, the left key to move left, the right key to move right, and the space bar to shoot. In the duration in which the program begins running, use the cursor to click the window when it's greyish for it to work (I don't know why it does so, just a precaution). Hope you enjoy it!
Space Invaders with Java Swing