diff --git a/README.md b/README.md index f64aac1..77d43ab 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,19 @@ This is a [Chocolate Doom][1] WebAssembly port with WebSockets [support][4]. You need to install Emscripten and a few other tools first: -``` +```bash brew install emscripten brew install automake brew install sdl2 sdl2_mixer sdl2_net ``` +Linux users will need to install `emscripten` and then add emscripten to your PATH `export PATH=$PATH:/usr/lib/emscripten` + ## Compiling There are two scripts to facilitate compiling Wasm Doom: -``` +```bash ./scripts/clean.sh ./scripts/build.sh ``` @@ -25,13 +27,19 @@ There are two scripts to facilitate compiling Wasm Doom: Copy the shareware version of [doom1.wad][3] to [./src][9] (make sure it has the name doom1.wad) -Then: +Then start a web server in `src` directory using python: -``` +```bash cd src python -m SimpleHTTPServer ``` +or using PHP +```bash +cd src +php -e -S "localhost:8000" +``` + Then open your browser and point it to http://0.0.0.0:8000/ Doom should start (local mode, no network). Check [doom-workers][8] if you want to run multiplayer locally.