irelance / visual-boy-advance-wasm

wasm port of VisualBoyAdvance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build

liunx build system

install emscripten first

npm install
npm run build

usage

notice: not support for multi app in a single page

<canvas id="cv" width="240" height="180"></canvas>
<script src="./mgba.js"></script>
<script>
    (function () {
        var cv = document.getElementById('cv');
        VBAInterface.createApp(cv)//if not pass canvas, it will try to generate one
            .then(app => {
                console.log(app.canvas);
                //or just leave it empty, drop a file into canvas
                app.loadRom('http://localhost:8080/a.gba');
                window.app = app;
                setTimeout(() => {
                    app.start();
                },1000);
            })
    })()
</script>

About

wasm port of VisualBoyAdvance


Languages

Language:C++ 72.8%Language:Assembly 11.3%Language:C 8.8%Language:Objective-C 5.2%Language:JavaScript 1.6%Language:Yacc 0.1%Language:Lex 0.1%