尚未检测到更新。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.