尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Scratch 3 on the Java platform!
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗jScratch compiles Scratch 3 projects (.sb3) into Java bytecode and executable JARs. Every sprite becomes a JVM class, every script a method, and a small bundled runtime provides the stage, the scheduler, input and rendering.
./gradlew :cli:fatJar
java -jar cli/build/libs/cli-0.1.0-SNAPSHOT-all.jar my-game.sb3
java -jar my-game.jar
# or compile a shared project straight from the Scratch website
java -jar cli/build/libs/cli-0.1.0-SNAPSHOT-all.jar https://scratch.mit.edu/projects/10128407/
.sb) and Scratch 2 (.sb2) projects are converted to Scratch 3 with the Scratch Foundation's own code, scratch-sb1-converter and scratch-vm, then compiled like any other.This is an MVP. Typical projects from the Scratch website compile and run, with gaps listed in docs/blocks.md, such as no extensions besides pen.
| Module | Purpose |
|---|---|
runtime/ | Scratch runtime bundled into compiled JARs |
sb3js/ | scratch-parser and the Scratch 1.4 and 2 converter, bundled for Rhino and the browser |
compiler/ | Platform-neutral core: sb3 model, ASM code generator, JAR writer |
compiler-jvm/ | Rhino bridge to scratch-parser and the converter, JSON through kotlinx-serialization, end-to-end tests |
cli/ | jscratch command line tool, including project downloads from scratch.mit.edu |
web/ | TeaVM playground |
samples/ | Sample projects, zipped into .sb3 and .sb2 by the build |
benchmarks/ | CPU-heavy projects timed on jScratch, TurboWarp and scratch-vm |
docs/ | Documentation site (Zensical) |
Useful commands:
./gradlew build # lint, test and assemble everything
./gradlew :web:assembleSite # playground in web/build/site
zensical serve # preview the docs
See the documentation for the CLI options, the supported blocks, the architecture and development notes.
jScratch is free software released under the GNU General Public License v3.0. It bundles scratch-parser, scratch-vm, scratch-storage and scratch-sb1-converter, which are licensed under the AGPL-3.0.