A JavaScript/TypeScript compiler for Scratch 3, 2, and 1 projects. forkphorus is a fork of phosphorus.
Projects should, in general, run faster in forkphorus than in Scratch 3 and much faster than Scratch 2. Here's an unscientific benchmark of running quicksort on 200000 random items:
Environment | Min | Avg | Max |
---|---|---|---|
Forkphorus (sb3 compiler) | 0.19 | 0.198 | 0.221 |
Scratch 3 | 11.043 | 11.2131 | 11.599 |
Scratch 2 | 17.55 |
(September 2019, Chrome 76)
You will need Git and Node.js.
git clone https://github.com/forkphorus/forkphorus.git
cd forkphorus
npm install
Start the development server with:
npm start
View the development server at http://localhost:8080/
Forkphorus is written in a mix of "vanilla" JavaScript and TypeScript. Most interface code is JavaScript, but the forkphorus runtime, compiler, and project player are written in TypeScript. The TypeScript files are in the src
folder and changes automatically trigger rebuilds while the development server is running.
Unless stated otherwise (there are exceptions), files in this repository are MIT Licensed.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。