{ "targets": [ { "isStage": true, "name": "Stage", "objName": "Stage", "variables": {}, "lists": {}, "broadcasts": {}, "blocks": {}, "comments": {}, "currentCostume": 0, "costumes": [ { "name": "Blue Sky", "bitmapResolution": 1, "dataFormat": "svg", "assetId": "e7c147730f19d284bcd7b3f00af19bb6", "md5ext": "e7c147730f19d284bcd7b3f00af19bb6.svg", "rotationCenterX": 240, "rotationCenterY": 180 } ], "sounds": [], "volume": 100, "layerOrder": 0, "tempo": 60, "videoTransparency": 50, "videoState": "on", "textToSpeechLanguage": null }, { "isStage": false, "name": "Sprite1", "objName": "Sprite1", "variables": {}, "lists": {}, "broadcasts": {}, "blocks": { "hatBlockID": { "opcode": "event_whenflagclicked", "next": "goToXYBlockID", "parent": null, "topLevel": true, "shadow": false, "x": 0, "y": 0 }, "goToXYBlockID": { "opcode": "motion_gotoxy", "inputs": { "X": [ 1, "shadowNum0ID_X" ], "Y": [ 1, "shadowNum0ID_Y" ] }, "next": "setDirectionBlockID", "parent": "hatBlockID", "topLevel": false, "shadow": false, "x": 100, "y": -50 }, "shadowNum0ID_X": { "opcode": "math_number", "fields": { "NUM": [ "0", null ] }, "parent": "goToXYBlockID", "shadow": true, "topLevel": false }, "shadowNum0ID_Y": { "opcode": "math_number", "fields": { "NUM": [ "0", null ] }, "parent": "goToXYBlockID", "shadow": true, "topLevel": false }, "setDirectionBlockID": { "opcode": "motion_setdirection", "inputs": { "DIRECTION": [ 1, "shadowNum90ID" ] }, "next": "foreverBlockID", "parent": "goToXYBlockID", "topLevel": false, "shadow": false, "x": 100, "y": -100 }, "shadowNum90ID": { "opcode": "math_number", "fields": { "NUM": [ "90", null ] }, "parent": "setDirectionBlockID", "shadow": true, "topLevel": false }, "foreverBlockID": { "opcode": "control_forever", "inputs": { "SUBSTACK": [ 2, "moveStepsBlockID" ] }, "next": null, "parent": "setDirectionBlockID", "topLevel": false, "shadow": false, "x": 150, "y": -150 }, "moveStepsBlockID": { "opcode": "motion_movesteps", "inputs": { "STEPS": [ 1, "shadowNum5ID" ] }, "next": "ifBlockID", "parent": "foreverBlockID", "topLevel": false, "shadow": false, "x": 200, "y": -200 }, "shadowNum5ID": { "opcode": "math_number", "fields": { "NUM": [ "5", null ] }, "parent": "moveStepsBlockID", "shadow": true, "topLevel": false }, "ifBlockID": { "opcode": "control_if", "inputs": { "CONDITION": [ 1, "touchingEdgeBlockID" ], "SUBSTACK": [ 2, "bounceEdgeBlockID" ] }, "next": null, "parent": "foreverBlockID", "topLevel": false, "shadow": false, "x": 250, "y": -250 }, "touchingEdgeBlockID": { "opcode": "sensing_touchingobject", "inputs": { "TOUCHINGOBJECTMENU": [ 1, "shadowEdgeID" ] }, "parent": "ifBlockID", "next": null, "topLevel": false, "shadow": false, "x": 300, "y": -300 }, "shadowEdgeID": { "opcode": "sensing_touchingobjectmenu", "fields": { "TOUCHINGOBJECTMENU": [ "edge", null ] }, "parent": "touchingEdgeBlockID", "shadow": true, "topLevel": false }, "bounceEdgeBlockID": { "opcode": "motion_ifonedgebounce", "next": null, "parent": "ifBlockID", "topLevel": false, "shadow": false, "x": 300, "y": -350 }, "keyPressHatID": { "opcode": "event_whenkeypressed", "fields": { "KEY": [ "space", null ] }, "next": "changeY10ID", "parent": null, "topLevel": true, "shadow": false, "x": 0, "y": 150 }, "changeY10ID": { "opcode": "motion_changeyby", "inputs": { "DY": [ 1, "shadowNum10ID" ] }, "next": "wait01ID", "parent": "keyPressHatID", "topLevel": false, "shadow": false, "x": 50, "y": -50 }, "shadowNum10ID": { "opcode": "math_number", "fields": { "NUM": [ "10", null ] }, "parent": "changeY10ID", "shadow": true, "topLevel": false }, "wait01ID": { "opcode": "control_wait", "inputs": { "DURATION": [ 1, "shadowNum01ID" ] }, "next": "changeY-10ID", "parent": "changeY10ID", "topLevel": false, "shadow": false, "x": 50, "y": -100 }, "shadowNum01ID": { "opcode": "math_number", "fields": { "NUM": [ "0.1", null ] }, "parent": "wait01ID", "shadow": true, "topLevel": false }, "changeY-10ID": { "opcode": "motion_changeyby", "inputs": { "DY": [ 1, "shadowNum-10ID" ] }, "next": "repeatUntilSpaceID", "parent": "wait01ID", "topLevel": false, "shadow": false, "x": 50, "y": -150 }, "shadowNum-10ID": { "opcode": "math_number", "fields": { "NUM": [ "-10", null ] }, "parent": "changeY-10ID", "shadow": true, "topLevel": false }, "repeatUntilSpaceID": { "opcode": "control_repeat_until", "inputs": { "CONDITION": [ 1, "spaceKeyPressedID" ] }, "next": null, "parent": "changeY-10ID", "topLevel": false, "shadow": false, "x": 100, "y": -200 }, "spaceKeyPressedID": { "opcode": "sensing_keypressed", "inputs": { "KEY_OPTION": [ 1, "shadowSpaceKeyID" ] }, "parent": "repeatUntilSpaceID", "shadow": false, "topLevel": false }, "shadowSpaceKeyID": { "opcode": "sensing_keypressed_keymenu", "fields": { "KEY_OPTION": [ "space", null ] }, "parent": "spaceKeyPressedID", "shadow": true, "topLevel": false }, "move10StepsID": { "opcode": "motion_movesteps", "inputs": { "STEPS": [ 1, "shadowNum10StepsID" ] }, "parent": "repeatUntilSpaceID", "next": "ifTouchingSoccerBallID", "topLevel": false, "shadow": false, "x": 150, "y": -250 }, "shadowNum10StepsID": { "opcode": "math_number", "fields": { "NUM": [ "10", null ] }, "parent": "move10StepsID", "shadow": true, "topLevel": false }, "ifTouchingSoccerBallID": { "opcode": "control_if", "inputs": { "CONDITION": [ 1, "touchingSoccerBallID" ], "SUBSTACK": [ 2, "loseLifeID" ] }, "parent": "repeatUntilSpaceID", "next": null, "topLevel": false, "shadow": false, "x": 200, "y": -300 }, "touchingSoccerBallID": { "opcode": "sensing_touchingobject", "inputs": { "TOUCHINGOBJECTMENU": [ 1, "shadowSoccerBallID" ] }, "parent": "ifTouchingSoccerBallID", "shadow": false, "topLevel": false }, "shadowSoccerBallID": { "opcode": "sensing_touchingobjectmenu", "fields": { "TOUCHINGOBJECTMENU": [ "soccer ball", null ] }, "parent": "touchingSoccerBallID", "shadow": true, "topLevel": false }, "loseLifeID": { "opcode": "data_changevariableby", "inputs": { "VALUE": [ 1, "shadowNum-1ID" ] }, "parent": "ifTouchingSoccerBallID", "next": null, "topLevel": false, "shadow": false, "x": 250, "y": -350 }, "shadowNum-1ID": { "opcode": "math_number", "fields": { "NUM": [ "-1", null ] }, "parent": "loseLifeID", "shadow": true, "topLevel": false } }, "comments": {}, "currentCostume": 0, "costumes": [ { "name": "Sprite1", "bitmapResolution": 1, "dataFormat": "svg", "assetId": "bcf454acf82e4504149f7ffe07081dbc", "md5ext": "bcf454acf82e4504149f7ffe07081dbc.svg", "rotationCenterX": 0, "rotationCenterY": 0 } ], "sounds": [], "volume": 100, "layerOrder": 2, "visible": true, "x": 0, "y": -200, "size": 100, "direction": 90, "draggable": false, "rotationStyle": "all around" }, { "isStage": false, "name": "soccer ball", "objName": "soccer ball", "variables": {}, "lists": {}, "broadcasts": {}, "blocks": { "hatBlockID": { "opcode": "event_whenflagclicked", "next": "goToRandomPosBlockID", "parent": null, "topLevel": true, "shadow": false, "x": 0, "y": 0 }, "goToRandomPosBlockID": { "opcode": "motion_gotoxy", "inputs": { "X": [ 1, "randomXBlockID" ], "Y": [ 1, "randomYBlockID" ] }, "next": "foreverBlockID", "parent": "hatBlockID", "topLevel": false, "shadow": false, "x": 0, "y": 50 }, "randomXBlockID": { "opcode": "operators_random", "inputs": { "FROM": [ 1, "shadowRandomXFrom" ], "TO": [ 1, "shadowRandomXTo" ] }, "parent": "goToRandomPosBlockID", "shadow": true, "topLevel": false }, "shadowRandomXFrom": { "opcode": "math_number", "fields": { "NUM": ["240", null] }, "parent": "randomXBlockID", "shadow": true, "topLevel": false }, "shadowRandomXTo": { "opcode": "math_number", "fields": { "NUM": ["-240", null] }, "parent": "randomXBlockID", "shadow": true, "topLevel": false }, "randomYBlockID": { "opcode": "operators_random", "inputs": { "FROM": [ 1, "shadowRandomYFrom" ], "TO": [ 1, "shadowRandomYTo" ] }, "parent": "goToRandomPosBlockID", "shadow": true, "topLevel": false }, "shadowRandomYFrom": { "opcode": "math_number", "fields": { "NUM": ["-100", null] }, "parent": "randomYBlockID", "shadow": true, "topLevel": false }, "shadowRandomYTo": { "opcode": "math_number", "fields": { "NUM": ["100", null] }, "parent": "randomYBlockID", "shadow": true, "topLevel": false }, "foreverBlockID": { "opcode": "control_forever", "inputs": { "SUBSTACK": [ 2, "glideToRandomPosBlockID" ] }, "next": null, "parent": "goToRandomPosBlockID", "topLevel": false, "shadow": false, "x": 0, "y": 100 }, "glideToRandomPosBlockID": { "opcode": "motion_glidesecstoxy", "inputs": { "SECS": [ 1, "shadowNum2SecsID" ], "X": [ 1, "randomXBlockID2" ], "Y": [ 1, "randomYBlockID2" ] }, "next": "ifTouchingSprite1BlockID", "parent": "foreverBlockID", "topLevel": false, "shadow": false, "x": 0, "y": 150 }, "shadowNum2SecsID": { "opcode": "math_number", "fields": { "NUM": ["2", null] }, "parent": "glideToRandomPosBlockID", "shadow": true, "topLevel": false }, "randomXBlockID2": { "opcode": "operators_random", "inputs": { "FROM": [ 1, "shadowRandomX2From" ], "TO": [ 1, "shadowRandomX2To" ] }, "parent": "glideToRandomPosBlockID", "shadow": true, "topLevel": false }, "shadowRandomX2From": { "opcode": "math_number", "fields": { "NUM": ["-240", null] }, "parent": "randomXBlockID2", "shadow": true, "topLevel": false }, "shadowRandomX2To": { "opcode": "math_number", "fields": { "NUM": ["240", null] }, "parent": "randomXBlockID2", "shadow": true, "topLevel": false }, "randomYBlockID2": { "opcode": "operators_random", "inputs": { "FROM": [ 1, "shadowRandomY2From" ], "TO": [ 1, "shadowRandomY2To" ] }, "parent": "glideToRandomPosBlockID", "shadow": true, "topLevel": false }, "shadowRandomY2From": { "opcode": "math_number", "fields": { "NUM": ["-100", null] }, "parent": "randomYBlockID2", "shadow": true, "topLevel": false }, "shadowRandomY2To": { "opcode": "math_number", "fields": { "NUM": ["100", null] }, "parent": "randomYBlockID2", "shadow": true, "topLevel": false }, "ifTouchingSprite1BlockID": { "opcode": "control_if", "inputs": { "CONDITION": [ 1, "touchingSprite1BlockID" ], "SUBSTACK": [ 2, "sayGameOverBlockID" ] }, "next": null, "parent": "glideToRandomPosBlockID", "topLevel": false, "shadow": false, "x": 0, "y": 200 }, "touchingSprite1BlockID": { "opcode": "sensing_touchingobject", "inputs": { "TOUCHINGOBJECTMENU": [ 1, "sprite1MenuBlockID" ] }, "parent": "ifTouchingSprite1BlockID", "shadow": false, "topLevel": false }, "sprite1MenuBlockID": { "opcode": "sensing_touchingobjectmenu", "fields": { "TOUCHINGOBJECTMENU": [ "Sprite1", null ] }, "parent": "touchingSprite1BlockID", "shadow": true, "topLevel": false }, "sayGameOverBlockID": { "opcode": "looks_say", "inputs": { "MESSAGE": [ 1, "shadowGameOverMessage" ] }, "next": null, "parent": "ifTouchingSprite1BlockID", "topLevel": false, "shadow": false, "x": 0, "y": 250 }, "shadowGameOverMessage": { "opcode": "text_reporter", "fields": { "TEXT": ["Game Over", null] }, "parent": "sayGameOverBlockID", "shadow": true, "topLevel": false } }, "comments": {}, "currentCostume": 0, "costumes": [ { "name": "soccer ball", "bitmapResolution": 1, "dataFormat": "svg", "assetId": "5d973d7a3a8be3f3bd6e1cd0f73c32b5", "md5ext": "5d973d7a3a8be3f3bd6e1cd0f73c32b5.svg", "rotationCenterX": 0, "rotationCenterY": 0 } ], "sounds": [], "volume": 100, "layerOrder": 3, "visible": true, "x": 240, "y": 0, "size": 100, "direction": 90, "draggable": false, "rotationStyle": "all around" } ], "monitors": [], "extensions": [], "meta": { "semver": "3.0.0", "vm": "11.1.0", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36" } }