Split Screen extension not working with the connect to hardware

When I tried to upload a game on to my tinkergen gamego that uses the split screen extension but it gave two errors in the extension code when I clicked the choose hardware button. I figured out that in the targetOverrides.ts file in the screen drop-down on the js code it has this line when the hardware isn’t chosen

let screen = image.create(_screen_internal.getScreenWidth(160), _screen_internal.getScreenHeight(120)) as ScreenImage

but when you choose a hardware (anything but the pi0 Linux one) it changes the file so that the screen is declared like this:

const screen = _screen_internal.createScreen();

the split screen extension has this twice in the file:

screen = this.fakeScreen

it can do that when the screen is declared using let but not when it is a const. I’m wondering if there is an easy way to fix this or if the developers can.

1 Like

I’m guessing the split screen extension was designed only for the screen in the browser, I believe there are differences in how hardware and the browser create the screen (ex. why you can alter the screen size in the browser but not on hardware) although you’d probably need one of the developers to clarify!

2 Likes