Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.
Andy C edited this page Sep 16, 2015 · 3 revisions

jump

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';
};

Block Factory

Ilmenscript is based on Google Blockly. Check the official Blockly wiki for help on the Blockly core blocks (everything outside of the Game category).

Clone this wiki locally