"Time Warp demo" by Wade Clarke.
The release number is 2.
[- Look at the code of this demo project to see one way to include Time Warp in your own project. The key bit of code is the line 'run time warp'. Put this action in your code at the moment you want Time Warp to start. When the player exits Time Warp, your host game will resume at the very next line of code.
- Please note that Time Warp is released under a Creative Commons licence: Attribution 4.0 International (CC BY 4.0). Summarily this licence allows users to distribute, remix and build upon a work, and create Derivative Works – even for commercial use – provided they credit the original creator/s (and any other nominated parties. *** For further details of this licence and how to attribute me, please check the documentation of the Time Warp extension itself.]
Include version 2 of Time Warp by Wade Clarke.
Release along with an interpreter.
Release along with a website.
Release along with the source text.
Old Study is a room. "[first time][line break]( Time Warp is a CYOA I wrote on the Apple II+ when I was 11 or 12. I turned the game into an Inform 7 extension and included it as an easter egg in Leadlight Gamma in 2014.[paragraph break]The game is self-contained, so it can be added to any I7 project by just including the Time Warp extension then adding a hook to it from your source with the phrase 'run time warp'.[paragraph break]This demo presents the game via the prop of an old computer. Just X COMPUTER. )[paragraph break]-----------------------------------------------[paragraph break][only]You're in a dusty study. You see a [weird old computer] here."
a weird old computer is a fixed in place thing in study. Understand "screen", "computer screen" as computer.
instead of examining computer (this is the check if player wants to play TIMEWARP rule):
say "There's something on the screen. The heading [']TIMEWARP['] is spelled out in blocky green letters. Some strange, old computer program, perhaps?";
let answer be the TIMEyesno_answer_with_question "[line break]Will you try out TIMEWARP? [bold type] (Y/N)[roman type][line break]";
if answer is "NO":
say "Okay.";
otherwise:
say "Okay, here goes.";
run time warp; [HERE IS THE KEY LINE!]
rule succeeds;