scratch-vm/src/engine
Tim Mickel e49f076fa1 Interpreter fixes, enhancements, features (#280)
* Thread stepping rework; interp.redraw equivalent

* Add turbo mode and pause mode

* Yielding behavior to match Scratch 2.0

* Implement warp-mode procedure threads

* Add check for recursive call

* Inline wait block timer

* Revert to setInterval and always drawing

* Restore yielding in glide

* 30TPS compatibility mode

* 5-call count recursion limit

* Removing dead primitive code

* To simplify, access runtime.threads inline in `stepThreads`.

* Warp mode/timer fixes; recursive check fixes; clean-up

* Add basic single-stepping

* Add single-stepping speed slider

* Allow yielding threads to run in single-stepping

* Restore inactive threads tracking for block glows

* Add clock pausing during pause mode

* Documentation and clean-up throughout

* Don't look for block glows in `thread.topBlock`.

* Add null check for block glows; rename `_updateScriptGlows` to reflect block glowing

* Use the current executed block for glow, instead of stack

* Add more comments to `stepToProcedure`, and re-arrange to match 2.0

* Tweak to Blocks.prototype.getTopLevelScript

* Revert previous

* Fix threads array to be resilient to changes during `stepThreads`

* Restore inactive threads filtering

* Fix typo in "procedure"

* !! instead of == true
2016-10-17 23:23:16 -04:00
..
adapter.js Mutations in block representation; an unfeatured procedure call (#212) 2016-10-03 17:43:24 -04:00
blocks.js Clicking blocks in the toolbox (#267) 2016-10-13 17:15:49 -04:00
execute.js Interpreter fixes, enhancements, features (#280) 2016-10-17 23:23:16 -04:00
list.js Variables and lists (#187) 2016-09-21 16:38:33 -04:00
mutation-adapter.js Mutations in block representation; an unfeatured procedure call (#212) 2016-10-03 17:43:24 -04:00
runtime.js Interpreter fixes, enhancements, features (#280) 2016-10-17 23:23:16 -04:00
sequencer.js Interpreter fixes, enhancements, features (#280) 2016-10-17 23:23:16 -04:00
target.js Variables and lists (#187) 2016-09-21 16:38:33 -04:00
thread.js Interpreter fixes, enhancements, features (#280) 2016-10-17 23:23:16 -04:00
variable.js Variables and lists (#187) 2016-09-21 16:38:33 -04:00