feat: refine match3d brick runtime assets
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-03 23:26:08 +08:00
parent 49aad7311c
commit f1e86a88da
11 changed files with 1580 additions and 570 deletions

View File

@@ -12,7 +12,13 @@ import {
} from './services/match3d-runtime';
function buildInitialRun() {
return startLocalMatch3DRun(12);
const params = new URLSearchParams(window.location.search);
const clearCountParam = params.get('clearCount') ?? params.get('count');
const clearCount =
clearCountParam === null ? 12 : Number.parseInt(clearCountParam, 10);
return startLocalMatch3DRun(
Number.isFinite(clearCount) && clearCount > 0 ? clearCount : 12,
);
}
export default function Match3DPlaygroundApp() {