Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PROGRESS LOG 1/10

Hey gang! This week I was mostly offline on account of  being on holiday w my boyfriend, but I took my notebook & wrote the whole next scene :) 

So now my word count is 2.4k, which is pretty exciting! I think I'm almost done with the draft of the main story - just gotta write the ending now.

I've also decided to put in an "alternate route" for the story to go - basically the first time you play it, the story will go one way (Route A). The second time you play it, the story will go another way (Route B). The way I've been able to do this is through browser cookies - "saving" your game in Twine creates a cookie in the player's browser. "Loading" your game is just reading that cookie. So when the player is at the fork in the routes, I just have to check if a specific "save file" exists. If it does, I send the player down Route B - if it doesn't, they go down Route A. At the very end of Route A, I create the specific "save file" - this way, the next time they play it, they'll see Route B.

Code:

First you check if the save file exists:


And then you create the save file at the end of Route A:



The main difficulty I see with this is getting the player to play the whole game twice. I'm honestly not 100% sold on it, & it may not end up in the final game, but I thought I'd share with you guys how to do this kind of thing!