erkyrath / quixe

A Glulx VM interpreter written in Javascript
http://eblong.com/zarf/glulx/
MIT License
169 stars 33 forks source link

Interfacing quixe from JavaScript #50

Open mschatten opened 1 year ago

mschatten commented 1 year ago

Hello and thank you for this great interpreter :)

I am sorry if I am missing something, but I am unable to find a possibility to send user input to the interpreter and get a response back with JavaScript. I have tried to search for suitable workarounds (e.g. manipulating DOM and sending keypress events; trying to find functions in your code similar to submit_line_input that I could use etc.) but to no avail for now.

What I would like to do is to create an IF (using Inform) and your interpreter that has buttons for usual commands (like inventory or take etc.). Is it possible to call some function from quixe/glkote to do this?

Best regards