1 minute read

This blog post is here to show you one of the awesome games I have developed in Python. You can see the code for this game on my GitHub. You will see what is in it, how the controls work, etc. I will also show you how to run the game so you can play it too. But now let’s dive into it!

This game is called Galaxy-Fighters. It is a 2-player game. Each player has a ship, and you can shoot bullets from that ship. You also have 10 lives, and if you get hit by a bullet you lose a life. Your goal is to defeat the opposing player by firing bullets, while dodging the opposing player’s bullets.

If you are on the left side (yellow ship) you will move with WASD and shoot with the left control key. If you are on the right side (red ship) you will move with arrow keys and shoot with the right control key. There is a border down the screen, so each player has an individual space. There is also a space background and there are sound effects for shooting bullets.

To play it, go to the link in the second paragraph. That will take you to the repository on GitHub. There will be instructions in the README file to run it, but I will also tell you here. First, install Python and Git if you don’t have them. Then in your terminal type pip install pygame to install Pygame.

Once you have Pygame installed, clone the repository by typing git clone https://github.com/im2fast4u/Galaxy-Fighters.git in your terminal. Then type cd Galaxy-Fighters to open the repository. Finally, type python main.py to run the python file. Now you can play it!

I hope you are able to play my game now! If you like it, please star the repository. You can visit this blog post any time if you forget something. Thank you for reading!

Updated: