Нема описа

darkrose f426115771 content*.c пре 8 година
data e1f55ca9e6 initial commit пре 8 година
doc e1f55ca9e6 initial commit пре 8 година
inc f426115771 content*.c пре 8 година
src f426115771 content*.c пре 8 година
.gitignore 7cd4786d01 intl.c пре 8 година
CHANGELOG e1f55ca9e6 initial commit пре 8 година
LICENSE e1f55ca9e6 initial commit пре 8 година
Makefile.base 0a16af9573 start of sys console, and utf8 support пре 8 година
Makefile.linux e8c4b23d8d config.c пре 8 година
Makefile.posixinstall d1b2d8a110 mostly finish path.c maybe пре 8 година
Makefile.sources f426115771 content*.c пре 8 година
README 640ed94431 update readme пре 8 година

README

Voxelands - rewritten in C

What to do with this repo:

clone it
pick a cpp file from the main repo
rewrite that file in C(89)
commit it here

if something needs a bit of boilerplate, darkrose probably already has it - ask

libs included here already:

array.h - gives dynamic arrays
crypto.h - some some basic hashes, base64, etc
file.h - interact with files as memory buffers, use this to load/read/write/save files, also useful for replacing stream buffers in cpp
list.h - linked list code, any struct with the four prev/next/first/last pointers can use this
nvp.h - name/value pair, basic hash table on top of a linked list, use for config, or to replace cpp std::map
path.h - path resolution, use this to get the path of a file
thread.h - threads and mutexes, can safely lock a mutex twice from the same thread without locking up

common.h - includes some 3D maths, logging, and config functions, as well as some string functions (including cross-arch strdup)
- also has some macros for exposing functions in headers
- and some common/useful structs (vectors, positions, colours, quaternions, rectangles, collision boxes, etc)

some todo:
collision.c is waiting on content*.c/h for getting block data
config.c is waiting on command parsing
log.c is waiting on ui and in-game console
Makefile.mingw-cross/.bsd/other-platform need writting
crypto needs sha1