make react component

This commit is contained in:
dylan
2024-03-31 12:13:27 -07:00
parent 55fca0a5c2
commit d606a8002f
8 changed files with 117 additions and 66 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
// @ts-ignore
import "./build/veryRawRenderCart.js";
type PicoBool = 0 | 1;
export type PicoBool = 0 | 1;
type RenderCart = (Module: {canvas: HTMLCanvasElement}, cartNames: string[], cartDatas: number[][], audioContext: AudioContext) => {
export type RenderCart = (Module: {canvas: HTMLCanvasElement}, cartNames: string[], cartDatas: number[][], audioContext: AudioContext) => {
p8_touch_detected?: PicoBool;
p8_dropped_cart?: string;
p8_dropped_cart_name?: string;