1.4.0 • Published 2 years ago

tiny-bigas v1.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Tiny-bigas

GitHub package.json version

Package created to help with adding pixel-art elements and buttons to my electron.js development.

It uses the canvas html element to display stuff in the screen, and with stuff such as a update() function we can add callbacks to everything.

How to install

npm i tiny-bigas

How to use

const tinyBigas = require('tiny-bigas');
const render = require('./node_modules/tiny-bigas/bigasrender.js');

// And then, inside the preload.js 

window.addEventListener('DOMContentLoaded', () => {
    tinyBigas.exports.addButton(new tinyBigas.Button("Test", 5, [150,0], ()=>{
        console.log("I'm a button!");
    }));

    render.exports.main();
    render.exports.initialize();
});
1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago