HTTP+JSON API hosted inside the 1993 DOOM engine!
An HTTP + JSON API hosted inside the 1993 DOOM engine!
RESTful-DOOM is a version of Doom which hosts a RESTful API! The API allows you to query and manipulate various game objects with standard HTTP requests as the game runs.
There were a few challenges:
RESTFul-DOOM is built on top of the awesome Chocolate Doom project. I like this project because it aims to stick as close to the original experience as possible, while making it easy to compile and run on modern systems. This was only possible by building on top of their hard work!
http://1amstudios.com/2017/08/01/restful-doom/
Takes care of building and configuring dependencies like SDL. Uses chocpkg.
./configure-and-build.sh
Run make
from the src (or root) directory. src/restful-doom
will be created if the compile succeeds.
The DOOM engine is open source, but assets (art, maps etc) are not. You'll need to download an appropriate WAD file separately.
To run restful-doom on port 6666:
src/restful-doom -iwad <path/to/doom1.wad> -apiport 6666 ...
chocolate-doom team
cJSON - JSON parsing / generation
yuarel - URL parsing