mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-01 08:59:51 -04:00
Implement "go to" block (#238)
* Implement "go to" block * Add a missing semicolon My text editor doesn't automatically insert them and I'm not used to using semicolons so much. :( * Implement go-to-random * Clean up the go-to-random code a bit * Add rounding to _random_ picks
This commit is contained in:
parent
886bcbe3c1
commit
5871672551
2 changed files with 33 additions and 0 deletions
src/engine
|
@ -69,6 +69,18 @@ function Runtime () {
|
|||
this._cloneCounter = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Width of the stage, in pixels.
|
||||
* @const {number}
|
||||
*/
|
||||
Runtime.STAGE_WIDTH = 480;
|
||||
|
||||
/**
|
||||
* Height of the stage, in pixels.
|
||||
* @const {number}
|
||||
*/
|
||||
Runtime.STAGE_HEIGHT = 360;
|
||||
|
||||
/**
|
||||
* Event name for glowing a script.
|
||||
* @const {string}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue