This repository has been archived by the owner on Feb 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
jump
Andy C edited this page Sep 16, 2015
·
3 revisions
The jump block makes your player jump once. Triple-jumps still apply, so three quick consecutive jumps will trigger a triple jump.
Block Definition:
Blockly.Blocks['jump'] = {
init: function() {
this.appendDummyInput()
.appendField("jump");
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(160);
this.setTooltip('Jumps once (triple jumps will still happen if you jump 3 times fast enough)');
this.setHelpUrl('https://github.com/ChildrenOfUr/Ilmenscript/wiki/jump');
}
};
Code Generator:
Blockly.JavaScript['jump'] = function(block) {
return 'transmit("ilmenscript_jump");\n';
};
To request a custom block in the game, please contact us. We'd love to hear your ideas!
Ilmenscript is based on Google Blockly. Check the official Blockly wiki for help on the Blockly core blocks (everything outside of the Game category).