Lightweight, fast and easy 2D game library for Haskell
Haskell C C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cbits/firefly
examples
script
src
.ghci
.gitignore
LICENSE
README.markdown
Setup.hs
firefly.cabal

README.markdown

Firefly

Firefly is a Haskell 2D game library implemented as a thin but high-level layer over SDL and OpenGL.

It is meant to be lightweight, fast and easy. It is designed as a library, not as a framework, so you should be able to use it with pretty much anything.

We embrace the notion that Haskell is the world's finest imperative language and expose a very imperative API. However, it's very easy to add something more declarative (FRP in particular) on top of it.

Dependencies

Outside of Haskell, Firefly depends on:

  • FreeType 2, for font loading;
  • libpng, for image loading;
  • OpenGL, for fast graphics;
  • SDL_mixer, for loading and playing sounds;
  • SDL, for pretty much anything else.

It should relatively painless to install these on your operating system. On Ubuntu 12.04, the following command seems to work:

apt-get install libfreetype6-dev libgl1-mesa-dev libpng12-dev \
    libsdl1.2-dev libsdl-mixer1.2-dev

Missing functionality

If you think something is missing in this library, please create an issue on github.