Geen omschrijving

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

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