initial commit

This commit is contained in:
Carly Ho 2024-03-03 15:59:50 -06:00
parent 2664e47a9c
commit 7162f07ac7
2 changed files with 15 additions and 1 deletions

View File

@ -2,6 +2,8 @@
This is a tool that lets you download a bunch of hack/plugin files for the game engine [Bitsy](https://ledoux.itch.io/bitsy) to extend the engine's functionality. It compiles them into a single js file that you can easily include in your game HTML file without making it, like, really really long.
If you're a programmer, think of it like bundler for ruby, or npm/yarn/etc. for node, or composer for php, or like, whatever else, except it doesn't do nested dependencies.
System Requirements:
* Some relatively recent version of PHP, because I could not tell you what happens if you use like PHP 4 or something. If you don't have a version of PHP, [look at this guide](https://www.php.net/manual/en/install.php).
@ -22,4 +24,16 @@ Anyway that's it. This is probably still a little arcane for non-programmers, po
If you really don't want to deal with a terminal interface, there's [Borksy](https://ayolland.itch.io/borksy)! This is just for power users and my highly specific desire to easily add and swap out hacks without having to generate a new game template.
## Future Improvements?
There's not like a roadmap or anything but there's a few things I do already have in mind.
* Better source management
* Option to minify hacks
* Option to keep hacks in separate files
* Version-based caching for speed?
* Better user/friendliness (interactive hacks.json file generation?)
## <3
If you get use out of this, obviously it's free! But on account of I'm presently freelance I appreciate tips, either via itch.io purchase or via [ko-fi](https://ko-fi.com/veryroundbird).

View File

@ -6,7 +6,7 @@ $hacks_file = file_get_contents('hacks.json');
$time_start = microtime(true);
if (!$hacks_file) {
echo "hacks.json file not found. creating file.";
// create the hacks file
file_put_contents('hacks.json', '{"sources": ["seleb/bitsy-hacks/dist"],"local": "hacks","hacks": []}');
$hacks_file = file_get_contents('hacks.json');
}