Skip to content

A game made with Haskell & Gloss. Explore the Haskell Dungeon - Hungeon.

License

Notifications You must be signed in to change notification settings

logiczsniper/Explore-Hungeon

Repository files navigation

Explore

Haskell game where you explore the Hungeon (Haskell Dungeon) - a randomly generated dungeon.

Gameplay

The player controls a flame sprite (WASD keys to move) which is animated (it flickers). The flame gradually shrinks in size as the screen gets darker proportionally. Reach an entrance and press E before your flame simmers out and darkness falls! Or just press Q to quit.

When the player reaches a door and enters, the flame is restored and darkness is lifted- however, the further into the game the player progresses the weaker your flame gets, giving you less and less time to reach the next entrance. As the maps are randomly generated, some may not have a door at all. If this is the case, press E for a free pass to the next randomly generated map.

While you venture further into the Hungeon, aptly themed music plays in the background. However, much to my own disappointment, I could not figure out how to play sound effects! Playing a Sample is an IO action and I would have to play (for example an 'enter door' effect) the sample inside the handleEvent function, which is pure! As such, you can only enjoy the background music due to the fact that I can load and begin looping the sample in the dirty main function.

Sources

Modules Used

  • Graphics.Gloss
  • Sound.ProtProteaAudio
  • System.Random

Tools Used

  • VScode
  • VIM
  • GIMP

Running

Download the file Explore-exe.exe and run!

About

A game made with Haskell & Gloss. Explore the Haskell Dungeon - Hungeon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published