0.0.1 • Published 8 years ago
slowbox-cartridge-builder v0.0.1
slowbox cartridge builder utility (sbcb)
Use this cli utility to stitch together your game code and graphics into a slowbox cartridge file!
Work in progress
This basically does the job for now, will need to add a few things like better error handling and compatibility and stuff.
For now, check out the examples! You can build them using this tool and then run them on your own slowbox machine!
requirements
node > 8.x
install
$ yarn global add slowbox-cartridge-builder
# or
$ npm i -g slowbox-cartridge-builderThis will install a global binary called slowbox-cartridge-builder and an alias with the name sbcb
usage
$ sbcb --gfx path/to/gfx.png --code path/to/gamecode.js -o cartridge/outputpathoptions
- --gfxpath to your png file which will be converted to JS and added to the cartridge
- --codepath to the js code for your game
- -ooutput where the cartridge will be built to
- -w(optional) watch the inputfile and rebuild cartridge on changes.
example
check out examples/simple-forest!
developing smallbox cartridges
TODO: document the API
0.0.1
8 years ago