Dive into the Star Wars galaxy and get ready for an epic showdown between two legendary characters: Han Solo and a relentless Stormtrooper. Take control of your character, dodge enemy shots, and showcase your skills with the laser pistol.
This is an arcade-style game ๐น๏ธ created with . You can play 1๏ธโฃ ๐ 1๏ธโฃ with a friend using the same keyboard.
I used Tech with Tim tutorial and used it as a base, here is the link https://www.youtube.com/watch?v=jO6qQDNa2UY
Each player has 10 lives
My objective with this game was to learn the basics of , in order to create different mini-games ๐งฉ๐ฒ in the future for fun.
I hope you enjoy it, and I invite you to collaborate to improve it or create new games if you wish.
There are two playable characters:
![]() |
![]() |
|---|---|
| Han Solo | Stormtrooper |
The quality of the gif is low, you'll find out later on when you download it that it is better ๐ค
To play the Star Wars game in your local environment, follow these steps:
- Open a terminal or command prompt on your system.
- Navigate to the location where you want to clone the repository.
- Run the following command to clone the repository:
git clone https://github.com/pedrollamas/Star_wars_pygame.git
- Make sure you have Python installed on your system.
- Navigate to the root folder of the cloned repository.
- Run the following command to install the dependencies:
pip install -r requirements.txt
In the same location as the root folder, run the following command to start the game:
python star_wars.py
Once the command is executed, the game will open in a new window, and you can start playing.
Move Up: W Move Down: S Move Left: A Move Right: D Shoot: Caps lock key (Press to shoot)
Move Up: Up Arrow Move Down: Down Arrow Move Left: Left Arrow Move Right: Right Arrow Shoot: Spacebar (Press to shoot)
To close the game, simply click the โ button in the window. If you want to play again, wait for 4 seconds and the game will automatically restart ๐
- Feel free to send me an email, generate an issue or pull. My goal is for everyone who likes the idea, to contribute and start developing small fun games.
- ๐ฌ Send me an email at pedrollamaslopez@hotmail.com
- ๐จโ๐ผ๐ค Connect with me on Linkedin at https://www.linkedin.com/in/pedrollamaslopez/
๐**Enjoy the game and may the Force be with you!**๐




