npm i @bitsy/hecks
Last tested against Bitsy 8.4
Each script has a short “HOW TO USE” section included in the comments. For steps which say to
Copy-paste this script into a script tag after the bitsy source, open your exported bitsy game and scroll to the bottom of the file (at the time of writing, it looks like this):
</script> </head> <!-- DOCUMENT BODY --> <body onload='startExportedGame()'> <!-- GAME CANVAS --> <canvas id='game'></canvas> </body> </html>
then edit it to look like this:
</script> <script> // and then paste your code here! </script> </head> <!-- DOCUMENT BODY --> <body onload='startExportedGame()'> <!-- GAME CANVAS --> <canvas id='game'></canvas> </body> </html>
Can I import a hacked file back into the Bitsy editor?
Yes, but unfortunately only the gamedata will be imported, and the hacks will be lost. To edit a hacked game, it’s recommended that you keep a copy of the hacked html file, and copy-paste edited gamedata into it. If you need to do this a lot, there are a few tools available to speed up your workflow (e.g. bitsy-savior, Borksy, bitsy-boilerplate).
Some of these hack files are kinda long. Do I need to copy the whole thing?
Can I combine multiple hacks?
Yes, but there are known issues with specific combinations. If you’re having issues using multiple hacks, try testing them one at a time to make sure they’ve each been setup correctly.
It varies by hack and by fork. If something doesn’t work, try testing against a regular Bitsy game to make sure you’ve setup the hack correctly.
Bitsy HD in particular is a fairly old fork, and generally needs older versions of hacks.
No. Emulators function by re-implementing parts of the engine and/or browser into another environment, but the hacks rely heavily on how the engine is structured and how the browser handles
<script> tags. However, desktop projects which preserve the original engine/browser context (e.g. Electron, NW.js) can be used.
If your question isn’t covered here, it may be in the general Bitsy FAQ.
Bitsy and the hacks are generally not backwards-compatible: when Bitsy updates, it often breaks individual hacks. If you’re having issues with hacks after a Bitsy update, it’s possible they are out of date. Feel free to reach out for help or open an issue if you suspect this is the case.
If you are using an older version of Bitsy (or a fork based on an older version), you may require old versions of the hacks. Support is not guaranteed across versions, and old versions are not maintained, but some helpful points in history are listed below.