Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Blogging my game?

When the blurb for Twine says that because games are saved as html files and can be uploaded anywhere, what does this mean exactly?

Could I, for instance, use a blogging platform and provide a link which would launch the game directly from there, rather than simply linking to an external host?

I guess for this to happen I'd need somewhere that allows the uploading of file types other than images, and I admit I can't think of any.

I'm asking this because all the places I've visited that host IF games (IFDB, textadventures.co.uk) are... let's just say less than pretty, and I like the idea of having some control over how my launch screen looks.

Other than having my own webspace, is there any scope for doing this somehow?

Comments

  • You can upload Twine games to any kind of web hosting service, for example a WordPress blog. Or for a dedicated game hosting website, try itch.io -- it allows a wide range of customization very easily.
  • Really? I thought stuff like blogs only allowed images.

    I'm keen on the WordPress route, but can I just confirm that you are understanding what I mean. I don't merely want to provide an outside link to my game, but a page with maybe an image and blurb about the game, then a 'play online' link which when pressed launches the game, right there in the browser.

    I've asked this before when you recommended Philome to someone for hosting their game, but if I used WordPress could I just zip the whole thing up - including sounds and images - and upload that, or would I have to host the additional files elsewhere?
  • Ummm.... you've never seen a WordPress-powered blog? They're like 1 in 4 websites. Pages with text, images and links to other files is pretty much what they're designed to host. And you can just upload media directly -- you only need zip archives for really unusual files.

    In fact, what you're describing -- zipping the whole thing up before uploading -- is how you do it on itch.io, but that's because you're supposed to upload your game as a whole there. And the service still unpacks them for you behind the scenes so players can load and play the game in their browsers.

    You're probably thinking of image boards like Pinboard or Instagram. Blogs are a different beast.
  • edited November 2016
    No, I've blogged a fair bit, but I've only ever used blogger.com and I don't ever remember an option to upload anything other than images on their platform.

    Back to WordPress, though. You say I can just upload the index.html (as I've called the game file), MP3s and any image files individually, but would I then not need to change their file paths in the StoryInit passage?

    As the moment they're just sat alongside the game file in a folder on my desktop, so when testing, the file path only needs to be: filename.mp3

    But if I uploaded everything to WordPress, wouldn't I need to change that?
  • No, you wouldn't. The whole point of relative paths is that they only depend on the relative position of the files, wherever they may be. So whether your files are next to each other on your desktop or next to each other on a server, the paths will work just the same.

    And yeah, some other blogging platforms, like Tumblr, only let you upload images. WordPress is different.
  • edited November 2016
    Brill! Thanks a lot.

    I had a good luck at some of the text adventure games on that itch.io site, but I'm not keen on how they force all their own stuff on the game page. There's an option to go full screen which removes it all, but the default is that your game plays in a window that sits above all their stuff, so I think WordPress is the way for me.

    [edit] Sorry, to drag this one on but a quick search on WordPress makes me wonder if I've misunderstood. In able to host my game on wordpress, would I have to go down the route where I need to download WordPress? My thinking was that I just set up a free blog and do it that way.
  • edited November 2016
    Well that was a waste of time.

    felixp7, I can only assume you're referring to some Premium version of WordPress. I've just spent over an hour setting up a WordPress blog and tried uploading my game's html file as a tester, and was told categorically that WordPress doesn't support such files.
  • Admittedly my own WordPress blog is self-hosted -- the account over on wordpress.com is just for reading. Apologies, I didn't expect them to be that stingy. But here's a thing you can do: host your games on itch.io and embed them into whatever blog you like. That way you get just the game.
  • edited November 2016
    Right, so itch.io provide an embed code for your game? How would that manifest itself if I post the embed code into a WordPress post?

    I suppose I could test it with one of the games.

    Thanks. It looks as though the option to do what I really want are limited.

    [EDIT] That's no good either. Embedding just provides a link back to itch.io.
  • There's an option to actually embed it. Go to the Distribute tab and choose "Embed game" instead of Widget.
  • Whoa! Damn that works!

    I just need to see if I can change the wording of the link to 'Play'.

    Thank you.
  • Arrghh! I finally finish my game and can't get the embed code to work like it did during my testing.

    When I was testing this whole blogging my game thing, the embed code allowed me to create a link which said 'Play' which would open the game in the browser when clicked.

    Now when I use the code, it displays/embeds the game below my blog post and I have no way of changing the link to say 'Play'.

    Have they changed the way embedding works??
  • Found a workaround. There's another link which I can change the text of. This also opens the game in the browser.
Sign In or Register to comment.