This is very much a learning process. Once you’ve created your first game, it gets a lot easier to do your second and third. We’re creating a simplified version of Atari’s classic arcade game Missile Command.
You have to defend six cities from incoming missiles with your batteries of ABMs (anti-ballistic missiles). Using the mouse, you click a point to intercept a missile and fire an ABM. Once the ABM reaches that point, it explodes, and if the explosion hits the incoming missile, it is destroyed.
As it stands, the game could be expanded on. Here are some ideas of how you could enhance it. For instance, you might give it difficulty levels. Maybe when you start the game the first level only has five missiles. After those are fired, you’re on level two and have more missiles. Also, you could increase the difficulty by making the missiles faster. You could have a difficulty multiplier that goes from 1.0 to 2.5 by 0.1 per level. Multiply xvel and yvel by this and your missiles will move faster.
Another way to make the game more difficult is by reducing the time between missiles being fired at higher levels. A high score table would be nice, too, with score, initials and date saved out to a text file and reloaded each time the game is run.
Going around in circles
Before you write any code, you need to figure out whether the game can work on your hardware. Arcade games have hardware assistance for sprites and fast graphics. The Raspberry Pi 4B