mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-29 15:39:39 -04:00
Simplify execution by removing nextBlock
Everything is managed by the stack, including what the execute() function does.
This commit is contained in:
parent
2cd6bf93bb
commit
526a260101
4 changed files with 70 additions and 57 deletions
src/engine
|
@ -122,6 +122,7 @@ Runtime.prototype.getOpcodeFunction = function (opcode) {
|
|||
Runtime.prototype._pushThread = function (id) {
|
||||
this.emit(Runtime.STACK_GLOW_ON, id);
|
||||
var thread = new Thread(id);
|
||||
thread.pushStack(id);
|
||||
this.threads.push(thread);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue