Making an Adventure Game - Part 2
- 2 minutes read - 317 wordsPreviously in this series: Part 1.
So, you should now have a text file that’s basically the source of the game, and also a bunch of images, which we may or may not use later.
Next up, install the tools. We’re going to use tweego, which is free software available for macOS, Linux, and Windows. So, go to the site and download it, then install it according to the documentation or otherwise. This should install tweego and all of the story formats. We’ll only need one, which is Sugarcube 2, but the default installer installs everything.
Sidebar: Unfortunately, tweego isn’t available via Homebrew, which is
my preferred way to install software. I installed on macOS, but I put it
into the ~/bin folder because I have a few things in there already.
This page may help people on macOS or Linux install
it.
Once it’s installed, you should be able to use it like this:
tweego --list-formatsThat will show you information on the formats installed with tweego. There should a line which says something like this:
>sugarcube-2 SugarCube (2.30.0)You may have a different number in brackets - don’t worry if you do, that’s fine. Only worry if you don’t have a line that says “sugarcube-2”, because we’ll need that later.
Now, you can download or clone the git repo from GitHub. Inside the repo, you should see a folder called “example1”. You don’t need to go into that folder, stay at the root of the repo (where the README.md file is). Build the example file like this:
> tweego -o example1.html example1/This will cause tweego to look in the example1 folder (only), process
everything it finds in there, and create an output file called
“example1.html”. If you run that in your favourite browser, you’ll
see an adventure game!
So the tools work — now to start building the game for real!