Spaces:
No application file
No application file
| { | |
| "event_whenkeypressed_1": { | |
| "block_name": "when () key pressed", | |
| "block_type": "Events", | |
| "op_code": "event_whenkeypressed", | |
| "block_shape": "Hat Block", | |
| "functionality": "This Hat block initiates the script when a specified keyboard key is pressed.", | |
| "inputs": {}, | |
| "fields": { | |
| "KEY_OPTION": [ | |
| "space ", | |
| null | |
| ] | |
| }, | |
| "shadow": false, | |
| "topLevel": true, | |
| "id": "event_whenkeypressed_1", | |
| "parent": null, | |
| "next": "motion_changeyby_1" | |
| }, | |
| "motion_changeyby_1": { | |
| "block_name": "change y by ()", | |
| "block_type": "Motion", | |
| "block_shape": "Stack Block", | |
| "op_code": "motion_changeyby", | |
| "functionality": "Changes the sprite's Y-coordinate by the specified amount, moving it vertically.", | |
| "inputs": { | |
| "DY": { | |
| "kind": "value", | |
| "value": 10 | |
| } | |
| }, | |
| "fields": {}, | |
| "shadow": false, | |
| "topLevel": false, | |
| "id": "motion_changeyby_1", | |
| "parent": "event_whenkeypressed_1", | |
| "next": "control_wait_1" | |
| }, | |
| "motion_changeyby_2": { | |
| "block_name": "change y by ()", | |
| "block_type": "Motion", | |
| "block_shape": "Stack Block", | |
| "op_code": "motion_changeyby", | |
| "functionality": "Changes the sprite's Y-coordinate by the specified amount, moving it vertically.", | |
| "inputs": { | |
| "DY": { | |
| "kind": "value", | |
| "value": -10 | |
| } | |
| }, | |
| "fields": {}, | |
| "shadow": false, | |
| "topLevel": false, | |
| "id": "motion_changeyby_2", | |
| "parent": "control_wait_1", | |
| "next": null | |
| }, | |
| "control_wait_1": { | |
| "block_name": "wait () seconds", | |
| "block_type": "Control", | |
| "block_shape": "Stack Block", | |
| "op_code": "control_wait", | |
| "functionality": "Pauses the script for a specified duration.", | |
| "inputs": { | |
| "DURATION": { | |
| "kind": "value", | |
| "value": 0.2 | |
| } | |
| }, | |
| "fields": {}, | |
| "shadow": false, | |
| "topLevel": false, | |
| "id": "control_wait_1", | |
| "parent": "motion_changeyby_1", | |
| "next": "motion_changeyby_2" | |
| } | |
| } |