some tweaks

This commit is contained in:
dylan
2024-03-30 15:07:49 -07:00
parent 2e02dbcc92
commit 55fca0a5c2
9 changed files with 213 additions and 142 deletions

View File

@ -18446,7 +18446,6 @@ var require_veryRawRenderCart = __commonJS((exports, module) => {
let pico8_mouse;
var _cartname = cartNames;
var _cartdat = cartDatas.flat();
console.log(_cartdat);
let codo_key_buffer;
let tempDouble;
let tempI64;
@ -18457,6 +18456,8 @@ var require_veryRawRenderCart = __commonJS((exports, module) => {
let el;
let button_i;
let codo_mounted_filesystem;
let codo_command;
let jsString;
let dx;
let dy;
let stat;
@ -133282,6 +133283,12 @@ var require_veryRawRenderCart = __commonJS((exports, module) => {
},
set pico8_mouse(val) {
pico8_mouse = val;
},
get codo_command() {
return codo_command;
},
set codo_command(val) {
codo_command = val;
}
};
};

View File

@ -22,6 +22,7 @@ type RenderCart = (Module: {canvas: HTMLCanvasElement}, cartNames: string[], car
pico8_gpio?: number[]; // should be 128 length
pico8_audio_context?: AudioContext;
pico8_mouse?: [number, number, number];
codo_command?: number;
}
const typedRenderCart = (window as any).P8 as RenderCart;

View File

@ -138,6 +138,7 @@ export const makePicoConsole = async (props: {
handle.p8_dropped_cart_name = cart.name;
// TODO: make sure this is a dataURL first, and if not, load it and then pass it in
// handle.p8_dropped_cart = cart.src;
// handle.codo_command = 9;
},
modDragOver: (Module as any).pico8DragOver,
modDragStop: (Module as any).pico8DragStop,

View File

@ -12,8 +12,6 @@ window.P8 = function (Module, cartNames, cartDatas) {
var _cartname=cartNames;
var _cartdat=cartDatas.flat();
console.log(_cartdat);
let codo_key_buffer;
let tempDouble;
let tempI64;
@ -24,6 +22,8 @@ window.P8 = function (Module, cartNames, cartDatas) {
let el;
let button_i;
let codo_mounted_filesystem;
let codo_command;
let jsString;
let dx;
let dy;
@ -116,5 +116,11 @@ window.P8 = function (Module, cartNames, cartDatas) {
set pico8_mouse(val) {
pico8_mouse = val;
},
get codo_command() {
return codo_command;
},
set codo_command(val) {
codo_command = val;
},
}
};