I’m not sure who’s aware of it (I certainly wasn’t), but the tweego compiler actually works just fine on Android. I’ve been able to write and compile Twine games right on my phone using a text editor and tweego on the command line.
-
Grab Termuxfrom the Play store. It’s a Linux terminal for Android (since Android is just a flavor of Linux). It doesn’t require root or anything.
-
To install tweego, just type the command
pkg install tweego
into termux. This will download and install tweego. It will now be added to Android’s search path so you can execute thetweego
command from anywhere. -
Next you’ll need a copy of the
storyformats
folder. Go grab one of the tweego releases from the official site. It doesn’t matter which since we only want thestoryformats
folder. Extract it and copy thestoryformats
folder to your project directory. If your device doesn’t have a zip extractor app, you can install Rar, the official Android port of Rar/Winrar on desktop, which also does zip archives. -
Now navigate to your project folder in Termux. For those not familiar with navigating directories from the command line:
-
ls
lists the contents of the directory. Subdirectories will be listed in a purplish color. -
cd <directory>
changes to that directory. -
cd ..
backs out one directory.
-
-
That’s it. You should now be able to compile your game with something like
tweego story.tw -o story.html
.
Edit: Lots of edits thanks to @SpaceHobo 's help!