Skip to content

jasonca2023/pygame

Repository files navigation

Collection of Pygame Games

A collection of fun and engaging games built with Pygame, a Python library designed for writing video games.

About

This repository contains a variety of games created using Pygame. Each game demonstrates different aspects of game development, from basic mechanics to more complex interactions and graphics.

Features

  • Multiple game projects in a single repository
  • Clean, well-organized code structure
  • Beginner-friendly implementations
  • Cross-platform compatibility (Windows, macOS, Linux)
  • Easy to learn and modify

Getting Started

Prerequisites

  • Python 3.7 or higher
  • pip (Python package manager)
  • Installation of pygame-ce (If you have pygame installed, uninstall pygame and install pygame-ce)
pip install pygame-ce

Installation

  1. Clone the repository:
git clone https://github.com/jasonca2023/pygame.git
cd pygame

Instructions

Breakout

  • Arrow keys to move
  • Spacebar to release ball

Flappy Bird

  • Spacebar to jump/restart game when dead
  • Left click to jump/restart game when dead

Monster Battle

  • Arrow keys for navigation of menu
  • Spacebar for menu selection

Pixel Runner

  • Spacebar to jump
  • Look inside game for further instruction

Platform

  • A and D for movement
  • Spacebar to jump
  • Left click for shooting

Pong

  • Up/Down arrow keys to move player

Pydew Valley

  • L_Shift to change tool type
  • R_Shift to change seed type
  • Spacebar to use tool
  • C to plant seed
  • Enter to interact with merchant
  • Up/Down arrow keys once in the merchant menu
  • Escape key to exit merchant menu

Python-Monsters

  • Spacebar to initiate/continue dialogue (only when near an NPC)
  • Walk to a designated door to enter a hospital/certain house/arenas
  • Spcaebar to use use different monster abilities (only in battle)
  • Up/Down arrow keys when in battle options (only in battle)
  • Enter to see monster index
  • Up/Down arrow keys once in monster index

Snake

  • Arrow keys for movement

Space Invaders

  • A and D for movement
  • Spacebar for shooting

Space Shooter

  • WASD for movement
  • Space for shooting

Super-Pirate-World

  • A and D for movement in both a map and the overworld
  • Spacebar for jump
  • Left click for attack
  • Enter to enter a map
  • Down arrow key to phase through horizontal platforms

Vampire Survivor

  • WASD for movement
  • Left click for shooting

Acknowledgements

Thank you so much Clear Code for creating the base code on which this entire project is based upon!

About

A learning-driven collection of Pygame projects that grows from basic arcade mechanics into increasingly complex 2D games with rich visuals, physics, and gameplay systems.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages