Hello! I'm new to Bitsy and was very interested in Odd Hour's Bitsy Museum Hack that allowed you to nest multiple bitsy files into one single bitsy index file (essentially making a hub world that allows you to travel to and play multiple different bitsy .html files. At the time of writing this post (April 2023) the hack unfortunately no longer worked with the latest version of Bitsy. I posted in the Bitsy Forums asking if anyone had attempted more recently to make it work, and Adam Ledoux was kind enough to reply with a solution that works with the current version of Bitsy. This is a tutorial I've put together for the Bitsy Museum Hack 2.0 based on Odd Hour's original tutorial and Adam's edits to that tutorial so it's all in one place!
In each of the showcased games, locate the following in the code (you can do this by right clicking the HTML files and opening in notepad on PC, then using edit>find) :
// clean up state if the game is ending if (isGameOver) { bitsy.log("game over"); reset_cur_game(); }
And replace that block of code with this:
/* BITSY MUSEUM HACK: instead of reseting on ending it takes player back to the museum also removes need to click button to reset */ if (isGameOver) { window.open("index.html", "_self"); }
Then in the Museum (index.html), locate this code:
if (end) { startEndingDialog(end); }
and replace it with this:
if (end) { window.open(dialog[end.id].src + ".html", "_self"); }
That should be it! Now when you open your index.html file, the endings you places will open the corresponding bitsy files, and when you finish those games, it will take you back to the index.html file.
Did you like this post? Tell us