Skip to content

Star Wars: Space Duel! 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.

Notifications You must be signed in to change notification settings

pedrollamas/Star_wars_pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

65 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ 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!**๐ŸŒŸ

About

Star Wars: Space Duel! 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages