Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "objName": "Stage",
- "variables": [{
- "name": "n",
- "value": "700",
- "isPersistent": false
- },
- {
- "name": "counter",
- "value": 60007,
- "isPersistent": false
- },
- {
- "name": "i",
- "value": 5,
- "isPersistent": false
- },
- {
- "name": "is_palindrome",
- "value": "1",
- "isPersistent": false
- }],
- "lists": [{
- "listName": "palindromes",
- "contents": [],
- "isPersistent": false,
- "x": 2,
- "y": 56,
- "width": 104,
- "height": 204,
- "visible": false
- }],
- "scripts": [[639, 148.5, [["letter:of:", 1, ["readVariable", "is_palindrome"]]]],
- [683, 370, [["readVariable", "counter"]]],
- [697, 365, [["readVariable", "n"]]],
- [59,
- 92,
- [["whenGreenFlag"],
- ["deleteLine:ofList:", "all", "palindromes"],
- ["doAsk", "n: "],
- ["setVar:to:", "n", ["answer"]],
- ["setVar:to:", "counter", 0],
- ["doUntil",
- ["=", ["lineCountOfList:", "palindromes"], ["readVariable", "n"]],
- [["setVar:to:", "is_palindrome", "1"],
- ["setVar:to:", "i", 0],
- ["doRepeat",
- ["stringLength:", ["readVariable", "counter"]],
- [["doIf",
- ["not",
- ["=",
- ["letter:of:", ["+", ["readVariable", "i"], 1], ["readVariable", "counter"]],
- ["letter:of:",
- ["-", ["stringLength:", ["readVariable", "counter"]], ["readVariable", "i"]],
- ["readVariable", "counter"]]]],
- [["setVar:to:", "is_palindrome", 0]]],
- ["changeVar:by:", "i", 1]]],
- ["doIf",
- ["=", ["readVariable", "is_palindrome"], "1"],
- [["append:toList:", ["readVariable", "counter"], "palindromes"]]],
- ["changeVar:by:", "counter", 1]]]]]],
- "sounds": [{
- "soundName": "pop",
- "soundID": 0,
- "md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
- "sampleCount": 258,
- "rate": 11025,
- "format": ""
- }],
- "costumes": [{
- "costumeName": "backdrop1",
- "baseLayerID": 3,
- "baseLayerMD5": "b61b1077b0ea1931abee9dbbfa7903ff.png",
- "bitmapResolution": 2,
- "rotationCenterX": 480,
- "rotationCenterY": 360
- }],
- "currentCostumeIndex": 0,
- "penLayerMD5": "5c81a336fab8be57adc039a8a2b33ca9.png",
- "penLayerID": 0,
- "tempoBPM": 60,
- "videoAlpha": 0.5,
- "children": [{
- "target": "Stage",
- "cmd": "getVar:",
- "param": "n",
- "color": 15629590,
- "label": "n",
- "mode": 1,
- "sliderMin": 0,
- "sliderMax": 100,
- "isDiscrete": true,
- "x": 5,
- "y": 5,
- "visible": false
- },
- {
- "target": "Stage",
- "cmd": "getVar:",
- "param": "counter",
- "color": 15629590,
- "label": "counter",
- "mode": 1,
- "sliderMin": 0,
- "sliderMax": 100,
- "isDiscrete": true,
- "x": 5,
- "y": 266,
- "visible": false
- },
- {
- "target": "Stage",
- "cmd": "getVar:",
- "param": "i",
- "color": 15629590,
- "label": "i",
- "mode": 1,
- "sliderMin": 0,
- "sliderMax": 100,
- "isDiscrete": true,
- "x": 5,
- "y": 293,
- "visible": false
- },
- {
- "target": "Stage",
- "cmd": "getVar:",
- "param": "is_palindrome",
- "color": 15629590,
- "label": "is_palindrome",
- "mode": 1,
- "sliderMin": 0,
- "sliderMax": 100,
- "isDiscrete": true,
- "x": 75,
- "y": 5,
- "visible": false
- },
- {
- "target": "Stage",
- "cmd": "answer",
- "param": null,
- "color": 2926050,
- "label": "Antwort",
- "mode": 1,
- "sliderMin": 0,
- "sliderMax": 100,
- "isDiscrete": true,
- "x": 4,
- "y": 8,
- "visible": true
- },
- {
- "objName": "Penguin2 Talk",
- "scripts": [[10,
- 10,
- [["whenGreenFlag"],
- ["deleteLine:ofList:", "all", "palindromes"],
- ["doAsk", "Give me an n!"],
- ["setVar:to:", "n", ["answer"]],
- ["setVar:to:", "counter", 0],
- ["doUntil",
- ["=", ["lineCountOfList:", "palindromes"], ["readVariable", "n"]],
- [["setVar:to:", "is_palindrome", "1"],
- ["setVar:to:", "i", 0],
- ["doRepeat",
- ["stringLength:", ["readVariable", "counter"]],
- [["doIf",
- ["not",
- ["=",
- ["letter:of:", ["+", ["readVariable", "i"], 1], ["readVariable", "counter"]],
- ["letter:of:",
- ["-", ["stringLength:", ["readVariable", "counter"]], ["readVariable", "i"]],
- ["readVariable", "counter"]]]],
- [["setVar:to:", "is_palindrome", 0]]],
- ["changeVar:by:", "i", 1]]],
- ["doIf",
- ["=", ["readVariable", "is_palindrome"], "1"],
- [["append:toList:", ["readVariable", "counter"], "palindromes"]]],
- ["changeVar:by:", "counter", 1]]],
- ["say:",
- ["concatenate:with:",
- ["concatenate:with:", ["concatenate:with:", ["getLine:ofList:", "last", "palindromes"], " is the "], ["readVariable", "n"]],
- "th base 10 palindrome!"]]]]],
- "sounds": [{
- "soundName": "pop",
- "soundID": 0,
- "md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
- "sampleCount": 258,
- "rate": 11025,
- "format": ""
- }],
- "costumes": [{
- "costumeName": "penguin2 talk-a",
- "baseLayerID": 1,
- "baseLayerMD5": "5a80f4b2fd20d43e4f7cb4189c08d99c.svg",
- "bitmapResolution": 1,
- "rotationCenterX": 45,
- "rotationCenterY": 79
- },
- {
- "costumeName": "penguin2 talk-b",
- "baseLayerID": 2,
- "baseLayerMD5": "394e79f5f9a462064ece2a9a6606a07d.svg",
- "bitmapResolution": 1,
- "rotationCenterX": 50,
- "rotationCenterY": 78
- }],
- "currentCostumeIndex": 0,
- "scratchX": -77,
- "scratchY": -31,
- "scale": 1,
- "direction": 90,
- "rotationStyle": "normal",
- "isDraggable": false,
- "indexInLibrary": 1,
- "visible": true,
- "spriteInfo": {
- }
- },
- {
- "listName": "palindromes",
- "contents": [],
- "isPersistent": false,
- "x": 2,
- "y": 56,
- "width": 104,
- "height": 204,
- "visible": false
- }],
- "info": {
- "scriptCount": 2,
- "projectID": "196522903",
- "hasCloudData": false,
- "spriteCount": 1,
- "swfVersion": "v459.1",
- "videoOn": false,
- "flashVersion": "WIN 28,0,0,126",
- "userAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/63.0.3239.84 Safari\/537.36"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement