Hexdera is a simple multiplayer hex-grid game built with Elm and the Lamdera framework.
The project is based on:
- elm-hex-grid - my fork updated for compatibility with Elm 0.19 (original project: danneu/elm-hex-grid)
- It provides interactive hexagonal grid with features like shortest paths or fog of war
- Lamdera example chat app
- It provides multiplayer architecture with real-time frontend/backend synchronization
You can try the game online here: Hexdera Live Demo
Install dependencies:
npm installMost tasks can be performed through the lamdera CLI (instead of e.g. elm). To see all available commands:
lamderaFor the most useful options, you can also use the helper scripts defined in package.json:
npm run <command>Available commands:
reset(orlamdera reset) to reset application's persistent statedev(orlamdera live) to run locallybuild(orlamdera make src/Env.elm src/Types.elm src/Backend.elm src/Frontend.elm) to build the app- Run
lamder make --optimize ...to build with optimizations
- Run
deploy(orlamdera deploy) to deploy the app- See the docs for more information, or simply follow instructions of the
deploycommand
- See the docs for more information, or simply follow instructions of the
format:elm(orlamdera format --yes ./src/ ./external/hex-grid/ ./tests/) to format the code- Run command
format:prettierto format the README, or justformatto format both
- Run command
testto run the tests