juegos-python/star_wars/README.md

82 lines
3.1 KiB
Markdown
Raw Normal View History

ORIGINAL REPO: https://github.com/pedrollamas/Star_wars_pygame
# 🎮 Star Wars: Space Duel! 🎮
![Hello there](Img/hello_there.gif)
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.
## Description
This is an arcade-style game 🕹️ created with ![Pygame](https://img.shields.io/badge/Pygame-%23FFCA1C?style=for-the-badge&logo=pygame&logoColor=white). 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 ♥️ and will take on the role of either Han Solo or a Stormtrooper.
My objective with this game was to learn the basics of ![Pygame](https://img.shields.io/badge/Pygame-%23FFCA1C?style=for-the-badge&logo=pygame&logoColor=white), 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.
## Demonstration
There are two playable characters:
| ![Han Solo](Img/han-solo.gif) | ![Stormtrooper](Img/stormtrooper_dance.gif) |
|:---:|:---:|
| **Han Solo** | **Stormtrooper** |
The quality of the gif is low, you'll find out later on when you download it that it is better 🤙
<p align="left">
<img src="Img/Star_wars_demonstration.gif" alt="GIF del video" width="600" height="400">
</p>
## Instructions
To play the Star Wars game in your local environment, follow these steps:
### Clone the Repository
1. Open a terminal or command prompt on your system.
2. Navigate to the location where you want to clone the repository.
3. Run the following command to clone the repository:
```
git clone https://github.com/pedrollamas/Star_wars_pygame.git
```
### Install Dependencies
1. Make sure you have Python installed on your system.
2. Navigate to the root folder of the cloned repository.
3. Run the following command to install the dependencies:
```
pip install -r requirements.txt
```
### Run the Game
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.
## Controls
![Controls](Img/controls.jpg)
#### For the Stormtrooper:
Move Up: W
Move Down: S
Move Left: A
Move Right: D
Shoot: Caps lock key (Press to shoot)
#### For Han Solo:
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 🔁
## Contact:
* 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!**🌟