Skip to content

Commit

Permalink
Merge pull request fogleman#273 from Gideon357/readme-update
Browse files Browse the repository at this point in the history
Update README.md - Formatting & Multiplayer
  • Loading branch information
fogleman committed Feb 24, 2021
2 parents 0b29b8d + 72f051b commit d6888a6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,30 @@ terminal.

### Multiplayer

Register for an account!

https://craft.michaelfogleman.com/
After many years, craft.michaelfogleman.com has been taken down. See the [Server](#server) section for info on self-hosting.

#### Client

You can connect to a server with command line arguments...

./craft craft.michaelfogleman.com
```bash
./craft [HOST [PORT]]
```
Or, with the "/online" command in the game itself.

/online craft.michaelfogleman.com
/online [HOST [PORT]]
#### Server
You can run your own server or connect to mine. The server is written in Python
but requires a compiled DLL so it can perform the terrain generation just like
the client.
gcc -std=c99 -O3 -fPIC -shared -o world -I src -I deps/noise deps/noise/noise.c src/world.c
python server.py [HOST [PORT]]
```bash
gcc -std=c99 -O3 -fPIC -shared -o world -I src -I deps/noise deps/noise/noise.c src/world.c
python server.py [HOST [PORT]]
```
### Controls
Expand Down

0 comments on commit d6888a6

Please sign in to comment.