slowbox-cartridge-builder
v0.0.1
Published
Use this cli utility to stitch together your game code and graphics into a slowbox cartridge file!
Downloads
4
Readme
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-builder
This 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/outputpath
options
--gfx
path to your png file which will be converted to JS and added to the cartridge--code
path to the js code for your game-o
output 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