Initial commit of 001code-html Scratch frontend project.

Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-16 15:37:45 +08:00
commit 6e0a1fbcbb
11350 changed files with 965674 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
// TW Snapshot
// Input SHA-256: 6fe809479042e5ba09d66bffbd62d5a38d2265c98818e937d63137d2dcdc2fec
// Sprite2 script
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = runtime.getOpcodeFunction("looks_say");
const b1 = stage.variables["7qur6!bGgvC9I(Nd5.HP"];
const b2 = stage.variables["sUOp@-6J4y0PqwiXit4!"];
return function* genXYZ () {
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, ",a.euo_AgQTxR+D^x0M0", null);
b1.value = 0;
b2.value = "";
while (!compareGreaterThan(b2.value, "")) {
startHats("event_whenbroadcastreceived", { BROADCAST_OPTION: "step" });
yield;
}
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, "miAC8JZ$@akv[+}KR*@B", null);
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, "gXJU#lhy3A3XA_s[-Xs$", null);
retire(); return;
}; })
// Sprite2 script
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = stage.variables["7qur6!bGgvC9I(Nd5.HP"];
const b1 = stage.variables["sUOp@-6J4y0PqwiXit4!"];
return function* genXYZ () {
b0.value = ((+b0.value || 0) + 1);
if (((b0.value || 0) === 5)) {
b1.value = "end";
}
retire(); return;
}; })