juegos-python/star_wars
Manuel Vergara dde6d446a7 Add Star war game
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
2023-06-09 22:23:53 +02:00
..
Img Add Star war game 2023-06-09 22:23:53 +02:00
README.md Add Star war game 2023-06-09 22:23:53 +02:00
requirements.txt Add Star war game 2023-06-09 22:23:53 +02:00
star_wars.py Add Star war game 2023-06-09 22:23:53 +02:00

ORIGINAL REPO: https://github.com/pedrollamas/Star_wars_pygame

🎮 Star Wars: Space Duel! 🎮

Hello there

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. 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, 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 Stormtrooper
Han Solo Stormtrooper

The quality of the gif is low, you'll find out later on when you download it that it is better 🤙

GIF del video

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

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:

🌟Enjoy the game and may the Force be with you!🌟