Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoinCollector (Pygame)

CoinCollector is a simple Pygame-based 2D game where you move a robot, collect coins, avoid monsters, and try to reach the door. Monsters move randomly each turn, adding challenge to the game.

Controls

  • Arrow Keys – Move
  • F2 – New game
  • ESC – Quit

Game Rules

  • Collect all coins to win.
  • Reach the door after collecting all coins to finish the game.
  • Touching a monster ends the game.
  • Going to the door without all coins quits the game.

Installation

1. Clone the Module Directory

pip install pygame

2. Clone the Module Directory

git clone https://github.com/Yuxin29/CoinCollector.git
cd CoinCollector

3. Run the game

python src/coincollector.py

About

A 2D game implementing map handling, collision detection, collectible items, and game state management. This project provided practical experience with event-driven programming, real-time graphics rendering and update–render cycles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages