Skip to content

SungHong96/PygameForBeginners

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PygameForBeginners

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.

Table of Contents

Installation

  1. Clone the repository: git clone https://github.com/techwithtim/PygameForBeginners.git

  2. Navigate to the project directory: cd PygameForBeginners

  3. Install dependencies: You need Python 3.x and Pygame installed. If you don’t have Pygame, install it using pip: pip install pygame

  4. Run the game: Execute the main game file to start the game: python main.py

Gameplay

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.

Controls

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

Contributing

Contributions are welcome! Feel free to suggest improvements or submit a pull request if you'd like to add features or fix bugs.

About

A simple 2D python game designed to teach you the pygame module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%