Skip to content

coderboe/FlyMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fly Man Game with One Button

A simple Fly Man Game created using Python and Pygame.

Overview

This game challenges the player to navigate a man through gaps between moving pipes by pressing the spacebar to flap. The game gradually becomes more difficult by increasing pipe speed and narrowing gaps. Features include:

  • Start menu with options: Start, Help, About, Exit
  • In-game exit button to return to the menu
  • Score and high score tracking with sound effects
  • Gradient background and simple graphics

Screenshots

image


πŸ“‚ Project Structure

  • FlyMan
  • β”œβ”€β”€ assets/ # Images and sounds for the game
  • β”‚ β”œβ”€β”€ flyMan_fly.png # Bird sprite image
  • β”‚ β”œβ”€β”€ flap.wav # Flap sound effect
  • β”‚ β”œβ”€β”€ score.wav # Score sound effect
  • β”‚ └── hit.wav # Hit sound effect
  • β”œβ”€β”€ game.py # Main Python game script
  • β”œβ”€β”€ highscore.txt # File to store high score (auto-generated)
  • β”œβ”€β”€ LICENSE # License file (MIT License)
  • └── README.md # This filefor documentation

Controls

  • Spacebar: Make the man flap (jump upwards)
  • R: Restart the game after a game over
  • Mouse Click: Use buttons in menu and exit button in-game
  • ESC: Return to menu from Help or About screens

Requirements

  • Python 3.x
  • Pygame library

Installation

  1. Clone the repository:

    git clone https://github.com/coderboe/FlyMan.git

    And then:

    cd FlyMan
    
  2. Install the required dependencies:

    pip install pygame
  3. Run the game:

    python game.py

πŸ“Œ Purpose

  • This project was created for school projects and usage of Pygame, a Python library for create One Button Game applications.

License

This project is licensed under the MIT License.

About

One Button Game using python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages