README fix, improvements.

master
twetzel59 2017-06-11 17:52:31 -04:00
parent ebf3da99fb
commit 5f74dc14ec
4 changed files with 9 additions and 4 deletions

View File

@ -100,7 +100,7 @@ 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 but requires a compiled DLL so it can perform the terrain generation just like
the client. the client.
gcc -std=c99 -O3 -fPIC -shared -o world -I src -I deps/noise deps/noise/noise.c src/world.c gcc -std=c99 -O3 -fPIC -shared -o world -I src -I deps/noise deps/noise/noise.c src/worldgen/*
python server.py [HOST [PORT]] python server.py [HOST [PORT]]
### Controls ### Controls

2
deps/noise/noise.c vendored
View File

@ -1,4 +1,6 @@
/* /*
https://github.com/fogleman/Craft
noise.h and noise.c are derived from this project: noise.h and noise.c are derived from this project:
https://github.com/caseman/noise https://github.com/caseman/noise

3
deps/noise/noise.h vendored
View File

@ -1,4 +1,7 @@
/* /*
These files are from Craft:
https://github.com/fogleman/Craft
noise.h and noise.c are derived from this project: noise.h and noise.c are derived from this project:
https://github.com/caseman/noise https://github.com/caseman/noise

View File

@ -27,9 +27,9 @@ typedef union {
} MapEntry; } MapEntry;
typedef struct { typedef struct {
int dx; short dx;
int dy; short dy;
int dz; short dz;
unsigned int mask; unsigned int mask;
unsigned int size; unsigned int size;
MapEntry *data; MapEntry *data;