Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blockly-games/blockly-games
/ functions
Functions
453 in github.com/blockly-games/blockly-games
⨍
Functions
453
◇
Types & classes
21
↓ 46 callers
Function
time
()
appengine/movie/src/main.js:625
↓ 35 callers
Function
line
* Draw a rectangle. * @param {number} x1 Horizontal location of start (0-100). * @param {number} y1 Vertical location of start (0-100). * @param {n
appengine/movie/src/main.js:516
↓ 33 callers
Function
penColour
* Change the colour of the pen. * @param {string} colour CSS colour string.
appengine/movie/src/main.js:535
↓ 26 callers
Function
move
* Move the turtle forward or backward. * @param {number} distance Pixels to move. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:730
↓ 22 callers
Function
circle
* Draw a circle. * @param {number} x Horizontal location of centre (0-100). * @param {number} y Vertical location of centre (0-100). * @param {numb
appengine/movie/src/main.js:480
↓ 22 callers
Function
penDown
* Lift or lower the pen. * @param {boolean} down True if down, false if up. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:766
↓ 19 callers
Function
turn
* Turn the turtle left or right. * @param {number} angle Degrees to turn clockwise. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:756
↓ 16 callers
Function
p
(a,d)
appengine/common/prettify.js:15
↓ 14 callers
Function
displayPegman
* Display Pegman at the specified location, facing the specified direction. * @param {number} x Horizontal grid (or fraction thereof). * @param {num
appengine/maze/src/main.js:1282
↓ 14 callers
Function
penColour
* Change the colour of the pen. * @param {string} colour CSS colour string. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:786
↓ 13 callers
Function
wrap
(name)
appengine/pond/src/battle.js:372
↓ 12 callers
Function
inputFactory
* Create a value input, numeric, right-aligned. * @param {string} name Name of input. * @returns {!Object} JSON structure for value input.
appengine/movie/src/blocks.js:48
↓ 12 callers
Function
v
(a)
appengine/common/prettify.js:9
↓ 12 callers
Function
wrap
(name)
appengine/turtle/src/main.js:643
↓ 10 callers
Function
rect
* Draw a rectangle. * @param {number} x Horizontal location of centre (0-100). * @param {number} y Vertical location of centre (0-100). * @param {n
appengine/movie/src/main.js:497
↓ 9 callers
Method
bindEvent_
* Bind an event to a function call. * @param {!Node} node Node upon which to listen. * @param {string} name Event name to listen to (e.g. 'mouse
appengine/movie/src/scrubber.js:373
↓ 9 callers
Method
reset
* Reset this avatar to a starting state.
appengine/pond/src/avatar.js:102
↓ 9 callers
Function
wrap
(name)
appengine/maze/src/main.js:982
↓ 8 callers
Function
animate
* Highlight a block and pause. * @param {string|undefined} id ID of block.
appengine/turtle/src/main.js:713
↓ 8 callers
Method
bindEvent_
* Bind an event to a function call. * @param {!Node} node Node upon which to listen. * @param {string} name Event name to listen to (e.g. 'mouse
appengine/src/slider.js:254
↓ 7 callers
Function
constrainDirection16
* Keep the direction within 0-15, wrapping at both ends. * @param {number} d Potentially out-of-bounds direction value. * @returns {number} Legal di
appengine/maze/src/main.js:1370
↓ 7 callers
Function
drawStar
(length)
appengine/turtle/src/main.js:886
↓ 7 callers
Function
schedule
* Schedule the animations for a move or turn. * @param {!Array<number>} startPos X, Y and direction starting points. * @param {!Array<number>} endPo
appengine/maze/src/main.js:1157
↓ 7 callers
Method
setCode
* Sets the code for this avatar. * @param {string|undefined} blockly Blockly XML, or undefined if no Blockly. * @param {string|undefined} js Jav
appengine/pond/src/avatar.js:93
↓ 6 callers
Function
displayBird
* Display bird at the current location, facing the current angle. * @param {!Pose} pose Set new pose.
appengine/bird/src/main.js:771
↓ 6 callers
Method
distance
* Compute the distance between this line segment and the given coordinate. * @param {!Blockly.utils.Coordinate} xy Point to measure from. * @ret
appengine/bird/src/main.js:102
↓ 6 callers
Function
g
(e)
appengine/common/prettify.js:2
↓ 6 callers
Method
getValue
* Returns the slider's value (0.0 - 1.0). * @returns {number} Current value.
appengine/movie/src/scrubber.js:296
↓ 6 callers
Function
restFactory
* Create a dropdown option for a rest. * @param {number} denominator Inverse duration of rest. * @returns {!Object} Dropdown option.
appengine/music/src/blocks.js:69
↓ 6 callers
Function
wrapMath
(name)
appengine/pond/src/battle.js:409
↓ 5 callers
Function
C
(a,d)
appengine/common/prettify.js:7
↓ 5 callers
Function
constrainDirection4
* Keep the direction within 0-3, wrapping at both ends. * @param {number} d Potentially out-of-bounds direction value. * @returns {number} Legal dir
appengine/maze/src/main.js:1357
↓ 5 callers
Function
isPath
* Is there a path next to pegman? * @param {number} direction Direction to look * (0 = forward, 1 = right, 2 = backward, 3 = left). * @param {?
appengine/maze/src/main.js:1442
↓ 5 callers
Function
normalize
(x, y)
appengine/maze/src/main.js:327
↓ 5 callers
Function
onresize
(_e)
appengine/pond/duck/src/main.js:100
↓ 5 callers
Method
setValue
* Sets the slider's value (0.0 - 1.0). * @param {number} value New value.
appengine/movie/src/scrubber.js:329
↓ 5 callers
Function
wrap
(name)
appengine/movie/src/main.js:463
↓ 4 callers
Method
GetPath
Returns the path.
third-party/closurebuilder/closurebuilder.py:156
↓ 4 callers
Method
__init__
Initializes the tree with a set of sources. Args: sources: A set of JavaScript sources. Raises: MultipleProvideError: A namespac
third-party/closurebuilder/depstree.py:28
↓ 4 callers
Method
addDamage
* Damage the avatar. * @param {number} add Amount of damage to add.
appengine/pond/src/avatar.js:129
↓ 4 callers
Function
doubleReplica
(a)
appengine/music/src/main.js:898
↓ 4 callers
Function
levelHelp
* When the workspace changes, update the help as needed. * @param {Blockly.Events.Abstract=} opt_event Custom data for event.
appengine/maze/src/main.js:564
↓ 4 callers
Function
reset
* Reset the turtle to the start position, clear the display, and kill any * pending tasks.
appengine/turtle/src/main.js:448
↓ 4 callers
Function
reset
* Reset the maze to the start position and kill any pending animation tasks. * @param {boolean} first True if an opening animation is to be played.
appengine/maze/src/main.js:805
↓ 4 callers
Function
reset
* Reset the bird to the start position and kill any pending animation tasks. * @param {boolean} first True if an opening animation is to be played.
appengine/bird/src/main.js:550
↓ 4 callers
Function
scheduleLook
* Display the look icon at Pegman's current location, * in the specified direction. * @param {!DirectionType} d Direction (0 - 3).
appengine/maze/src/main.js:1304
↓ 4 callers
Function
setBlocksDisabled
* Enable or disable the ability to use Blockly. * @param {boolean} disabled True if Blockly is disabled and JS is to be used.
appengine/pond/duck/src/main.js:278
↓ 4 callers
Method
setValue
* Sets the slider's value (0.0 - 1.0). * @param {number} value New value.
appengine/src/slider.js:222
↓ 4 callers
Function
shuffle
* Shuffles the values in the specified array using the Fisher-Yates in-place * shuffle (also known as the Knuth Shuffle). * Runtime: O(n) * Based o
appengine/puzzle/src/main.js:162
↓ 4 callers
Method
stop
* Commands the avatar to stop.
appengine/pond/src/avatar.js:248
↓ 4 callers
Function
wrap
(name)
appengine/bird/src/main.js:666
↓ 3 callers
Function
H
(a,d,g,b)
appengine/common/prettify.js:7
↓ 3 callers
Function
b
(e)
appengine/common/prettify.js:2
↓ 3 callers
Function
changeTab
* Called by the tab bar when a tab is selected. * @param {number} index Which tab is now active (0-1).
appengine/pond/duck/src/main.js:210
↓ 3 callers
Method
die
* Kill this avatar.
appengine/pond/src/avatar.js:139
↓ 3 callers
Function
drawNote
* Draw and position the specified note or rest. * @param {number} i Which stave bar to draw on (base 1). * @param {number} time Distance down the st
appengine/music/src/main.js:294
↓ 3 callers
Method
getValue
* Returns the slider's value (0.0 - 1.0). * @returns {number} Current value.
appengine/src/slider.js:190
↓ 3 callers
Method
mouseToSvg_
* Convert the mouse coordinates into SVG coordinates. * @param {!Object} e Object with x and y mouse coordinates. * @returns {!Object} Object wi
appengine/src/slider.js:238
↓ 3 callers
Method
mouseToSvg_
* Convert the mouse coordinates into SVG coordinates. * @param {!Object} e Object with x and y mouse coordinates. * @returns {!Object} Object wi
appengine/movie/src/scrubber.js:357
↓ 3 callers
Method
playPause_
* Play/Pause button was clicked. * @param {!Event=} opt_e Mouse or touch event. * @private
appengine/movie/src/scrubber.js:251
↓ 3 callers
Function
reset
* Reset the music to the start position, clear the display, and kill any * pending tasks.
appengine/music/src/main.js:510
↓ 3 callers
Function
s
(e)
appengine/common/prettify.js:4
↓ 3 callers
Function
staveTop_
* Return the height of a stave bar. * @param {number} i Which stave bar to compute (base 1). * @param {number} n Number of stave bars. * @returns {
appengine/music/src/main.js:277
↓ 3 callers
Function
stopSound
* Stop the specified thread from playing the current sound. * @param {!Thread} thread Thread object.
appengine/music/src/main.js:712
↓ 3 callers
Method
touchToMouse_
* Map the touch event's properties to be compatible with a mouse event. * @param {TouchEvent} e Event to modify. * @private
appengine/src/slider.js:266
↓ 3 callers
Method
touchToMouse_
* Map the touch event's properties to be compatible with a mouse event. * @param {TouchEvent} e Event to modify. * @private
appengine/movie/src/scrubber.js:385
↓ 3 callers
Method
valueToNote
* Convert the machine-readable value (0-12) to human-readable text (C3-A4). * @param {number|string} value The provided value. * @returns {strin
appengine/music/src/field_pitch.js:151
↓ 3 callers
Function
wrap
(name)
appengine/music/src/main.js:585
↓ 2 callers
Method
GetSource
Get the source as a string.
third-party/closurebuilder/source.py:64
↓ 2 callers
Function
I
(a,d)
appengine/common/prettify.js:15
↓ 2 callers
Function
J
(a,d,g)
appengine/common/prettify.js:13
↓ 2 callers
Function
K
(a)
appengine/common/prettify.js:15
↓ 2 callers
Function
angleDx
* For a given angle and radius, finds the X portion of the offset. * Copied from Closure's goog.math.angleDx. * @param {number} degrees Angle in deg
appengine/puzzle/src/main.js:321
↓ 2 callers
Function
angleDy
* For a given angle and radius, finds the Y portion of the offset. * Copied from Closure's goog.math.angleDy. * @param {number} degrees Angle in deg
appengine/puzzle/src/main.js:332
↓ 2 callers
Function
animate
* Highlight a block and pause. * @param {?string} id ID of block.
appengine/music/src/main.js:764
↓ 2 callers
Function
autoScroll
* Scroll the music display horizontally to the current time.
appengine/music/src/main.js:725
↓ 2 callers
Function
d
(e)
appengine/common/prettify.js:2
↓ 2 callers
Function
display
* Copy the scratch canvas to the display canvas. Add a turtle marker.
appengine/turtle/src/main.js:474
↓ 2 callers
Function
display
* Copy the scratch canvas to the display canvas. * @param {number=} opt_frameNumber Which frame to draw (0-100). * If not defined, draws the cur
appengine/movie/src/main.js:377
↓ 2 callers
Function
drawFrame_
* Draw one frame of the movie. * @param {!Interpreter} interpreter A JS-Interpreter loaded with user code. * @private
appengine/movie/src/main.js:327
↓ 2 callers
Function
drawStave
* Draw and position the specified number of stave bars. * @param {number} n Number of stave bars.
appengine/music/src/main.js:256
↓ 2 callers
Function
endResult
()
appengine/src/lib-dialogs.js:119
↓ 2 callers
Function
gaObject
(var_args)
appengine/src/lib-games.js:430
↓ 2 callers
Function
gotoPoint
* Move the bird to the given point. * @param {!Blockly.utils.Coordinate} p Coordinate of point.
appengine/bird/src/main.js:856
↓ 2 callers
Function
isVisible
* Make the turtle visible or invisible. * @param {boolean} visible True if visible, false if invisible. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:797
↓ 2 callers
Function
loadMore
* Load more entries.
appengine/gallery/src/main.js:77
↓ 2 callers
Function
move
* Attempt to move pegman forward or backward. * @param {number} direction Direction to move (0 = forward, 2 = backward). * @param {string} id ID of
appengine/maze/src/main.js:1387
↓ 2 callers
Function
notDone
* Is the player at the finish marker? * @returns {boolean} True if not done, false if done.
appengine/maze/src/main.js:1473
↓ 2 callers
Function
onresize
(_e)
appengine/turtle/src/main.js:97
↓ 2 callers
Function
onresize
(_e)
appengine/music/src/main.js:118
↓ 2 callers
Function
onresize
(_e)
appengine/movie/src/main.js:83
↓ 2 callers
Function
onresize
(_e)
appengine/maze/src/main.js:461
↓ 2 callers
Function
onresize
(_e)
appengine/bird/src/main.js:379
↓ 2 callers
Function
renderAnswer_
* On startup draw the expected answers and save it to answer canvases. * @param {number} f Frame number (0-100). * @private
appengine/movie/src/main.js:251
↓ 2 callers
Function
resetButtonClick
* Click the reset button. Reset the Music. * @param {!Event=} opt_e Mouse or touch event.
appengine/music/src/main.js:549
↓ 2 callers
Function
rest
* Wait one rest. * @param {number} duration Fraction of a whole note length to rest. * @param {?string} id ID of block.
appengine/music/src/main.js:831
↓ 2 callers
Function
scheduleFail
* Schedule the animations and sounds for a failed move. * @param {boolean} forward True if forward, false if backward.
appengine/maze/src/main.js:1184
↓ 2 callers
Function
scheduleFinish
* Schedule the animations and sound for a victory dance. * @param {boolean} sound Play the victory sound.
appengine/maze/src/main.js:1257
↓ 2 callers
Function
showHelp
* Show the help pop-up. * @param {boolean} animate Animate the pop-up opening.
appengine/puzzle/src/main.js:357
↓ 2 callers
Function
toRadians
* Converts degrees to radians. * Copied from Closure's goog.math.toRadians. * @param {number} angleDegrees Angle in degrees. * @return {number} Ang
appengine/index/src/main.js:113
next →
1–100 of 453, ranked by callers