This project requires browser support for the SharedArrayBuffer feature. Unfortunately, that feature was removed from all browsers except for Google Chrome for Mac/Win/Linux due to security concerns that are currently only Google Chrome has resolved.
If you just want to play games, I've uploaded a copy to itch.io that you can use immediately. To run it yourself, download the code, then visit the
index.html file in the
bin directory in a browser. Due to browser security restrictions, you must run the code from a web server. If you just try to view the
index.html file on disk, it will not work.
Although the interpreter seems to work fine, it is intended as more of a proof of concept, so it's not particularly polished or fully featured. It is useful for the preservation of older TADS 2 games and to serve as an architectural guide for creating similar interpreters. The code has very rudimentary support for HTMLTADS, allowing for simple formatting and the showing of images (even those embedded in .GAM files). Full HTMLTADS support requires the writing of a late-1990s, early 2000s era browser engine, so having full fidelity HTMLTADS output is unlikely. Very basic support for game loading and saving has been implemented. It could use better handling of scrolling, animated scrolling effects, plus improved keyboard controls.
Automatically Starting a Game
If you are embedding the interpreter on a website and want it to automatically start a game when it loads up, simply supply the name of the game file as a hash in the URL, like
index.html#!file=game.gam to automatically start the game file
Running from Disk
Although it is not recommended, you can disable the security restrictions in your browser to let you run the
index.html interpreter in your browser from disk instead of needing to host in on a web page. To do so in Chrome, you must start Chrome with the
--allow-file-access-from-files command-line option. To do so in Safari, you must go into the Safari menu...Preferences...Advanced (tab)...Show Develop menu. Then you go to the Develop menu...Disable Local File Restrictions.
The code can be compiled by unzipping
tads_src-2516.zip into the
tads2 directory and then running the
tadsunixdirectory contains code that came from the source
bindirectory contains the main UI code and the web worker code which starts the C TADS2 interpreter code