agentcox / glknode

Interactive fiction NodeJS Express app with cheapglk backend, runs .ulx text adventures with POST and GET for I/O

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glknode

Interactive fiction NodeJS Express app with cheapglk and glulxe backend, runs .ulx text adventures with POST and GET for I/O

Building

cd cheapglk
make
cd ../glulxe
make
cd ..
npm install

Running

node server.js

Communicating from a remote client

To get the last output:

curl -X GET http://localhost:8081

To send a command (ex. "look at stream"):

curl -X POST -H "Content-Type: application/json" -d '{"command":"look at stream"}' http://localhost:8081

You must GET after you POST in order to see the revised output from the GLULXE engine.

About

Interactive fiction NodeJS Express app with cheapglk backend, runs .ulx text adventures with POST and GET for I/O

License:MIT License


Languages

Language:C 91.0%Language:Python 6.5%Language:Objective-C 2.0%Language:Makefile 0.3%Language:JavaScript 0.2%