mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-29 23:49:21 -04:00
Clear graphic effects on green flag (#199)
This commit is contained in:
parent
f9efc2b4bc
commit
aa5e8d2648
3 changed files with 18 additions and 0 deletions
src/engine
|
@ -27,6 +27,12 @@ function Target (blocks) {
|
|||
this.blocks = blocks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the project receives a "green flag."
|
||||
* @abstract
|
||||
*/
|
||||
Target.prototype.onGreenFlag = function () {};
|
||||
|
||||
/**
|
||||
* Return a human-readable name for this target.
|
||||
* Target implementations should override this.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue