PygameForBeginners is a simple two-player spaceship combat game built using the Pygame library. Players control spaceships, shoot bullets, and aim to deplete the opponent's health. The first to reach zero health loses.
-
Clone the repository: git clone https://github.com/techwithtim/PygameForBeginners.git
-
Navigate to the project directory: cd PygameForBeginners
-
Install dependencies: You need Python 3.x and Pygame installed. If you don’t have Pygame, install it using pip: pip install pygame
-
Run the game: Execute the main game file to start the game: python main.py
PygameForBeginners is a two-player game where each player controls a spaceship. The goal is to shoot bullets and reduce the opponent's health to zero. Players can move their spaceships around the screen and shoot bullets to hit the opposing spaceship.
Yellow Spaceship: Move left: A Move right: D Move up: W Move down: S Shoot: Left Control
Red Spaceship: Move left: Left Arrow Move right: Right Arrow Move up: Up Arrow Move down: Down Arrow Shoot: Right Control
Contributions are welcome! Feel free to suggest improvements or submit a pull request if you'd like to add features or fix bugs.