/asteroids

Fun mental math practice via flappy bird clone

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Asteroids

Flappy Bird with math.

sample.png

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.

Installation

  1. Have sdl2 and sdl2-tff installed. For Ubuntu: sudo apt install libsdl2-dev libsdl2-ttf-dev
  2. Install stack. For Ubuntu: sudo apt install haskell-stack
  3. Upgrade stack because the Ubuntu version is out of date: stack upgrade
  4. Clone the project: git clone https://gitlab.com/concavegit/asteroids.git
  5. Navigate to the project: cd asteroids
  6. Install to ~/.local/bin: stack install. The executable name is asteroids.