I'm pretty sure that the text/html mode in TW prevents javascript from
running.
Personally I'm a little wary of allowing a big chunk of javascript run on
my machine, though *I think* it should be sandboxed.
But you might try:
<iframe srcdoc={{mygame}} ></iframe>
where "mygame" is a tiddler containing your Twine game.
The srcdoc attribute is not supported on Microsoft (Edge, IE) browsers
according to the sources I found.
Another variation of this requires you to translate the tiddler via urlencode.
The only tool for that in TW is a url encoding
filter. Kind of suspect that that would break.
On Thursday, March 21, 2019 at 10:19:26 AM UTC-7, Stefan Pfister wrote:
>
> Hi folks,
>
> I tried to import a file of a twine game in the twine output format into
> tw5. But the game is not running. Only the black background is displaying
> in the tiddler
> It is running directly as a html-file in the browser.
>
> Is there a way to store twine output files in a tw5-wiki in order to play
> them directly?
>
> Thanks,
>
> Stefan
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/976b38e5-8adb-4e8c-aa98-0f83bd703fe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.