Hi! I’m starting out with Twee after experimenting with Twine for a long time.
I’m using VSCode with the Twee Extension and Live Server, but I’m a bit confused about the ideal folder structure for the project, and where to output the html file (using TweeGo) relative to those folders.
I plan on having images and sound effects, as well as various .tw files, of course.
Any insight or suggestions would be greatly appreciated!
So you essentially want a source folder that Tweego can find, with the relevant .tw / .js / .css files (you can have subfolders in there, no problem), and an output location. Both these locations should be indicated in the command when you tell Tweego to compile.
I have a Tweego folder where everything is already structured, as in input+tweego+output (it only has the SugarCube format, but you can add to it in the relevant folder there).
Interesting, thank you! I’m still a bit confused based on the info you sent.
In your folder screenshots, where do you keep your .tw files? (Beyond Base and Widget)
And can you show an example path to link to media?
Thank you!
Yes, “elements” is a folder where I gather media I may or may not use. If something is changed or removed from the game I throw it in there just to get it out of the way but also keep it all together in case I change my mind. Kind of a local project resource folder/trash bin. Like I’ll keep the full music track in elements and then if I chop it into pieces for the game those go into “media” but the entire track is in elements.
You actually do need to duplicate your in-use tracks in the “media” folder so the html file can access them with your relative urls. My “elements” folder is just for bits I don’t yet want to delete or haven’t been processed to use in the game yet.