Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

bitsy

a little engine for little games, worlds, and stories · By adam le doux

Does the Bitsy Museum Hack still work?

A topic by Marlowe Dobbe created Apr 03, 2023 Views: 782 Replies: 7
Viewing posts 1 to 5

Hello! I'm curious if the Bitsy Museum hack by odd-hours still works with the latest version of Bitsy?
https://odd-hours.itch.io/bitsy-museum-hack

I've tried to use it, and looked at the most recent posts about it (which are still from 2 years ago) and it seems like Bitsy's interface is different enough and the HTML files that get exported are different enough that this hack may no longer work.

Curious if anyone's tried it recently or has any tips on achieving the same thing (opening other bitsy files within bitsy files)
-Marlowe

Hi Marlowe - sorry for the late reply! - I just took a look at the Bitsy Museum Hack, and I was able to get it to work in the current version of Bitsy with a few tweaks to the Museum's instructions. Hope this helps!

Using the Bitsy Museum Hack with Bitsy v8.4

Follow the steps on the Bitsy Museum Hack page, but when you get to Step 3, when you need to hack the game code, do these replacements instead.

In each of the showcased games, locate the following in the code:

    // 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");
    }

And that's it - if you give this a try, let me know how it goes! :)

thank you so much for the reply! And thank you for taking the time to look into this and get it working!
I did just test it out and it appears to work great!
Our local gamedev community is all learning Bitsy together this month and some of us were really curious about making collaborative projects, so this is super exciting. :)

I've also posted a mashup tutorial of both Odd Hour's and yours (with credit!) so it's all in one place for folks to see. Hope that's alright!
https://itch.io/blog/515981/bitsy-museum-hack-20

(1 edit)

oh that's really helpful - thanks for sharing this Marlowe!

do you mind if I add a link to this on bitsy docs tutorials page? https://make.bitsy.org/docs/introduction/tutorial

please feel free!

thanks!

(1 edit)

hello. I have one question about museum hack - updated version. It assumes my "museum" is called index.html - is there a way to have custom name, lie museum.html ? thank you.  

Also it would be nice to have ability to make nested exits, like

probably its not possible to do such a thing with current set up, or?