I suggest to look into <a href="https://ifcomp.org/" rel="nofollow">https://ifcomp.org/</a> - the annual interactive fiction competition is running for 25 years now and there are some great games and resources over there.
Ask HN: what's a good JS (browser focused) text adventure engine?
I see me making a text adventure (adding one mini chapter) each day as a good lockdown project.<p>Note: I might call it "Everything is better in quarantine." The goal would be to (not) go mad.
I like this, very creative!<p>The code generation looks interesting. I'll have to take another look later; can it not be done with the preprocessor?
This programmer, Mr. Ruud Helderman, is like Cool McCool, "Danger is my business!". For example, the parser, function matchParam:<p><pre><code> OBJECT *obj;
par->tag = src;
par->distance = *src == '\0' ? distNoObjectSpecified : distUnknownObject;
forEachObject(obj)
...
</code></pre>
The initialization of the obj variable received an obliviate spell.<p>Also function parseAndExecute (). The way he deal with invalid input is, epic:<p><pre><code> static const COMMAND commands[] =
{
{executeQuit , "quit"},
{executeLookAround, "look"},
...
}
for (cmd = commands; !matchCommand(input, cmd->pattern); cmd++);
return (*cmd->function)();</code></pre>