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
↓ 2 callers
Function
turn
* Turn pegman left or right. * @param {number} direction Direction to turn (0 = left, 1 = right). * @param {string} id ID of block that triggered th
appengine/maze/src/main.js:1421
↓ 2 callers
Method
updateGraph_
* Redraw the pitch picker with the current pitch. * @private
appengine/music/src/field_pitch.js:212
↓ 1 callers
Method
GetDependencies
Get source dependencies, in order, for the given namespaces. Args: required_namespaces: A string (for one) or list (for one or more) of
third-party/closurebuilder/depstree.py:50
↓ 1 callers
Function
S
(a)
appengine/common/prettify.js:2
↓ 1 callers
Function
ScanTree
Scans a directory tree for files. Args: root: str, Path to a root directory. path_filter: A regular expression filter. If set, only paths
third-party/closurebuilder/treescan.py:42
↓ 1 callers
Function
T
(a,d)
appengine/common/prettify.js:6
↓ 1 callers
Function
U
(a)
appengine/common/prettify.js:7
↓ 1 callers
Function
_GetClosureBaseFile
Given a set of sources, returns the one base.js file. Note that if zero or two or more base.js files are found, an error message will be written
third-party/closurebuilder/closurebuilder.py:106
↓ 1 callers
Function
_GetInputByPath
Get the source identified by a path. Args: path: str, A path to a file that identifies a source. sources: An iterable collection of source
third-party/closurebuilder/closurebuilder.py:89
↓ 1 callers
Function
_GetOptionsParser
Get the options parser.
third-party/closurebuilder/closurebuilder.py:45
↓ 1 callers
Method
_HasProvideGoogFlag
Determines whether the @provideGoog flag is in a comment.
third-party/closurebuilder/source.py:73
↓ 1 callers
Function
_IsClosureBaseFile
Returns true if the given _PathSource is the Closure base.js source.
third-party/closurebuilder/closurebuilder.py:133
↓ 1 callers
Method
_ResolveDependencies
Resolve dependencies for Closure source files. Follows the dependency tree down and builds a list of sources in dependency order. This funct
third-party/closurebuilder/depstree.py:79
↓ 1 callers
Method
_ScanSource
Fill in provides and requires by scanning the source.
third-party/closurebuilder/source.py:81
↓ 1 callers
Method
_StripComments
(cls, source)
third-party/closurebuilder/source.py:69
↓ 1 callers
Method
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
appengine/pond/src/avatar.js:297
↓ 1 callers
Method
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
appengine/pond/src/avatar.js:308
↓ 1 callers
Function
animate
* Animate a block moving around after the puzzle is complete. * @param {!Blockly.Block} block Block to move. * @param {number} angleOffset Degrees o
appengine/puzzle/src/main.js:270
↓ 1 callers
Method
animateValue_
* Animates the slider's value (0.0 - 1.0). * @param {number} value New value. * @private
appengine/src/slider.js:199
↓ 1 callers
Method
animateValue_
* Animates the slider's value (0.0 - 1.0). * @param {number} value New value. * @private
appengine/movie/src/scrubber.js:305
↓ 1 callers
Function
answer
* Sample solutions for each level. * To create an answer, just solve the level in Blockly, then paste the * resulting JavaScript here, moving any fu
appengine/turtle/src/main.js:884
↓ 1 callers
Function
answer
* Sample solutions for each level. * To create an answer, just solve the level in Blockly, then paste the * resulting JavaScript here, moving any fu
appengine/movie/src/main.js:624
↓ 1 callers
Function
bindClick
* Bind a function to a button's click event. * On touch-enabled browsers, ontouchend is treated as equivalent to onclick. * @param {Element} el Butt
appengine/pond/docs/docs.js:35
↓ 1 callers
Function
blink
()
appengine/puzzle/src/main.js:232
↓ 1 callers
Method
cannon
* Commands the avatar to shoot in the specified heading at the specified range. * @param {number} degree Heading (0-360). * @param {number} rang
appengine/pond/src/avatar.js:259
↓ 1 callers
Function
change
()
appengine/src/lib-dialogs.js:288
↓ 1 callers
Function
changeAvatar
* Called by the avatar selector when changed.
appengine/pond/duck/src/main.js:168
↓ 1 callers
Function
changePegman
* Reload with a different Pegman skin. * @param {number} newSkin ID of new skin.
appengine/maze/src/main.js:745
↓ 1 callers
Function
checkAnswer
* Verify if the answer is correct. * If so, move on to next level.
appengine/turtle/src/main.js:832
↓ 1 callers
Function
checkAnswer
* Verify if the answer is correct. * If so, move on to next level.
appengine/music/src/main.js:942
↓ 1 callers
Function
checkFrameAnswer
* Verify if the answer to this frame is correct.
appengine/movie/src/main.js:543
↓ 1 callers
Function
codeChange
* Generate new JavaScript if the code has changed. * @param {!Blockly.Events.Abstract=} opt_e Change event.
appengine/movie/src/main.js:353
↓ 1 callers
Function
drawAnswer
* On startup draw the expected answer and save it to the answer canvas.
appengine/turtle/src/main.js:436
↓ 1 callers
Function
drawAnswer
* On startup draw the expected answer and save it to the answer canvas.
appengine/music/src/main.js:391
↓ 1 callers
Function
drawFont
* Change the typeface of printed text. * @param {string} font Font name (e.g. 'Arial'). * @param {number} size Font size (e.g. 18). * @param {strin
appengine/turtle/src/main.js:823
↓ 1 callers
Function
drawGauge
* Draw the gauge for an app. * @param {string} app Name of application. * @param {number} angle Angle of gauge in degrees.
appengine/index/src/main.js:90
↓ 1 callers
Function
drawMap
* Create and layout all the nodes for the path, scenery, Pegman, and goal.
appengine/maze/src/main.js:298
↓ 1 callers
Function
drawMap
* Create and layout all the nodes for the walls, nest, worm, and bird.
appengine/bird/src/main.js:237
↓ 1 callers
Function
drawPrint
* Print some text. * @param {string} text Text to print. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:807
↓ 1 callers
Method
drive
* Commands the avatar to move in the specified heading at the specified speed. * @param {number} degree Heading (0-360). * @param {number} opt_s
appengine/pond/src/avatar.js:216
↓ 1 callers
Method
dropdownCreate_
* Create the pitch picker. * @returns {!Element} The newly created pitch picker. * @private
appengine/music/src/field_pitch.js:102
↓ 1 callers
Function
execute
* Execute the user's code. Heaven help us...
appengine/turtle/src/main.js:652
↓ 1 callers
Function
execute
* Execute the user's code. Heaven help us...
appengine/music/src/main.js:594
↓ 1 callers
Function
execute
* Execute the user's code. Heaven help us...
appengine/maze/src/main.js:991
↓ 1 callers
Function
execute
* Execute the user's code. Heaven help us...
appengine/bird/src/main.js:675
↓ 1 callers
Function
executeChunk_
* Execute a bite-sized chunk of the user's code. * @param {!Thread} thread Thread to execute. * @private
appengine/music/src/main.js:676
↓ 1 callers
Function
getAvatarData
* Get the data for the avatars to be loaded into the current level. * @param {!Array<!Object>}
appengine/pond/tutor/src/main.js:172
↓ 1 callers
Function
handlerFactory
(n)
appengine/maze/src/main.js:434
↓ 1 callers
Function
heading
* Attempt to move the bird in the specified direction. * @param {number} angle Direction to move (0 = east, 90 = north). * @param {string} id ID of
appengine/bird/src/main.js:891
↓ 1 callers
Function
hideCoordinates
* Hide the x/y coordinates. * @param {Event} e Mouse out event.
appengine/movie/src/main.js:176
↓ 1 callers
Function
hidePegmanMenu
* Hide the Pegman skin-change menu. * @param {!Event} e Mouse, touch, or resize event.
appengine/maze/src/main.js:788
↓ 1 callers
Function
init
* Initialize Blockly and the maze. Called on page load.
appengine/maze/src/main.js:414
↓ 1 callers
Function
initExpectedAnswer
* Compute the expected answer for this level.
appengine/music/src/main.js:896
↓ 1 callers
Method
initInterpreter
* Create an interpreter for this avatar.
appengine/pond/src/avatar.js:121
↓ 1 callers
Function
intersectNest
* Has the bird intersected the nest? * @returns {boolean} True if the bird found the nest, false otherwise.
appengine/bird/src/main.js:821
↓ 1 callers
Function
intersectWall
* Has the bird intersected a wall? * @returns {boolean} True if the bird hit a wall, false otherwise.
appengine/bird/src/main.js:842
↓ 1 callers
Function
intersectWorm
* Has the bird intersected the worm? * @returns {boolean} True if the bird found the worm, false otherwise.
appengine/bird/src/main.js:830
↓ 1 callers
Function
isCorrect
* Validate whether the user's answer is correct. * @param {number} pixelErrors Number of pixels that are wrong. * @returns {boolean} True if the lev
appengine/turtle/src/main.js:1029
↓ 1 callers
Function
isCorrect
* Validate whether the user's answer is correct. * @returns {boolean} True if the level is solved, false otherwise.
appengine/movie/src/main.js:774
↓ 1 callers
Function
keyGen
()
appengine/storage.py:30
↓ 1 callers
Function
keyToXml
(key_provided)
appengine/storage.py:63
↓ 1 callers
Method
knobMouseUp_
* Stop a drag when clicking up anywhere. * @param {Event} e Mouse-up event. * @private
appengine/src/slider.js:124
↓ 1 callers
Method
knobMouseUp_
* Stop a drag when clicking up anywhere. * @param {Event} e Mouse-up event. * @private
appengine/movie/src/scrubber.js:181
↓ 1 callers
Function
levelHelp
* When the workspace changes, update the help as needed.
appengine/bird/src/main.js:450
↓ 1 callers
Function
main
()
third-party/closurebuilder/closurebuilder.py:170
↓ 1 callers
Method
nextFrame_
* Start the visualization running. * @private
appengine/movie/src/scrubber.js:276
↓ 1 callers
Function
nextNode
* Walk from one node to the next in a tree. * @param {!Node} node Current node. * @returns {Node} Next node, or null if ran off bottom of tree.
appengine/turtle/src/main.js:342
↓ 1 callers
Function
noteFactory
* Create a dropdown option for a note. * @param {number} denominator Inverse duration of note. * @returns {!Object} Dropdown option.
appengine/music/src/blocks.js:52
↓ 1 callers
Method
noteToValue
* Convert the human-readable text (C3-A4) to machine-readable value (0-12). * @param {string} text The provided pitch. * @returns {number|undefi
appengine/music/src/field_pitch.js:160
↓ 1 callers
Function
onresize
(_e)
appengine/puzzle/src/main.js:40
↓ 1 callers
Function
penWidth
* Change the thickness of lines. * @param {number} width New thickness in pixels. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:776
↓ 1 callers
Function
play
* Play one note. * @param {number} duration Fraction of a whole note length to play. * @param {number} pitch Note number to play (0-12). * @param {
appengine/music/src/main.js:780
↓ 1 callers
Function
pointsToAngle
* Computes the angle between two points (x1,y1) and (x2,y2). * Angle zero points in the +X direction, 90 degrees points in the +Y * direction (down)
appengine/puzzle/src/main.js:348
↓ 1 callers
Function
pointsToAngle
* Computes the angle between two points (x1,y1) and (x2,y2). * Angle zero points in the +X direction, 90 degrees points in the +Y * direction (down)
appengine/bird/src/main.js:879
↓ 1 callers
Method
pointsToAngle
* Computes the angle between two points (x1,y1) and (x2,y2). * Angle zero points in the +X direction, 90 degrees points in the +Y * direction (d
appengine/pond/src/avatar.js:324
↓ 1 callers
Function
prettyPrintOne
(code, language)
externs/prettify-externs.js:12
↓ 1 callers
Function
renderAxies_
* On startup draw the axis scales and save it to the axies canvas. * @private
appengine/movie/src/main.js:295
↓ 1 callers
Function
renderHatching_
* On startup draw hatching that will be displayed across the answers. * @private
appengine/movie/src/main.js:279
↓ 1 callers
Method
scan
* Scan in a direction for the nearest avatar. * @param {number} degree Scan in this direction (wrapped to 0-360). * @param {number} opt_resoluti
appengine/pond/src/avatar.js:157
↓ 1 callers
Function
scheduleLookStep
* Schedule one of the 'look' icon's waves to appear, then disappear. * @param {!Element} path Element to make appear. * @param {number} delay Millis
appengine/maze/src/main.js:1343
↓ 1 callers
Function
setInstrument
* Switch to a new instrument. * @param {string} instrument Name of new instrument.
appengine/music/src/main.js:883
↓ 1 callers
Function
setPosition
(n)
appengine/maze/src/main.js:1237
↓ 1 callers
Function
singleReplica
(a)
appengine/music/src/main.js:902
↓ 1 callers
Function
tabHandler
(selectedIndex)
appengine/pond/duck/src/main.js:79
↓ 1 callers
Method
toString
* A text representation of this avatar for debugging purposes. * @returns {string} String representation.
appengine/pond/src/avatar.js:83
↓ 1 callers
Function
xmlToKey
(xml_content)
appengine/storage.py:42
Function
ElementTimeControl
* @interface
externs/svg-externs.js:9255
Function
GetFileContents
Get a file's contents as a string. Args: path: str, Path to file. Returns: str, Contents of file. Raises: IOError: An error occur
third-party/closurebuilder/source.py:110
Function
Interpreter
(code, opt_initFunc)
externs/interpreter-externs.js:14
Function
OnError
(os_error)
third-party/closurebuilder/treescan.py:56
Function
SVGAElement
* @constructor * @extends {SVGElement} * @implements {SVGURIReference} * @implements {SVGTests} * @implements {SVGLangSpace} * @implements {SVGEx
externs/svg-externs.js:8649
Function
SVGAltGlyphDefElement
* @constructor * @extends {SVGElement}
externs/svg-externs.js:4701
Function
SVGAltGlyphElement
* @constructor * @extends {SVGTextPositioningElement} * @implements {SVGURIReference}
externs/svg-externs.js:2366
Function
SVGAltGlyphItemElement
* @constructor * @extends {SVGElement}
externs/svg-externs.js:3488
Function
SVGAngle
* @constructor
externs/svg-externs.js:9425
Function
SVGAnimateColorElement
* @constructor * @extends {SVGAnimationElement}
externs/svg-externs.js:9402
Function
SVGAnimateElement
* @constructor * @extends {SVGAnimationElement}
externs/svg-externs.js:9394
Function
SVGAnimateMotionElement
* @constructor * @extends {SVGAnimationElement}
externs/svg-externs.js:9386
Function
SVGAnimateTransformElement
* @constructor * @extends {SVGAnimationElement}
externs/svg-externs.js:9410
Function
SVGAnimatedAngle
* @constructor
externs/svg-externs.js:1034
← previous
next →
101–200 of 453, ranked by callers