mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 19:26:43 +01:00
actual run --browser instead of just optimized technotunnel
This commit is contained in:
@@ -2,6 +2,13 @@ import loaderUrl from "data-url:../../platform/bin/loader.wasm";
|
||||
import platformUrl from "data-url:../../platform/bin/platform.uw8";
|
||||
|
||||
export default function MicroW8(screen, config = {}) {
|
||||
if(!config.setMessage) {
|
||||
config.setMessage = (s, e) => {
|
||||
if(e) {
|
||||
console.log('error: ' + e);
|
||||
}
|
||||
}
|
||||
}
|
||||
let canvasCtx = screen.getContext('2d');
|
||||
let imageData = canvasCtx.createImageData(320, 240);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user