
Blockly.JavaScript['event_level_start'] = function(block) { var statements_do = Blockly.JavaScript.statementToCode(block, 'DO'); return "var whenLevelStarts = function() {\n" + statements_do + "\n};"; }; |
function preload() { // Load game // . . . // Call Blockly event, if defined. If (whenLevelStarts) { whenLevelStarts(); } } |
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.