Flappy Bird with math.
The goal is to fly through the asteroid with the answer to the presented multiplication problem. The controls are simple: hit the space bar to go up. When the game is over, hit the space bar again to restart.
- Have sdl2 and sdl2-tff installed. For Ubuntu:
sudo apt install libsdl2-dev libsdl2-ttf-dev
- Install stack. For Ubuntu:
sudo apt install haskell-stack
- Upgrade stack because the Ubuntu version is out of date:
stack upgrade
- Clone the project:
git clone https://gitlab.com/concavegit/asteroids.git
- Navigate to the project:
cd asteroids
- Install to
~/.local/bin
:stack install
. The executable name isasteroids
.