Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic Linux instructions #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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.
Expand Down