Coder Social home page Coder Social logo

sleepycharlyy / tic2bar.js Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 28.58 MB

Command-line application that uploads TIC-80 cartridges to IPFS and encodes url into barcodes & QR Codes

Home Page: https://sleepycharlyy.itch.io/tic2bar

License: GNU General Public License v3.0

JavaScript 100.00%
tic-80 tic80 javascript fantasy-console fantasy-computer tiny retro node-js barcode bar-code

tic2bar.js's Introduction

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.

itch.io

Installation

> npm install --global tic2bar

Usage

> tic2bar

Examples

Example Example2

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 QR Code 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

tic2bar.js's People

Contributors

sleepycharlyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.