/flappy-bird-terminal-game

Flappy bird with True Colour in your terminal!

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Flappy Bird Terminal Game

Table of contents

Overview

This is a program where you can play Flappy Bird in your terminal. The program uses ASCII characters to represent light and dark, and True Colour for colour.

Examples

Screenshots of Terminal

> The game shown in the terminal

Screenshot

> Beginning a game

Screenshot

Technologies

  • Python 3.8
  • Json
    • for storing the users' top score of all time
  • keyboard 0.13
    • for getting input without halting the program
    • note this requires root permissions
  • Ansi Escape Sequences
    • for converting RGB colour to colour representable in terminals
    • This program uses True Colour

Setup

To run this project, install the requirements and then run the program:

pip3 install -r requirements
sudo python convert.py

Notice the program requires root permissions because of the keyboard library

Limitations

  • True Colour is not supported on all terminals
  • keyboard requires root access which objectively seems pretty sketchy :)
    • note this is because input() halts the program so it would not be possible to load the next frame if nothing is inputted
  • Program always has one hundred columns and 10 rows regardless of window size

License

Liscensed under the GNU General Public License v3.0