/hsrl

Simple haskell roguelike

Primary LanguageHaskellMIT LicenseMIT

hsrl

hsrl

Simple roguelike implemented in Haskell (pending more creative name). Inspired by roguelikes like rogue and nethack.

Uses VTY for the terminal frontend and SDL2 for the graphics frontend.

There are Windows builds on the releases page. Download the hsrl.zip file, unzip it somewhere, and run the "hsrl" executable file.

Build

Stack is the supported way to build the game. You will also need the SDL2 library installed for the graphical (default) frontend and pkg-config if it isn't already installed on your system. After you have the proper dependencies, run stack build to build or stack run to build & run.

Mac installation:

brew install sdl2 pkg-config
curl -sSL https://get.haskellstack.org/ | sh
stack build

Ubuntu installation:

sudo apt-get install libsdl2-dev pkg-config
curl -sSL https://get.haskellstack.org/ | sh
stack build

If you would like the ability to run within a TTY (terminal) enable the vty build flag: stack build --flag hsrl:vty. Unfortunately, I don't think the vty library supports windows so if you want to run in a terminal you will have to build on Mac or Linux.

Run

stack exec hsrl

To run within a TTY (needs to be built with VTY support):

stack exec hsrl -- --tty