mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-29 07:29:12 -04:00
Add block-by-block feedback to the VM playground
This commit is contained in:
parent
f2734950d7
commit
5767e05d56
3 changed files with 20 additions and 2 deletions
src/engine
|
@ -134,6 +134,8 @@ Sequencer.prototype.stepThread = function (thread) {
|
|||
// Pop the stack and stack frame
|
||||
thread.stack.pop();
|
||||
thread.stackFrames.pop();
|
||||
// Stop showing run feedback in the editor.
|
||||
instance.runtime.glowBlock(currentBlock, false);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -199,6 +201,9 @@ Sequencer.prototype.stepThread = function (thread) {
|
|||
}
|
||||
}
|
||||
|
||||
// Start showing run feedback in the editor.
|
||||
this.runtime.glowBlock(currentBlock, true);
|
||||
|
||||
if (!opcode) {
|
||||
console.warn('Could not get opcode for block: ' + currentBlock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue