Commit Graph
4084 Commits
Author SHA1 Message Date
Thomas Weber dc9ffb0d74 saveProjectSb3 should tell the GUI whether this project uses any TW-exclusive blocks 2020-12-24 18:28:27 -06:00
Thomas Weber 9f557dfb94 Change extension id to just "tw" 2020-12-24 17:58:56 -06:00
Thomas Weber 6c221b5dac Create a TW extension. 2020-12-24 17:51:11 -06:00
Thomas Weber 1adedafa8b Increase stuckCounter threshold to 100 calls
This reduces the performance impact of the warp timer
2020-12-19 16:55:27 -06:00
Thomas Weber e7d8ce540d Optimize setCostume
Very slight, probably not measurable in real projects
2020-12-16 17:44:21 -06:00
Thomas Weber b06ef7eec5 Optimize getCostumeIndexByName 2020-12-15 17:39:05 -06:00
Thomas Weber 63aefc6231 Compile looks_nextbackdrop and looks_nextcostume 2020-12-15 17:32:20 -06:00
Thomas Weber 8472bfd11c Add music_midiSetInstrument to compat layer 2020-12-09 22:00:11 -06:00
Thomas Weber fd0658bf3e remove unnecessary start 2020-12-09 15:21:12 -06:00
Thomas Weber 8968943f28 update copyright 2020-12-08 15:47:37 -06:00
Thomas Weber 4d3b9325b6 Remove unnecssary start 2020-12-08 15:39:27 -06:00
Thomas Weber e6c03aa7f8 js: args.stringNumber is of unknown type 2020-12-07 21:11:11 -06:00
Thomas Weber 3624712b80 Prefer script over intermediate 2020-12-05 20:41:02 -06:00
Thomas Weber 146d34e46e compiler/execute -> compiler/jsexecute 2020-12-05 20:33:56 -06:00
Thomas Weber 1bca53d427 Use "script" instead of "tree" 2020-12-05 19:46:02 -06:00
Thomas Weber 74e0a8ee5c More intermediate cleanup and fixes 2020-12-05 19:39:19 -06:00
Thomas Weber 9ca1a759f2 Merge branch 'develop' into abstracted-intermediate 2020-12-04 16:36:11 -06:00
Thomas Weber de1e4ca411 Update some jsdoc 2020-12-04 16:17:39 -06:00
Thomas Weber 28459966dc Merge branch 'develop' of https://github.com/llk/scratch-vm into develop 2020-11-29 16:33:17 -06:00
Thomas Weber 9078359afd Do not allow framerate to go over 1000
Values beyond this point
a) are unnecessary
b) don't actually work in any modern browser
c) trick the sequencer into thinking it has essentially 0 WORK_TIME
2020-11-26 21:36:24 -06:00
Thomas Weber d0364ec060 Revert "WORK_TIME should always be at least 1 millisecond"
This reverts commit 723064e1c2.
2020-11-26 16:42:48 -06:00
Thomas Weber 723064e1c2 WORK_TIME should always be at least 1 millisecond 2020-11-26 16:35:27 -06:00
Thomas Weber 8dee0fdac8 Add a test for preciseProjectTimer drift 2020-11-26 10:58:35 -06:00
Thomas Weber cb165cc024 preciseProjectTimer startTime should always match preciseTimer's startTime
Letting them each have their own start time can lead to slight drift where preciseProjectTimer returns a smaller number than projectTimer.
Fixes https://scratch.mit.edu/projects/453118719
2020-11-26 10:46:16 -06:00
DD Liu a0c11d6d86 Merge pull request #2710 from fsih/useCdm
Handle user did not pick peripheral
2020-11-24 18:35:04 -05:00
DD Liu 04d401996c Remove commented code 2020-11-24 16:54:07 -05:00
DD Liu 87cb4a7ef0 Add userDidPickPeripheral to bt 2020-11-24 16:49:54 -05:00
Thomas Weber dc52b58019 Implement thread glowing (#35) 2020-11-24 12:06:47 -06:00
Thomas Weber 2f577e978a Alphabetize 2020-11-24 11:33:26 -06:00
Thomas Weber ea21a512f7 Add looks_switchbackdroptoandwait to compat layer 2020-11-23 14:33:44 -06:00
DD Liu f19fd83563 Handle user did not pick peripheral 2020-11-23 01:01:06 -05:00
Thomas Weber 5ecd40e703 Update some docs 2020-11-21 18:27:33 -06:00
Thomas Weber 9533895ede Separate IntermediateScript and IntermediateRepresentation 2020-11-21 18:09:19 -06:00
Thomas Weber 7c8ff1ceca Disable some eslint rules 2020-11-21 17:51:42 -06:00
Thomas Weber c90848ea3d update TODOs 2020-11-21 16:25:40 -06:00
Thomas Weber 28be8c9887 js: sanitize shouldn't throw if argument is not string 2020-11-21 16:22:06 -06:00
Thomas Weber 711e899795 Include opcode in edge-activated hat error message 2020-11-20 21:14:25 -06:00
Thomas Weber 5b3d33dfc6 Add control_get_counter to compat blocks 2020-11-20 21:13:22 -06:00
Thomas Weber 11040eae0b ir: Different error message when attempting to compile inputs as stacked blocks 2020-11-20 21:04:16 -06:00
Thomas Weber 6e9622ec4c ir: Refactor descendInput 2020-11-20 21:03:57 -06:00
Thomas Weber 084418bbe5 is compiled? shouldn't return true if compiler is explicitly disabled 2020-11-18 17:43:25 -06:00
Thomas Weber 60afe75aa8 Cleanup how execute test catches compiler errors 2020-11-18 16:29:00 -06:00
Thomas Weber 3ec9f75bea Include target in COMPILE_ERROR 2020-11-18 16:24:43 -06:00
Thomas Weber ed162660f0 Add COMPILE_ERROR event 2020-11-18 16:22:28 -06:00
Thomas Weber 773bf55ca5 tw-loose-json -> tw-extended-json
This is less about being "loose" and more about being "extended"
This parser is no looser than JSON.parse, but it supports more literals
2020-11-17 14:39:23 -06:00
Thomas Weber 0d6a033c6d Dirty hack to fix projects that use literal Infinity
https://scratch.mit.edu/projects/10590338/
2020-11-17 14:29:31 -06:00
Thomas Weber d3e4e144d7 emit-fast -> tw-emit-fast 2020-11-17 13:45:16 -06:00
Thomas Weber ad817fff6b populateProcedureCache should not overwrite entries
Fixes https://scratch.mit.edu/projects/387608267/
2020-11-17 13:00:17 -06:00
Thomas Weber 4bd5779835 is compiled? should return true even if the script couldn't be compiled 2020-11-16 00:30:47 -06:00
Thomas Weber 5f3571e9a8 Remove duplicate entries 2020-11-15 22:42:42 -06:00