Back to Supersonic RC Revive
SOURCE / PINNED RELEASE

Made of little things.

Supersonic RC Revive

Release
bb8b570f3600…
Author-recorded commit
073e2d2c0e63…
License
LICENSE
Author’s source reference
nostr://npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr/wss%3A%2F%2Fgit.shakespeare.diy%2F/SuperSonicRCRevive

Archive hash verified: 857599401cc78951…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

tests/online-simultaneous-scenario.mjs
// Trusted local scenario: players who press Play public at once can each open a room;
// lone players then consolidate into one room without leaving the drive.
export default async ({players,check}) => {
  const waitFor = (player, fn, arg, timeout) => player.frame.waitForFunction(fn,arg,{timeout});
  await Promise.all(players.map(p => p.frame.getByRole('button',{name:'Play public',exact:true}).click()));
  await Promise.all(players.map(p => waitFor(p,()=>!!document.querySelector('canvas')?.dataset.localPosition,undefined,30000)));
  check('every player is driving', true);
  await Promise.all(players.map(p => waitFor(p,n=>Number(document.querySelector('canvas')?.dataset.onlinePlayers)===n,players.length,60000)));
  check('simultaneous players end up in one public room', true);
};