@hackage LambdaHack0.6.0.0

A game engine library for roguelike dungeon crawlers

  • Installation

  • Tested Compilers

  • Dependencies (32)

  • Dependents (3)

    @hackage/SpacePrivateers, @hackage/acme-everything, @hackage/Allure
  • Package Flags

      vty
       (off by default)

      switch to the vty frontend

      curses
       (off by default)

      switch to the curses frontend (not fully supported)

      gtk
       (off by default)

      switch to the GTK frontend

      sdl
       (off by default)

      switch to the SDL2 frontend

      with_expensive_assertions
       (off by default)

      turn on expensive assertions of well-tested code

      release
       (on by default)

      prepare for a release (expose internal functions and types, etc.)

LambdaHack is a Haskell game engine library for roguelike games of arbitrary theme, size and complexity, packaged together with a little example dungeon crawler. Try out the browser version of the LambdaHack sample game at https://lambdahack.github.io (It runs fastest on Chrome. Keyboard commands and savefiles are supported only on recent enough versions of browsers. Mouse should work everywhere.)

When completed, the engine will let you specify content to be procedurally generated, define the AI behaviour on top of the generic content-independent rules and compile a ready-to-play game binary, using either the supplied or a custom-made main loop. Several frontends are available (SDL2 is the default for desktop and there is a Javascript browser frontend) and many other generic engine components are easily overridden, but the fundamental source of flexibility lies in the strict and type-safe separation of code from the content and of clients (human and AI-controlled) from the server.

Please see the changelog file for recent improvements and the issue tracker for short-term plans. Long term vision revolves around procedural content generation and includes in-game content creation, auto-balancing and persistent content modification based on player behaviour. Contributions are welcome.

Games known to use the LambdaHack library:

Note: All modules in this library are kept visible, to let games override and reuse them. OTOH, to reflect that some modules are implementation details relative to others, the source code adheres to the following convention. If a module has the same name as a directory, the module is the exclusive interface to the directory. No references to the modules in the directory are allowed except from the interface module. This policy is only binding when developing the library --- library users are free to access any modules, since the library authors are in no position to guess their particular needs.