How to use Twine and SugarCube to create interactive adventure games

Twine is an interactive story generator. It uses HTML, CSS, and Javascript to create self-contained adventure games, in the spirit of classics like Zork and Colossal Cave. Since Twine is largely an amalgamation of several open technologies, it is flexible enough to do a lot of multimedia tricks, rendering games a lot more like HyperCard than you might normally expect from HTML.