Bring back lost games with HTML5
A while back, Micro Studio had a pretty massive outage, and the end result was that around 1 - 2 Months worth of projects were lost. I was unfortunately lost around 3 games to this (Island Catcher, Feathered Frenzie, and Fungi Factory). I had then on Itch.io, but I had no idea how to get them back. Recently, I was seeing how Micro Studio compiles stuff, and noticed, it kinda doesn't do that in the original sense. It adds a wrapper around some HTML, wraps it up with Javascript, and calls it a day.
Knowing this, your original code is not Lost! If you can get a hold of the .zip file that contains everything, you can do the following
Before you do this
Have an empty Micro Studio project, a .zip file that contains the lost project
Step 1
Extract the package into a normal readable/writable format, so we can salvage stuff
Step 2
Inside the folder, open the sprites folder, highlight all the sprites, and drag and drop it into your empty project. Please note if the sprite was an animation, it would be made into a singular sprite. Luckily, you can strip to animation in the sprites easily enough. Also do the exact same thing for the rest of the things, like assets, sounds, music, etc.
Step 3
In the base folder, locate the index.html and open it with a text editor. Once inside, scroll down bit until you see something along the lines of
window.addEventListener("load",function() {
window.player = new Player(function(event) {
if (event.name == "started") {
// signal that the game is started
}
else if (event.name == "log") {
// console.info(event.data) ;
}
}) ;
document.body.focus() ;
}) ;
</script><script id="code" type="text/x-microscript">
Right after this you will also see an empty function(). Highlight everything after that, until you reach a the end(). This marks the end of a source. Copy and paste the highlighted sections into a new source (names don't matter for now). You will also see an init update draw section, this would go into the main source.
Step 4
Rinse and repeat for the rest of the sources until you run out of code to do with.Then you should have a working Micro Studio project that was recovered from an HTML5 zip folder.
I don't know why it took me so long to realize this, I should have realized this a while ago, but whatever, I'll be releasing some of my "lost" games, stay tuned.

