Hi everyone. I'm creating a game in Squiffy and would like to host it on my website created with Wix.
Did you use an iframe?
Has anyone done this successfully? Thanks
Well, you can just- link the game or get a downloadable file for the game- but other than that leave it to the experts cuz I have no idea.
Hello, again!
I've never fooled with Wix, and I am far from an expert, but. . .
I have put a Squiffy game in an iframe in a Quest game before. If you don't run into cross-site errors, the technique should be pretty much the same.
https://textadventures.co.uk/forum/quest/topic/y7hthcduyeubmixb7b5vtg/squiffy-in-a-quest-game-an-iframe-cheat
To do that, I just published a Squiffy game to this site, then used that url as the src
in my iframe (just like Mr. Dot's first suggestion: linking the game).
<iframe width="100%" height="344" src="http://media.textadventures.co.uk/games/4-UsOMnCN0qMfbNqms-18Q/index.html" frameborder="0" allowfullscreen></iframe>
If you can upload your own website files to Wix, you can probably put your Squiffy game in a folder named "squiffy_game" and do something like this (which is completely untested):
<iframe width="100%" height="344" src="./squiffy_game/index.html" frameborder="0" allowfullscreen></iframe>
It looks like using a link is allowed, and it's probably the easiest way to handle it:
https://support.wix.com/en/article/wix-editor-using-iframes-to-display-visible-content-on-your-site
Also, you might want to play with the height
of the iframe, but I warn in advance that doing so will probably drive you crazy.