Skip to content
/ fireball Public

Fireball is a simple terminal-based game implemented in C++ using the ncurses library. The player controls a widget that can move left and right to shoot bullets at incoming boxes. The goal is to hit all the boxes and avoid letting any box touch the widget.

Notifications You must be signed in to change notification settings

psidh/fireball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Fireball Game

Fireball is a simple terminal-based game implemented in C++ using the ncurses library. The player controls a widget that can move left and right to shoot bullets at incoming boxes. The goal is to hit all the boxes and avoid letting any box touch the widget.

Features

  • Movable Widget: Move the widget left and right using arrow keys.
  • Shooting Mechanism: Shoot bullets using the spacebar.
  • Infinite Boxes: Boxes fall from the top of the screen and must be hit by bullets.
  • Score Tracking: The score is incremented with each box hit.
  • Game Over: The game ends if a box touches the widget.

Requirements

  • C++ compiler (e.g., g++)
  • ncurses library

Installation

Clone the Repository

git clone https://github.com/psidh/Games-CPP
cd fireball

Install ncurses (macOS)

If you are using macOS, you can install ncurses using Homebrew:

brew install ncurses

Compile the Code

Use the following command to compile the code:

g++ -std=c++11 main.cpp -o main -lncurses

Run the Game

Execute the compiled program:

./main

Controls

  • Arrow Keys: Move the widget left and right.
  • Spacebar: Shoot bullets.

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have improvements or bug fixes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • This game uses the ncurses library for terminal handling.
  • Thanks to the open-source community for their valuable tools and libraries.

About

Fireball is a simple terminal-based game implemented in C++ using the ncurses library. The player controls a widget that can move left and right to shoot bullets at incoming boxes. The goal is to hit all the boxes and avoid letting any box touch the widget.

Topics

Resources

Stars

Watchers

Forks

Languages