{"id":36329,"student_id":13,"content":"{\n \"objName\": \"Stage\",\n \"variables\": [\n {\n \"name\": \"豆豆\",\n \"value\": 4,\n \"isPersistent\": false\n }\n ],\n \"lists\": [\n {\n \"listName\": \"地圖\",\n \"contents\": [\n \"2222222222222222\",\n \"2111111221111112\",\n \"2122221221222212\",\n \"2122211111122212\",\n \"2111112222111112\",\n \"2122211111122212\",\n \"2111112332111112\",\n \"2222123333212222\",\n \"2222123333212222\",\n \"2111112332111112\",\n \"2122211111122212\",\n \"2111112222111112\",\n \"2122211111122212\",\n \"2122221221222212\",\n \"2111111221111112\",\n \"2222222222222222\"\n ],\n \"isPersistent\": false,\n \"x\": 8,\n \"y\": 6,\n \"width\": 346,\n \"height\": 356,\n \"visible\": false\n }\n ],\n \"scripts\": [\n [\n 16,\n 17,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"setVar:to:\",\n \"豆豆\",\n 0\n ],\n [\n \"deleteLine:ofList:\",\n \"all\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2222222222222222\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2111111221111112\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2122221221222212\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2122211111122212\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2111112222111112\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2122211111122212\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2111112332111112\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2222123333212222\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2222123333212222\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2111112332111112\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2122211111122212\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2111112222111112\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2122211111122212\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2122221221222212\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2111111221111112\",\n \"地圖\"\n ],\n [\n \"append:toList:\",\n \"2222222222222222\",\n \"地圖\"\n ],\n [\n \"doBroadcastAndWait\",\n \"產生地圖\"\n ],\n [\n \"broadcast:\",\n \"吃豆人出現\"\n ],\n [\n \"broadcast:\",\n \"鬼魂出現\"\n ],\n [\n \"doWaitUntil\",\n [\n \"=\",\n [\n \"readVariable\",\n \"豆豆\"\n ],\n \"0\"\n ]\n ],\n [\n \"broadcast:\",\n \"勝利\"\n ],\n [\n \"stopScripts\",\n \"all\"\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"backdrop1\",\n \"baseLayerID\": 1,\n \"baseLayerMD5\": \"f5e250886e3bafbbd9bc2398a5e321c5.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 480,\n \"rotationCenterY\": 360\n }\n ],\n \"currentCostumeIndex\": 0,\n \"penLayerMD5\": \"5c81a336fab8be57adc039a8a2b33ca9.png\",\n \"penLayerID\": 0,\n \"tempoBPM\": 60,\n \"videoAlpha\": 0.5,\n \"children\": [\n {\n \"objName\": \"豆豆\",\n \"variables\": [\n {\n \"name\": \"x\",\n \"value\": 9,\n \"isPersistent\": false\n },\n {\n \"name\": \"y\",\n \"value\": 9,\n \"isPersistent\": false\n }\n ],\n \"scripts\": [\n [\n 268,\n 16,\n [\n [\n \"whenCloned\"\n ],\n [\n \"lookLike:\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"show\"\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ],\n \"1\"\n ],\n [\n [\n \"changeVar:by:\",\n \"豆豆\",\n 1\n ],\n [\n \"doWaitUntil\",\n [\n \"touching:\",\n \"吃豆人\"\n ]\n ],\n [\n \"changeVar:by:\",\n \"豆豆\",\n -1\n ],\n [\n \"deleteClone\"\n ]\n ]\n ]\n ]\n ],\n [\n 5,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"hide\"\n ]\n ]\n ],\n [\n 6,\n 99,\n [\n [\n \"whenIReceive\",\n \"產生地圖\"\n ],\n [\n \"gotoX:y:\",\n -150,\n 150\n ],\n [\n \"hide\"\n ],\n [\n \"setVar:to:\",\n \"y\",\n \"1\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"setVar:to:\",\n \"x\",\n \"1\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"createCloneOf\",\n \"_myself_\"\n ],\n [\n \"forward:\",\n 20\n ],\n [\n \"changeVar:by:\",\n \"x\",\n 1\n ]\n ]\n ],\n [\n \"xpos:\",\n -150\n ],\n [\n \"changeYposBy:\",\n -20\n ],\n [\n \"changeVar:by:\",\n \"y\",\n 1\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"1\",\n \"baseLayerID\": 2,\n \"baseLayerMD5\": \"360bd03ca24bc17c370ae57e18833267.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 8,\n \"rotationCenterY\": 8\n },\n {\n \"costumeName\": \"2\",\n \"baseLayerID\": 3,\n \"baseLayerMD5\": \"97d9c51bbd24e83b0240d6d6c2d4a560.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n },\n {\n \"costumeName\": \"3\",\n \"baseLayerID\": 4,\n \"baseLayerMD5\": \"fef14bf1583cf7d9bf5b41004b206b2e.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": -150,\n \"scratchY\": -10,\n \"scale\": 1,\n \"direction\": 90,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 1,\n \"visible\": false,\n \"spriteInfo\": {\n }\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"i\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: i\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 5,\n \"y\": 5,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"吃豆人的方位\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 吃豆人的方位\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 5,\n \"y\": 86,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"是否可轉彎\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 是否可轉彎\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 5,\n \"y\": 113,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"是否有路\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 是否有路\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 5,\n \"y\": 59,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"挑選的方向\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 挑選的方向\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 118,\n \"y\": 239,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"有路的方向的編號\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 有路的方向的編號\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 118,\n \"y\": 266,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"紅色鬼魂移動方向\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 紅色鬼魂移動方向\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 118,\n \"y\": 214,\n \"visible\": false\n },\n {\n \"target\": \"紅色鬼魂\",\n \"cmd\": \"getVar:\",\n \"param\": \"路的數量\",\n \"color\": 15629590,\n \"label\": \"紅色鬼魂: 路的數量\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 5,\n \"y\": 32,\n \"visible\": false\n },\n {\n \"target\": \"Stage\",\n \"cmd\": \"getVar:\",\n \"param\": \"豆豆\",\n \"color\": 15629590,\n \"label\": \"豆豆\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 118,\n \"y\": 293,\n \"visible\": false\n },\n {\n \"target\": \"豆豆\",\n \"cmd\": \"getVar:\",\n \"param\": \"x\",\n \"color\": 15629590,\n \"label\": \"豆豆: x\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 207,\n \"y\": 5,\n \"visible\": false\n },\n {\n \"target\": \"豆豆\",\n \"cmd\": \"getVar:\",\n \"param\": \"y\",\n \"color\": 15629590,\n \"label\": \"豆豆: y\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 291,\n \"y\": 22,\n \"visible\": false\n },\n {\n \"objName\": \"豆豆2\",\n \"variables\": [\n {\n \"name\": \"x\",\n \"value\": 8,\n \"isPersistent\": false\n },\n {\n \"name\": \"y\",\n \"value\": 9,\n \"isPersistent\": false\n }\n ],\n \"scripts\": [\n [\n 268,\n 16,\n [\n [\n \"whenCloned\"\n ],\n [\n \"lookLike:\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"show\"\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ],\n \"1\"\n ],\n [\n [\n \"changeVar:by:\",\n \"豆豆\",\n 1\n ],\n [\n \"doWaitUntil\",\n [\n \"touching:\",\n \"吃豆人\"\n ]\n ],\n [\n \"changeVar:by:\",\n \"豆豆\",\n -1\n ],\n [\n \"deleteClone\"\n ]\n ]\n ]\n ]\n ],\n [\n 5,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"hide\"\n ]\n ]\n ],\n [\n 6,\n 99,\n [\n [\n \"whenIReceive\",\n \"產生地圖\"\n ],\n [\n \"gotoX:y:\",\n 150,\n 150\n ],\n [\n \"hide\"\n ],\n [\n \"setVar:to:\",\n \"y\",\n \"1\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"setVar:to:\",\n \"x\",\n \"16\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"createCloneOf\",\n \"_myself_\"\n ],\n [\n \"forward:\",\n -20\n ],\n [\n \"changeVar:by:\",\n \"x\",\n -1\n ]\n ]\n ],\n [\n \"xpos:\",\n 150\n ],\n [\n \"changeYposBy:\",\n -20\n ],\n [\n \"changeVar:by:\",\n \"y\",\n 1\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"1\",\n \"baseLayerID\": 2,\n \"baseLayerMD5\": \"360bd03ca24bc17c370ae57e18833267.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 8,\n \"rotationCenterY\": 8\n },\n {\n \"costumeName\": \"2\",\n \"baseLayerID\": 3,\n \"baseLayerMD5\": \"97d9c51bbd24e83b0240d6d6c2d4a560.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n },\n {\n \"costumeName\": \"3\",\n \"baseLayerID\": 4,\n \"baseLayerMD5\": \"fef14bf1583cf7d9bf5b41004b206b2e.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": 150,\n \"scratchY\": -10,\n \"scale\": 1,\n \"direction\": 90,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 2,\n \"visible\": false,\n \"spriteInfo\": {\n }\n },\n {\n \"objName\": \"豆豆3\",\n \"variables\": [\n {\n \"name\": \"x\",\n \"value\": 9,\n \"isPersistent\": false\n },\n {\n \"name\": \"y\",\n \"value\": 8,\n \"isPersistent\": false\n }\n ],\n \"scripts\": [\n [\n 268,\n 16,\n [\n [\n \"whenCloned\"\n ],\n [\n \"lookLike:\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"show\"\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ],\n \"1\"\n ],\n [\n [\n \"changeVar:by:\",\n \"豆豆\",\n 1\n ],\n [\n \"doWaitUntil\",\n [\n \"touching:\",\n \"吃豆人\"\n ]\n ],\n [\n \"changeVar:by:\",\n \"豆豆\",\n -1\n ],\n [\n \"deleteClone\"\n ]\n ]\n ]\n ]\n ],\n [\n 5,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"hide\"\n ]\n ]\n ],\n [\n 6,\n 99,\n [\n [\n \"whenIReceive\",\n \"產生地圖\"\n ],\n [\n \"gotoX:y:\",\n -150,\n -150\n ],\n [\n \"hide\"\n ],\n [\n \"setVar:to:\",\n \"y\",\n \"16\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"setVar:to:\",\n \"x\",\n \"1\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"createCloneOf\",\n \"_myself_\"\n ],\n [\n \"forward:\",\n 20\n ],\n [\n \"changeVar:by:\",\n \"x\",\n 1\n ]\n ]\n ],\n [\n \"xpos:\",\n -150\n ],\n [\n \"changeYposBy:\",\n 20\n ],\n [\n \"changeVar:by:\",\n \"y\",\n -1\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"1\",\n \"baseLayerID\": 2,\n \"baseLayerMD5\": \"360bd03ca24bc17c370ae57e18833267.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 8,\n \"rotationCenterY\": 8\n },\n {\n \"costumeName\": \"2\",\n \"baseLayerID\": 3,\n \"baseLayerMD5\": \"97d9c51bbd24e83b0240d6d6c2d4a560.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n },\n {\n \"costumeName\": \"3\",\n \"baseLayerID\": 4,\n \"baseLayerMD5\": \"fef14bf1583cf7d9bf5b41004b206b2e.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": -150,\n \"scratchY\": 10,\n \"scale\": 1,\n \"direction\": 90,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 3,\n \"visible\": false,\n \"spriteInfo\": {\n }\n },\n {\n \"objName\": \"豆豆4\",\n \"variables\": [\n {\n \"name\": \"x\",\n \"value\": 8,\n \"isPersistent\": false\n },\n {\n \"name\": \"y\",\n \"value\": 8,\n \"isPersistent\": false\n }\n ],\n \"scripts\": [\n [\n 268,\n 16,\n [\n [\n \"whenCloned\"\n ],\n [\n \"lookLike:\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"show\"\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"letter:of:\",\n [\n \"readVariable\",\n \"x\"\n ],\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"y\"\n ],\n \"地圖\"\n ]\n ],\n \"1\"\n ],\n [\n [\n \"changeVar:by:\",\n \"豆豆\",\n 1\n ],\n [\n \"doWaitUntil\",\n [\n \"touching:\",\n \"吃豆人\"\n ]\n ],\n [\n \"changeVar:by:\",\n \"豆豆\",\n -1\n ],\n [\n \"deleteClone\"\n ]\n ]\n ]\n ]\n ],\n [\n 5,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"hide\"\n ]\n ]\n ],\n [\n 6,\n 99,\n [\n [\n \"whenIReceive\",\n \"產生地圖\"\n ],\n [\n \"gotoX:y:\",\n 150,\n -150\n ],\n [\n \"hide\"\n ],\n [\n \"setVar:to:\",\n \"y\",\n \"16\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"setVar:to:\",\n \"x\",\n \"16\"\n ],\n [\n \"doRepeat\",\n 8,\n [\n [\n \"createCloneOf\",\n \"_myself_\"\n ],\n [\n \"forward:\",\n -20\n ],\n [\n \"changeVar:by:\",\n \"x\",\n -1\n ]\n ]\n ],\n [\n \"xpos:\",\n 150\n ],\n [\n \"changeYposBy:\",\n 20\n ],\n [\n \"changeVar:by:\",\n \"y\",\n -1\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"1\",\n \"baseLayerID\": 2,\n \"baseLayerMD5\": \"360bd03ca24bc17c370ae57e18833267.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 8,\n \"rotationCenterY\": 8\n },\n {\n \"costumeName\": \"2\",\n \"baseLayerID\": 3,\n \"baseLayerMD5\": \"97d9c51bbd24e83b0240d6d6c2d4a560.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n },\n {\n \"costumeName\": \"3\",\n \"baseLayerID\": 4,\n \"baseLayerMD5\": \"fef14bf1583cf7d9bf5b41004b206b2e.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 21,\n \"rotationCenterY\": 21\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": 150,\n \"scratchY\": 10,\n \"scale\": 1,\n \"direction\": 90,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 4,\n \"visible\": false,\n \"spriteInfo\": {\n }\n },\n {\n \"objName\": \"吃豆人\",\n \"variables\": [\n {\n \"name\": \"方向\",\n \"value\": \"180\",\n \"isPersistent\": false\n }\n ],\n \"lists\": [\n {\n \"listName\": \"紀錄吃豆人上右下左的地圖\",\n \"contents\": [\n \"1\",\n \"2\",\n \"1\",\n \"2\"\n ],\n \"isPersistent\": false,\n \"x\": 233,\n \"y\": 117,\n \"width\": 205,\n \"height\": 165,\n \"visible\": false\n }\n ],\n \"scripts\": [\n [\n 13,\n 452,\n [\n [\n \"whenIReceive\",\n \"吃豆人出現\"\n ],\n [\n \"show\"\n ],\n [\n \"doForever\",\n [\n [\n \"doIf\",\n [\n \"\u0026\",\n [\n \"=\",\n [\n \"readVariable\",\n \"方向\"\n ],\n \"90\"\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 2,\n \"紀錄吃豆人上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ],\n [\n [\n \"heading:\",\n 90\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u0026\",\n [\n \"=\",\n [\n \"readVariable\",\n \"方向\"\n ],\n \"-90\"\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 4,\n \"紀錄吃豆人上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ],\n [\n [\n \"heading:\",\n -90\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u0026\",\n [\n \"=\",\n [\n \"readVariable\",\n \"方向\"\n ],\n \"0\"\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 1,\n \"紀錄吃豆人上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ],\n [\n [\n \"heading:\",\n 0\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u0026\",\n [\n \"=\",\n [\n \"readVariable\",\n \"方向\"\n ],\n \"180\"\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 3,\n \"紀錄吃豆人上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ],\n [\n [\n \"heading:\",\n 180\n ]\n ]\n ],\n [\n \"doRepeat\",\n 4,\n [\n [\n \"forward:\",\n 5\n ],\n [\n \"doIf\",\n [\n \"touchingColor:\",\n -16760833\n ],\n [\n [\n \"forward:\",\n -5\n ]\n ]\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 22,\n 27,\n [\n [\n \"whenIReceive\",\n \"吃豆人出現\"\n ]\n ]\n ],\n [\n 699,\n 454,\n [\n [\n \"whenIReceive\",\n \"吃豆人出現\"\n ],\n [\n \"doForever\",\n [\n [\n \"doIf\",\n [\n \"keyPressed:\",\n \"right arrow\"\n ],\n [\n [\n \"setVar:to:\",\n \"方向\",\n \"90\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"keyPressed:\",\n \"left arrow\"\n ],\n [\n [\n \"setVar:to:\",\n \"方向\",\n \"-90\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"keyPressed:\",\n \"up arrow\"\n ],\n [\n [\n \"setVar:to:\",\n \"方向\",\n \"0\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"keyPressed:\",\n \"down arrow\"\n ],\n [\n [\n \"setVar:to:\",\n \"方向\",\n \"180\"\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 1034.6,\n 444.8,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"gotoX:y:\",\n -130,\n 130\n ],\n [\n \"lookLike:\",\n \"1\"\n ],\n [\n \"hide\"\n ],\n [\n \"deleteLine:ofList:\",\n \"all\",\n \"紀錄吃豆人上右下左的地圖\"\n ],\n [\n \"doRepeat\",\n 4,\n [\n [\n \"append:toList:\",\n \"0\",\n \"紀錄吃豆人上右下左的地圖\"\n ]\n ]\n ],\n [\n \"doForever\",\n [\n [\n \"setLine:ofList:to:\",\n 1,\n \"紀錄吃豆人上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n [\n \"getLine:ofList:\",\n [\n \"-\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n 1\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 2,\n \"紀錄吃豆人上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"+\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n 1\n ],\n [\n \"getLine:ofList:\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 3,\n \"紀錄吃豆人上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n [\n \"getLine:ofList:\",\n [\n \"+\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n 1\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 4,\n \"紀錄吃豆人上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"-\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n 1\n ],\n [\n \"getLine:ofList:\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n \"地圖\"\n ]\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"1\",\n \"baseLayerID\": 5,\n \"baseLayerMD5\": \"6ae3f748921fa4656d0072b00c080cbf.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 16,\n \"rotationCenterY\": 15\n },\n {\n \"costumeName\": \"2\",\n \"baseLayerID\": 6,\n \"baseLayerMD5\": \"cbcc6afb5193b63ad3372a6be0520ffd.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 16,\n \"rotationCenterY\": 15\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": -30,\n \"scratchY\": 95,\n \"scale\": 1,\n \"direction\": 180,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 5,\n \"visible\": true,\n \"spriteInfo\": {\n }\n },\n {\n \"objName\": \"粉紅色鬼魂\",\n \"variables\": [\n {\n \"name\": \"i\",\n \"value\": 4,\n \"isPersistent\": false\n },\n {\n \"name\": \"吃豆人前四格的方位\",\n \"value\": \"上\",\n \"isPersistent\": false\n },\n {\n \"name\": \"是否可轉彎\",\n \"value\": \"否\",\n \"isPersistent\": false\n },\n {\n \"name\": \"是否有路\",\n \"value\": \"是\",\n \"isPersistent\": false\n },\n {\n \"name\": \"挑選的方向\",\n \"value\": \"下\",\n \"isPersistent\": false\n },\n {\n \"name\": \"有路的方向的編號\",\n \"value\": 3,\n \"isPersistent\": false\n },\n {\n \"name\": \"紅色鬼魂移動方向\",\n \"value\": 0,\n \"isPersistent\": false\n },\n {\n \"name\": \"路的數量\",\n \"value\": 3,\n \"isPersistent\": false\n }\n ],\n \"lists\": [\n {\n \"listName\": \"紀錄鬼魂上右下左的地圖\",\n \"contents\": [\n \"2\",\n \"1\",\n \"1\",\n \"1\"\n ],\n \"isPersistent\": false,\n \"x\": 0,\n \"y\": 0,\n \"width\": 218,\n \"height\": 214,\n \"visible\": false\n }\n ],\n \"scripts\": [\n [\n 10,\n 10,\n [\n [\n \"whenIReceive\",\n \"鬼魂出現\"\n ]\n ]\n ],\n [\n 1339,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"gotoX:y:\",\n 10,\n 10\n ],\n [\n \"hide\"\n ],\n [\n \"deleteLine:ofList:\",\n \"all\",\n \"紀錄鬼魂上右下左的地圖\"\n ],\n [\n \"doRepeat\",\n 4,\n [\n [\n \"append:toList:\",\n \"0\",\n \"紀錄鬼魂上右下左的地圖\"\n ]\n ]\n ],\n [\n \"doForever\",\n [\n [\n \"setLine:ofList:to:\",\n 1,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n [\n \"getLine:ofList:\",\n [\n \"-\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n 1\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 2,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"+\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n 1\n ],\n [\n \"getLine:ofList:\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 3,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n [\n \"getLine:ofList:\",\n [\n \"+\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n 1\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 4,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"-\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n 1\n ],\n [\n \"getLine:ofList:\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n \"地圖\"\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 1339,\n 416,\n [\n [\n \"procDef\",\n \"判斷是否可轉彎\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"setVar:to:\",\n \"i\",\n \"1\"\n ],\n [\n \"setVar:to:\",\n \"路的數量\",\n \"4\"\n ],\n [\n \"doRepeat\",\n 4,\n [\n [\n \"doIf\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"i\"\n ],\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"changeVar:by:\",\n \"路的數量\",\n -1\n ]\n ]\n ],\n [\n \"changeVar:by:\",\n \"i\",\n 1\n ]\n ]\n ],\n [\n \"doIfElse\",\n [\n \"\u003e\",\n [\n \"readVariable\",\n \"路的數量\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否可轉彎\",\n \"是\"\n ]\n ],\n [\n [\n \"doIfElse\",\n [\n \"|\",\n [\n \"\u0026\",\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 1,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 3,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ],\n [\n \"\u0026\",\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 2,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 4,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否可轉彎\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否可轉彎\",\n \"是\"\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 1339,\n 890,\n [\n [\n \"procDef\",\n \"隨機挑一個有路的方向\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"setVar:to:\",\n \"有路的方向的編號\",\n [\n \"randomFrom:to:\",\n 1,\n 4\n ]\n ],\n [\n \"doUntil\",\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"有路的方向的編號\",\n [\n \"randomFrom:to:\",\n 1,\n 4\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"1\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"上\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"右\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"3\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"下\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"4\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"左\"\n ]\n ]\n ]\n ]\n ],\n [\n 925,\n 10,\n [\n [\n \"procDef\",\n \"取得吃豆人前四格的方位並判斷該方位是否有路\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"pointTowards:\",\n \"吃豆人前四格偵測點\"\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"-1\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人前四格的方位\",\n \"上\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"90\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人前四格的方位\",\n \"右\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"180\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人前四格的方位\",\n \"下\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"270\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人前四格的方位\",\n \"左\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人前四格的方位\"\n ],\n \"上\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 1,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人前四格的方位\"\n ],\n \"右\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 2,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人前四格的方位\"\n ],\n \"下\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 3,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人前四格的方位\"\n ],\n \"左\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 4,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"Ghost2\",\n \"baseLayerID\": 7,\n \"baseLayerMD5\": \"2858c77b3aa045fba23372dabd192a38.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 19,\n \"rotationCenterY\": 19\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": -70,\n \"scratchY\": 30,\n \"scale\": 1,\n \"direction\": 0,\n \"rotationStyle\": \"leftRight\",\n \"isDraggable\": false,\n \"indexInLibrary\": 7,\n \"visible\": true,\n \"spriteInfo\": {\n }\n },\n {\n \"objName\": \"吃豆人前四格偵測點\",\n \"scripts\": [\n [\n 10,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"hide\"\n ]\n ]\n ],\n [\n 10,\n 85,\n [\n [\n \"whenIReceive\",\n \"吃豆人出現\"\n ],\n [\n \"doForever\",\n [\n [\n \"gotoSpriteOrMouse:\",\n \"吃豆人\"\n ],\n [\n \"heading:\",\n [\n \"getAttribute:of:\",\n \"direction\",\n \"吃豆人\"\n ]\n ],\n [\n \"forward:\",\n 80\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"造型1\",\n \"baseLayerID\": 8,\n \"baseLayerMD5\": \"eb4cd366e191394883313ca6944ad7a7.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 10,\n \"rotationCenterY\": 10\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": -29.999999999999996,\n \"scratchY\": 20,\n \"scale\": 1,\n \"direction\": 180,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 8,\n \"visible\": false,\n \"spriteInfo\": {\n }\n },\n {\n \"objName\": \"結果\",\n \"scripts\": [\n [\n 10,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"gotoX:y:\",\n 0,\n 0\n ],\n [\n \"hide\"\n ]\n ]\n ],\n [\n 10,\n 109,\n [\n [\n \"whenIReceive\",\n \"勝利\"\n ],\n [\n \"lookLike:\",\n \"勝利\"\n ],\n [\n \"call\",\n \"結果動畫\"\n ]\n ]\n ],\n [\n 10,\n 203,\n [\n [\n \"whenIReceive\",\n \"失敗\"\n ],\n [\n \"lookLike:\",\n \"失敗\"\n ],\n [\n \"call\",\n \"結果動畫\"\n ]\n ]\n ],\n [\n 288,\n 17,\n [\n [\n \"procDef\",\n \"結果動畫\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"doRepeat\",\n 2,\n [\n [\n \"show\"\n ],\n [\n \"wait:elapsed:from:\",\n 0.3\n ],\n [\n \"hide\"\n ],\n [\n \"wait:elapsed:from:\",\n 0.3\n ],\n [\n \"show\"\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"勝利\",\n \"baseLayerID\": 9,\n \"baseLayerMD5\": \"585e588c4219b3916a865e11af6a65c4.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 90,\n \"rotationCenterY\": 19\n },\n {\n \"costumeName\": \"失敗\",\n \"baseLayerID\": 10,\n \"baseLayerMD5\": \"948495d0e7293447ffc046e349365cb2.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 98,\n \"rotationCenterY\": 20\n }\n ],\n \"currentCostumeIndex\": 1,\n \"scratchX\": 0,\n \"scratchY\": 0,\n \"scale\": 1,\n \"direction\": 90,\n \"rotationStyle\": \"normal\",\n \"isDraggable\": false,\n \"indexInLibrary\": 9,\n \"visible\": true,\n \"spriteInfo\": {\n }\n },\n {\n \"target\": \"吃豆人\",\n \"cmd\": \"getVar:\",\n \"param\": \"方向\",\n \"color\": 15629590,\n \"label\": \"吃豆人: 方向\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 306,\n \"y\": 178,\n \"visible\": false\n },\n {\n \"objName\": \"紅色鬼魂\",\n \"variables\": [\n {\n \"name\": \"i\",\n \"value\": 5,\n \"isPersistent\": false\n },\n {\n \"name\": \"吃豆人的方位\",\n \"value\": \"右\",\n \"isPersistent\": false\n },\n {\n \"name\": \"是否可轉彎\",\n \"value\": \"是\",\n \"isPersistent\": false\n },\n {\n \"name\": \"是否有路\",\n \"value\": \"是\",\n \"isPersistent\": false\n },\n {\n \"name\": \"挑選的方向\",\n \"value\": \"右\",\n \"isPersistent\": false\n },\n {\n \"name\": \"有路的方向的編號\",\n \"value\": 2,\n \"isPersistent\": false\n },\n {\n \"name\": \"紅色鬼魂移動方向\",\n \"value\": 0,\n \"isPersistent\": false\n },\n {\n \"name\": \"路的數量\",\n \"value\": 2,\n \"isPersistent\": false\n }\n ],\n \"lists\": [\n {\n \"listName\": \"紀錄鬼魂上右下左的地圖\",\n \"contents\": [\n \"2\",\n \"1\",\n \"1\",\n \"2\"\n ],\n \"isPersistent\": false,\n \"x\": 138,\n \"y\": 46,\n \"width\": 207,\n \"height\": 214,\n \"visible\": false\n }\n ],\n \"scripts\": [\n [\n 1231,\n 10,\n [\n [\n \"whenGreenFlag\"\n ],\n [\n \"gotoX:y:\",\n -10,\n 10\n ],\n [\n \"hide\"\n ],\n [\n \"deleteLine:ofList:\",\n \"all\",\n \"紀錄鬼魂上右下左的地圖\"\n ],\n [\n \"doRepeat\",\n 4,\n [\n [\n \"append:toList:\",\n \"0\",\n \"紀錄鬼魂上右下左的地圖\"\n ]\n ]\n ],\n [\n \"doForever\",\n [\n [\n \"setLine:ofList:to:\",\n 1,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n [\n \"getLine:ofList:\",\n [\n \"-\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n 1\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 2,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"+\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n 1\n ],\n [\n \"getLine:ofList:\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 3,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n [\n \"getLine:ofList:\",\n [\n \"+\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n 1\n ],\n \"地圖\"\n ]\n ]\n ],\n [\n \"setLine:ofList:to:\",\n 4,\n \"紀錄鬼魂上右下左的地圖\",\n [\n \"letter:of:\",\n [\n \"-\",\n [\n \"/\",\n [\n \"+\",\n [\n \"xpos\"\n ],\n 170\n ],\n 20\n ],\n 1\n ],\n [\n \"getLine:ofList:\",\n [\n \"/\",\n [\n \"-\",\n 170,\n [\n \"ypos\"\n ]\n ],\n 20\n ],\n \"地圖\"\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 10,\n 10,\n [\n [\n \"whenIReceive\",\n \"鬼魂出現\"\n ]\n ]\n ],\n [\n 817,\n 10,\n [\n [\n \"procDef\",\n \"取得吃豆人的方位並判斷該方位是否有路\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"pointTowards:\",\n \"吃豆人\"\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"-1\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人的方位\",\n \"上\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"90\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人的方位\",\n \"右\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"180\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人的方位\",\n \"下\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"\u003e\",\n [\n \"%\",\n [\n \"+\",\n [\n \"heading\"\n ],\n 45\n ],\n 360\n ],\n \"270\"\n ],\n [\n [\n \"setVar:to:\",\n \"吃豆人的方位\",\n \"左\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人的方位\"\n ],\n \"上\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 1,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人的方位\"\n ],\n \"右\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 2,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人的方位\"\n ],\n \"下\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 3,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"吃豆人的方位\"\n ],\n \"左\"\n ],\n [\n [\n \"doIfElse\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 4,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否有路\",\n \"是\"\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 1231,\n 416,\n [\n [\n \"procDef\",\n \"判斷是否可轉彎\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"setVar:to:\",\n \"i\",\n \"1\"\n ],\n [\n \"setVar:to:\",\n \"路的數量\",\n \"4\"\n ],\n [\n \"doRepeat\",\n 4,\n [\n [\n \"doIf\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"i\"\n ],\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ],\n [\n [\n \"changeVar:by:\",\n \"路的數量\",\n -1\n ]\n ]\n ],\n [\n \"changeVar:by:\",\n \"i\",\n 1\n ]\n ]\n ],\n [\n \"doIfElse\",\n [\n \"\u003e\",\n [\n \"readVariable\",\n \"路的數量\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"是否可轉彎\",\n \"是\"\n ]\n ],\n [\n [\n \"doIfElse\",\n [\n \"|\",\n [\n \"\u0026\",\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 1,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 3,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ],\n [\n \"\u0026\",\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 2,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ],\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n 4,\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ]\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否可轉彎\",\n \"否\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"是否可轉彎\",\n \"是\"\n ]\n ]\n ]\n ]\n ]\n ]\n ],\n [\n 1231,\n 890,\n [\n [\n \"procDef\",\n \"隨機挑一個有路的方向\",\n [\n\n ],\n [\n\n ],\n false\n ],\n [\n \"setVar:to:\",\n \"有路的方向的編號\",\n [\n \"randomFrom:to:\",\n 1,\n 4\n ]\n ],\n [\n \"doUntil\",\n [\n \"not\",\n [\n \"=\",\n [\n \"getLine:ofList:\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"紀錄鬼魂上右下左的地圖\"\n ],\n \"2\"\n ]\n ],\n [\n [\n \"setVar:to:\",\n \"有路的方向的編號\",\n [\n \"randomFrom:to:\",\n 1,\n 4\n ]\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"1\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"上\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"2\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"右\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"3\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"下\"\n ]\n ]\n ],\n [\n \"doIf\",\n [\n \"=\",\n [\n \"readVariable\",\n \"有路的方向的編號\"\n ],\n \"4\"\n ],\n [\n [\n \"setVar:to:\",\n \"挑選的方向\",\n \"左\"\n ]\n ]\n ]\n ]\n ]\n ],\n \"sounds\": [\n {\n \"soundName\": \"pop\",\n \"soundID\": 0,\n \"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n \"sampleCount\": 258,\n \"rate\": 11025,\n \"format\": \"\"\n }\n ],\n \"costumes\": [\n {\n \"costumeName\": \"Ghost1\",\n \"baseLayerID\": 11,\n \"baseLayerMD5\": \"cc58d868d6a0e04f3ce2a18d13a96556.png\",\n \"bitmapResolution\": 2,\n \"rotationCenterX\": 19,\n \"rotationCenterY\": 19\n }\n ],\n \"currentCostumeIndex\": 0,\n \"scratchX\": -40,\n \"scratchY\": 90,\n \"scale\": 1,\n \"direction\": 90,\n \"rotationStyle\": \"leftRight\",\n \"isDraggable\": false,\n \"indexInLibrary\": 6,\n \"visible\": true,\n \"spriteInfo\": {\n }\n },\n {\n \"target\": \"豆豆2\",\n \"cmd\": \"getVar:\",\n \"param\": \"x\",\n \"color\": 15629590,\n \"label\": \"豆豆2: x\",\n \"mode\": 1,\n \"sliderMin\": 0,\n \"sliderMax\": 100,\n \"isDiscrete\": true,\n \"x\": 347,\n \"y\": 49,\n \"visible\": false\n },\n {\n \"listName\": \"紀錄吃豆人上右下左的地圖\",\n \"contents\": [\n \"1\",\n \"2\",\n \"1\",\n \"2\"\n ],\n \"isPersistent\": false,\n \"x\": 233,\n \"y\": 117,\n \"width\": 205,\n \"height\": 165,\n \"visible\": false\n },\n {\n \"listName\": \"紀錄鬼魂上右下左的地圖\",\n \"contents\": [\n \"2\",\n \"1\",\n \"1\",\n \"1\"\n ],\n \"isPersistent\": false,\n \"x\": 0,\n \"y\": 0,\n \"width\": 218,\n \"height\": 214,\n \"visible\": false\n },\n {\n \"listName\": \"紀錄鬼魂上右下左的地圖\",\n \"contents\": [\n \"2\",\n \"1\",\n \"1\",\n \"2\"\n ],\n \"isPersistent\": false,\n \"x\": 138,\n \"y\": 46,\n \"width\": 207,\n \"height\": 214,\n \"visible\": false\n },\n {\n \"listName\": \"地圖\",\n \"contents\": [\n \"2222222222222222\",\n \"2111111221111112\",\n \"2122221221222212\",\n \"2122211111122212\",\n \"2111112222111112\",\n \"2122211111122212\",\n \"2111112332111112\",\n \"2222123333212222\",\n \"2222123333212222\",\n \"2111112332111112\",\n \"2122211111122212\",\n \"2111112222111112\",\n \"2122211111122212\",\n \"2122221221222212\",\n \"2111111221111112\",\n \"2222222222222222\"\n ],\n \"isPersistent\": false,\n \"x\": 8,\n \"y\": 6,\n \"width\": 346,\n \"height\": 356,\n \"visible\": false\n }\n ],\n \"info\": {\n \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\",\n \"projectID\": \"projects_882s4m5\",\n \"scriptCount\": 33,\n \"swfVersion\": \"v454\",\n \"videoOn\": false,\n \"spriteCount\": 9,\n \"flashVersion\": \"MAC 29,0,0,171\",\n \"hasCloudData\": false\n }\n}","created_at":"2018-07-24T16:21:06.898+08:00","updated_at":"2019-11-09T06:10:04.094+08:00","name":"小精靈 (S) 副本","language":"scratch3","screenshot":{"url":null},"parent_id":30393,"plugin":null,"description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":198,"hashid":"4y3sk4wj","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":653690,"file_name":"11.png","project_id":36329,"asset_id":68731,"created_at":"2018-07-24T16:21:06.917+08:00","updated_at":"2018-07-24T16:21:06.917+08:00"},{"id":653691,"file_name":"10.png","project_id":36329,"asset_id":68730,"created_at":"2018-07-24T16:21:06.919+08:00","updated_at":"2018-07-24T16:21:06.919+08:00"},{"id":653692,"file_name":"9.png","project_id":36329,"asset_id":68729,"created_at":"2018-07-24T16:21:06.921+08:00","updated_at":"2018-07-24T16:21:06.921+08:00"},{"id":653693,"file_name":"8.png","project_id":36329,"asset_id":68728,"created_at":"2018-07-24T16:21:06.923+08:00","updated_at":"2018-07-24T16:21:06.923+08:00"},{"id":653694,"file_name":"7.png","project_id":36329,"asset_id":68727,"created_at":"2018-07-24T16:21:06.925+08:00","updated_at":"2018-07-24T16:21:06.925+08:00"},{"id":653695,"file_name":"6.png","project_id":36329,"asset_id":68726,"created_at":"2018-07-24T16:21:06.926+08:00","updated_at":"2018-07-24T16:21:06.926+08:00"},{"id":653696,"file_name":"5.png","project_id":36329,"asset_id":68725,"created_at":"2018-07-24T16:21:06.928+08:00","updated_at":"2018-07-24T16:21:06.928+08:00"},{"id":653697,"file_name":"4.png","project_id":36329,"asset_id":68724,"created_at":"2018-07-24T16:21:06.930+08:00","updated_at":"2018-07-24T16:21:06.930+08:00"},{"id":653698,"file_name":"3.png","project_id":36329,"asset_id":68723,"created_at":"2018-07-24T16:21:06.931+08:00","updated_at":"2018-07-24T16:21:06.931+08:00"},{"id":653699,"file_name":"2.png","project_id":36329,"asset_id":68722,"created_at":"2018-07-24T16:21:06.933+08:00","updated_at":"2018-07-24T16:21:06.933+08:00"},{"id":653700,"file_name":"1.png","project_id":36329,"asset_id":68721,"created_at":"2018-07-24T16:21:06.935+08:00","updated_at":"2018-07-24T16:21:06.935+08:00"},{"id":653701,"file_name":"0.wav","project_id":36329,"asset_id":68720,"created_at":"2018-07-24T16:21:06.936+08:00","updated_at":"2018-07-24T16:21:06.936+08:00"},{"id":653702,"file_name":"0.png","project_id":36329,"asset_id":68719,"created_at":"2018-07-24T16:21:06.938+08:00","updated_at":"2018-07-24T16:21:06.938+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
語言
中文
简体中文
英文
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦