Skip to content

emergency000-lab/python-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dodge the Blocks! - Enhanced GUI Version

A fun pygame-based game where you dodge falling red blocks and score points!

Features

This enhanced version includes:

🎮 Main Menu

  • Welcome screen with game title and instructions
  • "Start Game" button to begin playing
  • "Quit" button to exit the game
  • Clear instructions on how to play

🎯 Gameplay

  • Smooth player controls using LEFT and RIGHT arrow keys
  • Falling red blocks to dodge
  • Real-time score tracking
  • Visual enhancements:
    • Player block with white outline
    • Score display with background panel
    • Pause hint in the corner

⏸️ Pause Menu

  • Press ESC during gameplay to pause
  • Semi-transparent overlay over the game
  • Options to:
    • Resume the game
    • Return to main menu

💥 Game Over Screen

  • Displays final score
  • Options to:
    • Play again (restart the game)
    • Return to main menu

How to Play

  1. Run the game:

    python3 app.py
  2. Controls:

    • LEFT ARROW: Move left
    • RIGHT ARROW: Move right
    • ESC: Pause/Resume game
    • MOUSE: Click buttons in menus
  3. Objective:

    • Dodge the falling red blocks
    • Each block that falls off the screen adds to your score
    • Game ends when you collide with a block

Requirements

  • Python 3.x
  • pygame

Install pygame:

pip install pygame

Screenshots

The game includes four main screens:

  1. Main Menu - Welcome screen with instructions
  2. Gameplay - Active game with score and controls
  3. Pause Menu - Pause overlay with options
  4. Game Over - Final score and restart options

Enhancements in this Version

  • ✅ State-based game management (Menu, Playing, Paused, Game Over)
  • ✅ Interactive buttons with hover effects
  • ✅ Professional-looking UI with multiple colors
  • ✅ Smooth transitions between game states
  • ✅ Pause functionality
  • ✅ Restart capability without closing the game
  • ✅ Enhanced visual design with outlines and backgrounds
  • ✅ In-game instructions and hints

Enjoy playing! 🎮

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages