Skip to content

leandroiohk/hydra-doom

 
 

Repository files navigation

Hydra Doom

Experiment of running Doom using a Cardano Hydra head.

Manual startup

This is using a forked version of doom-wasm, make sure to build it first and copy or symlink the build results:

cp ../doom-wasm/src/websockets-doom.js assets/websockets-doom.js
cp ../doom-wasm/src/websockets-doom.wasm assets/websockets-doom.wasm
cp ../doom-wasm/src/websockets-doom.wasm.map assets/websockets-doom.wasm.map

Also, you need to copy the shareware version of doom1.wad to ./assets:

curl https://distro.ibiblio.org/slitaz/sources/packages/d/doom1.wad -o assets/doom1.wad

The application requires connection to a hydra-control-plane which provides managed Hydra head instances provided as SERVER_URL in the .env file.

Then to build & run:

npm install
npm start

Integrated startup

There is a way to start all required processes using nix and process-compose:

nix run

Persistent sessions

If we want to keep using the same key and remote node configuration between runs, set the PERSISTENT_SESSION=true variable in the .env file before starting the dev web server.

Local Development

To run the project locally (using the POO integration), you need to set a CABINET_KEY in the .env file. For example:

CABIENT_KEY=A610911D628D5475EFFBA5E80ED09D1260B49E6935C40E4195C4D4AA17963CBF

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.2%
  • TypeScript 13.2%
  • HTML 13.2%
  • Nix 6.9%
  • CSS 5.3%
  • Just 0.2%