We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39a1b33 + 6594421 commit 4cb39bbCopy full SHA for 4cb39bb
src/lib/ruby-generator/makeymakey.js
@@ -15,5 +15,16 @@ export default function (Generator) {
15
return `${Generator.spriteName()}.when(:makey_key_pressed, ${key}) do\n`;
16
};
17
18
+ Generator.makeymakey_menu_SEQUENCE = function (block) {
19
+ const sequence = Generator.quote_(Generator.getFieldValue(block, 'SEQUENCE') || 'LEFT UP RIGHT');
20
+ return [sequence, Generator.ORDER_ATOMIC];
21
+ };
22
+
23
+ Generator.makeymakey_whenCodePressed = function (block) {
24
+ block.isStatement = true;
25
+ const sequence = Generator.valueToCode(block, 'SEQUENCE', Generator.ORDER_NONE) || null;
26
+ return `${Generator.spriteName()}.when(:makey_pressed_in_oder, ${sequence}) do\n`;
27
28
29
return Generator;
30
}
0 commit comments