tic2bar
v1.1.1
Published
Command-line application that uploads TIC-80 cartridges to IPFS and encodes url into barcodes & QR Codes
Downloads
19
Maintainers
Readme
tic2bar.js
About
This command-line application uploads TIC-80 cartridges to IPFS and encodes the url into barcodes or QR codes (default) for distribution.
It's also able to decode them back and download the cartridges from IPFS.
It uploads them to IPFS through the INFURA gateway
and stores the hash of the upload in the barcodes
or just the url of the cartridge in QR Codes.
QR Codes can be decoded with any QR Scanner, but I've built one in this application for convenience's sake.
I took inspiration from this video from MattKC.
Installation
> npm install --global tic2bar
Usage
> tic2bar
Examples
Config
You can change the encoding and decoding type in the config.json5 file.
/* encoder & decoder type: qr or 128 (code128 barcode) */
type: 'qr'
Dependencies
- "canvas": "^2.6.1",
- "ipfs-mini": "^1.1.5",
- "jsbarcode": "^3.11.0",
- "jshint": "^2.12.0",
- "json5": "^2.1.3",
- "node-qrdecode": "^1.0.3",
- "prompt-sync": "^4.2.0",
- "qrcode": "^1.4.4",
- "quagga": "^0.12.1"
TIC-80
TIC-80 is a open source fantasy computer for making, playing and sharing little games.
tic.computer
nesbox/TIC-80
Ending words
The application is very bare bones and more of an idea.
The project is as it stands very gimmicky and not that useful,
but i quite like the idea of storing TIC-80 cartridges in barcodes or QR codes
for distribution and i can only imagine what kinds of stuff you could pull of,
like scanning a barcode on mobile and playing it directly through some kind of app.
License
GPL-3.0 see LICENSE.md for details.
The word "QR Code" is registered trademark of: DENSO WAVE INCORPORATED