*sigh*
[snip harsh me]
[snip sarcastic me]
There's two way to write an URL (you know what is an URL, right ? If you don't know, well, it's "a link"):
- the absolute form:
http://host.domain.ltd/directory/directory/file.extension
- the relative form:
directory/file.extension
The relative form works like any file directory structure (You know what it is and how it works, right ?).
How and when use one or the other ? It's simple:
- When the file is distant, therefore when it's located on another web site, you use the absolute form.
- When the file is local, therefore when it's located on the same web site, you use the relative form.
What does this mean in your case ? After all, you aren't making a web site, but a game...
Well, the thing is that you are making a web site...
It's what Twine do, it help you build a web site, but a particular web site, that will be a game, and that will be available locally on your computer and, more globally, the computer of anyone who download then play your game.
Therefore, the "how and when" above apply also to your game. "another web site" mean "another game", while "same web site" mean "your game".
So, what does is really mean in your case ?
It mean that you do not have to host your files (images, videos, and also HTML pages) anywhere.
You create a directory, that we will name "c:\my game" for this explanation.
In this directory, you create three new directories, "html", "images" and "videos". What mean that you now have:
In the first directory, therefore "c:\my game\html", you put the HTML pages.
In the second directory, therefore "c:\my game\images", you put the images.
In the third directory, therefore "c:\my game\videos", you put the videos.
Now, how to use all this ?
Well, by using the relative links.
If the page "index.html", that will starts your game, use an image named "welcome.jpg", you have this:
Therefore, the file "c:\my game\html\index.html" use the file "c:\my game\images\welcome.jpg".
Put them back to back:
"c:\my game\html\index.html"
"c:\my game\images\welcome.jpg"
There's a common point to both, they are in "c:\my game", it's the base of your site, that is, I remind it, your game. So, let's strip this part, we get :
"html\index.html"
"images\welcome.jpg"
This are the relative path to your files. And like for any directory structure, there's the special directory "..", that mean "go back from one level".
Therefore, seen from the "html" directory, your image is located in the "..\images" directory.
This mean that in your "index.html" file, when you write the
<a>
tag, or are asked the location of your image, you write "..\images\welcome.jpg".
It's the relative links to it.
And now what ?
Well, now that you have all your HTML pages in the "html" directory, all the images files in the "images" directory, and all the videos in the "videos" directory, and that you have changed all your links to be relative links, you use winzip/rar/7zip/whatever to compress the whole content of "c:\my game".
This archive will contain the HTML pages, the images and the videos. Congratulation, you can now release your game.
*sigh*