Platformer Dot Eat! #game #all

Instructions: 【English】\nhow to play\n●Mode selection\n・Story mode\nIt is clear if you collect the specified number of flags.\nThere are 20 stages in total.\n· Survival mode\nIn this mode, you continue collecting flags for a longer period of time.\nYou can buy items with the coins you collect in this mode.\nItem List\n○Reduce the appearance rate of needles\n○ Speed ​​increases\n○Double appearance rate of flags\n○ Remaining life +1 added\nAim for the world record!\n●Operation method\n"Tap to move in that direction."\n* Keyboard operation is not possible\n● Item\n・Flag: Collect the specified number of items to clear\n・Needle: If you hit it, it will turn into a tahi\n・Stop button: The game will be forcibly terminated when touched.Press the flag again and...\n・Key: You can open the wall of the corresponding color\n・ False flags: Touching does not count as collecting flags\n・P switch: When pressed, the flag turns into a stop button, The stop button becomes a flag\n・ Speed ​​up: Speed ​​increases when touched\n・Coins: Collected coins can be used at the SHOP.\n\n【日本語】\n遊び方\n●モード選択\n　・ストーリーモード\n　　指定された数の旗を集めればクリアです。\n　　全20ステージあります。\n　・サバイバルモード\n　　より長い時間旗を集め続けるモードです。\n　　このモードで集めたコインでアイテムを買えます。\n　　アイテム一覧\n　　　○針の出現率を減らす\n　　　○スピードが上がる\n　　　○旗の出現率2倍\n　　　○残機+1追加\n　　世界記録を目指そう!\n●操作方法\n　タップするとその方向に進むことができます。\n　※キーボード操作不可\n●アイテム\n　・旗:このアイテムを指定数集めるとクリアです\n　・針:当たるとﾀﾋにます\n　・停止ボタン:触れるとゲームが強制終了します\n　・鍵:対応した色の壁を開けることができます\n　・偽旗:触れても旗を集めた事にはならない\n　・Pスイッチ:押すと旗が停止ボタンに、\n　　　　　　　停止ボタンが旗になる\n　・スピードアップ:触れるとスピードが上がる\n　・コイン:集めたコインはSHOPで使うことができる。

@Stage\n\nwhen I receive [start! v]\nif <(stage) = [8]> then\n    switch backdrop to (背景3 v)\nelse\n    if <(stage) = [9]> then\n        switch backdrop to (背景4 v)\n    else\n        if <(stage) = [12]> then\n            switch backdrop to (背景5 v)\n        else\n            if <(stage) = [18]> then\n                switch backdrop to (背景6 v)\n            else\n                if <(stage) = [21]> then\n                    switch backdrop to (背景7 v)\n                    show variable [☁ クリア者 v]\n                    change [☁ クリア者 v] by (1)\n                else\n                    if <(stage) = [26]> then\n                        switch backdrop to (背景8 v)\n                    else\n                        if <(stage) = [31]> then\n                            switch backdrop to (背景9 v)\n                            show variable [☁ 真・クリア者 v]\n                            change [☁ 真・クリア者 v] by (1)\n                        else\n                            switch backdrop to (背景1 v)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start! v]\nforever\n    play sound [Xylo2 v] until done\nend\n\nwhen I receive [stage clear v]\nstop [other scripts in sprite v]\nstop all sounds\nstart sound [Win v]\n\nwhen flag clicked\nset [残機 v] to [0]\nif <(台パン) = [1]> then\n    change [stage v] by (-2)\n    set [台パン v] to [0]\n    broadcast (next stage v)\n    broadcast (START v)\nelse\n    set [stage v] to [0]\n    broadcast (flag v)\nend\n\nwhen I receive [next stage v]\nhide variable [☁ クリア者 v]\nhide variable [☁ 真・クリア者 v]\n\nwhen I receive [survival v]\nforever\n    play sound [Xylo2 v] until done\nend\n\nwhen I receive [die v]\nstop [other scripts in sprite v]\nstop all sounds\nstart sound [Lose v]\nshow variable [☁ score v]\nshow variable [score v]\nset [score v] to (collect)\nif <(☁ Score) < (Score)> then\n    set [☁ score v] to (Score)\nend\n\nwhen flag clicked\nhide variable [☁ クリア者 v]\nhide variable [☁ 真・クリア者 v]\nhide variable [☁ score v]\nhide variable [score v]\n\n@player\n\nwhen I receive [start! v]\ngo to [back v] layer\nset [goal v] to [0]\nset [speed v] to [1.5]\nset [live v] to [1]\nset [ghost v] effect to (0)\nclear graphic effects\ngo to x: (-210) y: (150)\nset [move v] to [1]\nset [無敵 v] to [1]\nshow\nforever\n    if <(move) = [1]> then\n        switch costume to (コスチューム1 v)\n        動き\n        if <<touching (障害物 v)?> and <(無敵) = [1]>> then\n            if <[1] < (残機)> then\n                change [残機 v] by (-1)\n                set [無敵 v] to [0]\n                repeat (3)\n                    repeat (10)\n                        change [ghost v] effect by (5)\n                        動き\n                    end\n                    repeat (10)\n                        change [ghost v] effect by (-5)\n                        動き\n                    end\n                end\n                set [無敵 v] to [1]\n            else\n                change [残機 v] by (-1)\n                set [live v] to [0]\n                hide\n                start sound [Oops v]\n                clone\n                wait (1) seconds\n                broadcast (Restart! v)\n                set [残機 v] to [1]\n            end\n        end\n        if <touching (壁 v)?> then\n            move ((speed) * (-1)) steps\n        end\n        if <<not <touching (地面 v)?>> and <(無敵) = [1]>> then\n            set [live v] to [0]\n            set [変数 v] to [0]\n            start sound [Slide Whistle v]\n            repeat (13)\n                change [変数 v] by (-1)\n                change [brightness v] effect by (変数)\n                change size by (変数)\n            end\n            wait (0.3) seconds\n            broadcast (Restart! v)\n        end\n        if <<(x position) < [-47]> and <<(y position) < [-90]> and <(stage) = [18]>>> then\n            set [goal v] to [1]\n        end\n    end\nend\n\nwhen I receive [next stage v]\nset size to (100) %\nstop [other scripts in sprite v]\nhide\n\ndefine clone\nset [clone v] to [0]\nswitch costume to (コスチューム4 v)\nrepeat (30)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\n    next costume\nend\nswitch costume to (コスチューム1 v)\n\nwhen I start as a clone\nshow\nset [x v] to (pick random (-2.00000) to (2.00000))\nset [y v] to [0]\nrepeat (50)\n    change x by (x)\n    turn right ((x) * (5)) degrees\n    change [y v] by (-0.5)\n    change y by (y)\n    if <(y position) < [-169]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [restart! v]\nset [無敵 v] to [1]\nhide\nif <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n    show\n    stop [other scripts in sprite v]\n    start sound [Rip v]\n    go to x: (-210) y: (150)\n    set [brightness v] effect to (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [live v] to [1]\n    forever\n        if <(move) = [1]> then\n            switch costume to (コスチューム1 v)\n            if <mouse down?> then\n                switch costume to (コスチューム2 v)\n                point towards (mouse-pointer v)\n                move (speed) steps\n            end\n            if <<touching (障害物 v)?> and <(live) = [1]>> then\n                set [live v] to [0]\n                hide\n                start sound [Oops v]\n                clone\n                wait (1) seconds\n                broadcast (Restart! v)\n            end\n            if <touching (壁 v)?> then\n                move ((speed) * (-1)) steps\n            end\n            if <<not <touching (地面 v)?>> and <(live) = [1]>> then\n                set [live v] to [0]\n                set [変数 v] to [0]\n                start sound [Slide Whistle v]\n                repeat (13)\n                    change [変数 v] by (-1)\n                    change [brightness v] effect by (変数)\n                    change size by (変数)\n                end\n                wait (0.3) seconds\n                broadcast (Restart! v)\n            end\n        end\n    end\nend\n\nwhen I receive [start! v]\nforever\n    if <(stage) = [18]> then\n        if <<[-100] < (x position)> and <[110] < (y position)>> then\n            set [move v] to [0]\n            set x to (-100)\n            point in direction (0)\n            glide (1) secs to x: (-100) y: (165)\n            point in direction (90)\n            switch costume to (コスチューム1 v)\n            broadcast (race v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [- v]\nmove (-30) steps\n\nwhen I receive [lose v]\nstop [other scripts in sprite v]\npoint in direction (90)\nswitch costume to (コスチューム3 v)\n\ndefine 動き\nif <mouse down?> then\n    switch costume to (コスチューム2 v)\n    point towards (mouse-pointer v)\n    move (speed) steps\nend\n\nwhen I receive [survival v]\ngo to [back v] layer\nset [goal v] to [0]\nif <[survival v] contains [2]?> then\n    set [speed v] to [6]\nelse\n    set [speed v] to [3]\nend\nset [live v] to [1]\nset [ghost v] effect to (0)\nclear graphic effects\ngo to x: (-210) y: (150)\nset [move v] to [1]\nset [無敵 v] to [1]\nshow\nforever\n    if <(move) = [1]> then\n        switch costume to (コスチューム1 v)\n        動き\n        if <<touching (障害物 v)?> and <(無敵) = [1]>> then\n            if <[1] < (残機)> then\n                change [残機 v] by (-1)\n                set [無敵 v] to [0]\n                repeat (3)\n                    repeat (10)\n                        change [ghost v] effect by (5)\n                        動き\n                    end\n                    repeat (10)\n                        change [ghost v] effect by (-5)\n                        動き\n                    end\n                end\n                set [無敵 v] to [1]\n            else\n                change [残機 v] by (-1)\n                set [live v] to [0]\n                hide\n                start sound [Oops v]\n                clone\n                broadcast (DIE v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\ndelete all of [survival v]\n\n@スプライト2\n\nwhen I receive [next stage v]\ngo to [front v] layer\nchange [stage v] by (1)\nswitch costume to (stage)\nshow\nstart sound [Magic Spell v]\nwait (2) seconds\nbroadcast (start! v)\nhide\n\nwhen flag clicked\nhide\nswitch costume to (stage)\n\nnext costume\n\n@shadow\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\n    go to (player v)\nend\n\nwhen I receive [start! v]\nshow\n\n@スプライト1\n\ndefine Clone (回数)\nrepeat (回数)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\ndefine 生成 (collect) (回数)\nset [collect v] to (collect)\nClone (回数)\n\nwhen I start as a clone\nshow\nif <(stage) = [0]> then\n    forever\n        if <touching (player v)?> then\n            if <(costume [number v]) = [1]> then\n                repeat (1)\n                    change [collect v] by (1)\n                    start sound [Coin v]\n                    delete this clone\n                end\n            else\n                repeat (1)\n                    change [survival coin v] by (1)\n                    start sound [Collect v]\n                    delete this clone\n                end\n            end\n        end\n    end\nelse\n    go to x: (item (clone) of [x v]) y: (item (clone) of [y v])\n    switch costume to (item (clone) of [コスチューム v])\n    if <(costume [number v]) = [5]> then\n        forever\n            go to [back v] layer\n            wait until <<(live) = [1]> and <touching (player v)?>>\n            broadcast (P v)\n            start sound [Chomp v]\n            switch costume to (p2 v)\n            wait (2) seconds\n            switch costume to (p1 v)\n        end\n    else\n        if <(costume [number v]) = [7]> then\n            forever\n                switch costume to (coin1 v)\n                repeat (7)\n                    next costume\n                    if <<(live) = [1]> and <touching (player v)?>> then\n                        change [coin v] by (1)\n                        start sound [Collect v]\n                        delete this clone\n                    end\n                end\n            end\n        else\n            wait until <<(live) = [1]> and <touching (player v)?>>\n            if <(costume [number v]) = [2]> then\n                broadcast (台パン v)\n            else\n                if <(costume [number v]) = [3]> then\n                    set [speed v] to ((speed) + (1))\n                    start sound [Bite v]\n                    delete this clone\n                else\n                    if <(costume [number v]) = [4]> then\n                        start sound [Basketball Bounce v]\n                        set [y v] to [15]\n                        repeat until <(y position) < [-200]>\n                            fake\n                        end\n                        delete this clone\n                    else\n                        change [collect v] by (-1)\n                        start sound [Coin v]\n                        if <(collect) = [0]> then\n                            broadcast (stage clear v)\n                        end\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start! v]\nhide\nset [color v] effect to (0)\nif <(stage) = [1]> then\n    set [clone v] to [0]\n    生成 [10] [10]\nend\nif <(stage) = [2]> then\n    set [clone v] to [10]\n    生成 [20] [20]\nend\nif <(stage) = [3]> then\n    set [clone v] to [30]\n    生成 [36] [40]\nend\nif <(stage) = [4]> then\n    set [clone v] to [70]\n    生成 [113] [136]\nend\nif <(stage) = [5]> then\n    set [clone v] to [206]\n    生成 [14] [14]\nend\nif <(stage) = [6]> then\n    set [clone v] to [220]\n    生成 [36] [36]\nend\nif <(stage) = [7]> then\n    set [clone v] to [256]\n    生成 [34] [35]\nend\nif <(stage) = [8]> then\n    set [clone v] to [290]\n    生成 [30] [30]\nend\nif <(stage) = [9]> then\n    set [clone v] to [320]\n    生成 [20] [20]\nend\nif <(stage) = [10]> then\n    set [clone v] to [340]\n    生成 [30] [60]\nend\nif <(stage) = [11]> then\n    set [clone v] to [400]\n    生成 [36] [40]\nend\nif <(stage) = [12]> then\n    set [clone v] to [440]\n    生成 [50] [50]\nend\nif <(stage) = [13]> then\n    set [clone v] to [490]\n    生成 [4] [4]\nend\nif <(stage) = [14]> then\n    set [clone v] to [494]\n    生成 [50] [56]\nend\nif <(stage) = [15]> then\n    set [clone v] to [550]\n    生成 [29] [40]\nend\nif <(stage) = [16]> then\n    set [clone v] to [590]\n    生成 [19] [20]\nend\nif <(stage) = [17]> then\n    set [clone v] to [610]\n    生成 [69] [130]\nend\nif <(stage) = [18]> then\n    set [clone v] to [740]\n    生成 [53] [60]\nend\nif <(stage) = [19]> then\n    set [clone v] to [800]\n    生成 [14] [210]\nend\nif <(stage) = [20]> then\n    set [clone v] to [1010]\n    生成 [1] [1]\nend\nif <(stage) = [21]> then\n    set [clone v] to [1011]\n    生成 [116] [116]\nend\nif <(stage) = [22]> then\n    set [clone v] to [1127]\n    生成 [23] [23]\nend\nif <(stage) = [23]> then\n    set [clone v] to [1150]\n    生成 [113] [120]\nend\nif <(stage) = [24]> then\n    set [clone v] to [1270]\n    生成 [39] [70]\nend\nif <(stage) = [25]> then\n    set [clone v] to [1340]\n    生成 [86] [160]\nend\nif <(stage) = [26]> then\n    set [clone v] to [1500]\n    生成 [109] [110]\nend\nif <(stage) = [27]> then\n    set [clone v] to [1610]\n    生成 [45] [50]\nend\nif <(stage) = [28]> then\n    set [clone v] to [1660]\n    生成 [10] [50]\nend\nif <(stage) = [29]> then\n    set [clone v] to [1710]\n    生成 [12] [63]\nend\nif <(stage) = [30]> then\n    set [clone v] to [1773]\n    生成 [10] [17]\nend\n\nwhen I receive [stage clear v]\ngo to x: (0) y: (130)\nswitch costume to (stage clear v)\nshow\nrepeat (75)\n    change [color v] effect by (10)\nend\nbroadcast (next stage v)\n\nwhen I receive [stage clear v]\ndelete this clone\n\ndefine fake\ngo to [front v] layer\nchange size by (5)\nchange [brightness v] effect by (-2)\nswitch costume to (判定 v)\nchange [y v] by (-1)\nturn right (5) degrees\nchange y by (y)\nswitch costume to (fake flag v)\n\nwhen I receive [p v]\nif <(costume [number v]) = [2]> then\n    switch costume to (flag v)\nelse\n    if <(costume [number v]) < [3]> then\n        switch costume to (stop v)\n    end\nend\n\nwhen I receive [next stage v]\ndelete this clone\n\nwhen I start as a clone\nif <<[1660] < (clone)> and <(clone) < [1701]>> then\n    set [変数 v] to (item ((clone) - (1648)) of [変数 v])\n    repeat until <<(live) = [1]> and <touching (player v)?>>\n        change [変数 v] by (3)\n        change x by (([sin v] of (変数) ) * (7))\n        change y by (([cos v] of (変数) ) * (7))\n    end\nend\nif <<[1700] < (clone)> and <(clone) < [1707]>> then\n    set [変数 v] to (item ((clone) - (1648)) of [変数 v])\n    repeat until <<(live) = [1]> and <touching (player v)?>>\n        change [変数 v] by (2)\n        change x by (([sin v] of (変数) ) * (2))\n        change y by (([cos v] of (変数) ) * (2))\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(stage) = [29]> and <touching (障害物 v)?>> then\n        if <(costume [number v]) = [2]> then\n            broadcast (BAN v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <<[400] < (clone)> and <(clone) < [413]>> then\n    set [変数 v] to (item ((clone) - (400)) of [変数 v])\n    repeat until <<(live) = [1]> and <touching (player v)?>>\n        change [変数 v] by (5)\n        change x by (([sin v] of (変数) ) * (3))\n        change y by (([cos v] of (変数) ) * (3))\n    end\n    change [collect v] by (-1)\n    start sound [Coin v]\n    if <(collect) = [0]> then\n        broadcast (stage clear v)\n    end\n    delete this clone\nend\nif <<[424] < (clone)> and <(clone) < [437]>> then\n    set [変数 v] to (item ((clone) - (424)) of [変数 v])\n    repeat until <<(live) = [1]> and <touching (player v)?>>\n        change [変数 v] by (5)\n        change x by (([sin v] of (変数) ) * (3))\n        change y by (([cos v] of (変数) ) * (3))\n    end\n    change [collect v] by (-1)\n    start sound [Coin v]\n    if <(collect) = [0]> then\n        broadcast (stage clear v)\n    end\n    delete this clone\nend\nif <<[412] < (clone)> and <(clone) < [425]>> then\n    set [変数 v] to (item ((clone) - (412)) of [変数 v])\n    repeat until <<(live) = [1]> and <touching (player v)?>>\n        change [変数 v] by (5)\n        change x by (([sin v] of (変数) ) * (3))\n        change y by (([cos v] of (変数) ) * (3))\n    end\n    change [collect v] by (-1)\n    start sound [Coin v]\n    if <(collect) = [0]> then\n        broadcast (stage clear v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(stage) = [0]> then\n    if <(costume [number v]) = [7]> then\n        forever\n            switch costume to (coin1 v)\n            repeat (7)\n                next costume\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(stage) = [0]> then\n    if <(costume [number v]) = [1]> then\n        wait (15) seconds\n    else\n        wait (10) seconds\n    end\n    repeat (10)\n        set [ghost v] effect to (100)\n        wait (0.08) seconds\n        set [ghost v] effect to (0)\n        wait (0.08) seconds\n    end\n    delete this clone\nend\n\nwhen I receive [survival v]\nset [clone v] to [0]\nset [collect v] to [0]\nset [clone number v] to [0]\nforever\n    if <[survival v] contains [3]?> then\n        wait (pick random (2) to (3)) seconds\n        if <(clone number) < [31]> then\n            repeat (2)\n                go to x: (pick random (-220) to (220)) y: (pick random (-160) to (160))\n                switch costume to (flag v)\n                create clone of (_myself_ v)\n            end\n        end\n    else\n        wait (pick random (2) to (3)) seconds\n        if <(clone number) < [31]> then\n            go to x: (pick random (-220) to (220)) y: (pick random (-160) to (160))\n            switch costume to (flag v)\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I receive [survival v]\nset [clone v] to [0]\nset [clone number v] to [0]\nforever\n    wait (pick random (7) to (10)) seconds\n    if <(clone number) < [31]> then\n        go to x: (pick random (-220) to (220)) y: (pick random (-160) to (160))\n        switch costume to (coin1 v)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) = [4]> or <(costume [number v]) = [1]>> then\n    set [color v] effect to (pick random (0) to (1000))\nelse\n    clear graphic effects\nend\n\n@障害物\n\nwhen flag clicked\nset [clone v] to [0]\nhide\n\nwhen I receive [start! v]\nhide\nif <(stage) = [2]> then\n    set [clone v] to [0]\n    Clone [2]\nend\nif <(stage) = [5]> then\n    set [clone v] to [2]\n    Clone [2]\nend\nif <(stage) = [7]> then\n    set [clone v] to [4]\n    Clone [3]\nend\nif <(stage) = [14]> then\n    set [clone v] to [7]\n    Clone [1]\nend\nif <(stage) = [22]> then\n    set [clone v] to [8]\n    Clone [3]\nend\nif <(stage) = [23]> then\n    wait until <[-150] < ([x position v] of [player v])>\n    set [clone v] to [15]\n    Clone [7]\nend\nif <(stage) = [24]> then\n    set [clone v] to [22]\n    Clone [9]\nend\nif <(stage) = [25]> then\n    set [clone v] to [2]\n    Clone [1]\n    set [clone v] to [31]\n    Clone [2]\nend\nif <(stage) = [26]> then\n    set [clone v] to [33]\n    Clone [3]\nend\nif <(stage) = [29]> then\n    repeat (3)\n        set [clone v] to [39]\n        Clone [1]\n    end\nend\nif <(stage) = [30]> then\n    set [clone v] to [42]\n    Clone [1]\nend\n\ndefine Clone (回数)\nrepeat (回数)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\ndefine 生成 (x) (y) (コスチューム) (clone)\ngo to [front v] layer\nshow\nif <(clone) = (clone)> then\n    go to x: (x) y: (y)\n    switch costume to (コスチューム)\n    forever\n        turn right (3) degrees\n        if <(clone) = [3]> then\n            repeat until <(x position) < [-210]>\n                change x by (-3)\n                turn right (10) degrees\n            end\n            repeat until <[210] < (x position)>\n                change x by (3)\n                turn right (10) degrees\n            end\n        end\n        if <(clone) = [4]> then\n            repeat until <(y position) < [-150]>\n                change y by (-3)\n                turn right (10) degrees\n            end\n            repeat until <[150] < (y position)>\n                change y by (3)\n                turn right (10) degrees\n            end\n        end\n        if <(clone) = (pick random (37) to (39))> then\n            set size to (75) %\n            if <(clone) = [39]> then\n                repeat until <[250] < (x position)>\n                    change x by (6)\n                    turn right (10) degrees\n                end\n                delete this clone\n            else\n                repeat until <(x position) < [-250]>\n                    change x by (-6)\n                    turn right (-10) degrees\n                end\n                delete this clone\n            end\n        end\n        if <(clone) = (pick random (34) to (36))> then\n            forever\n                switch costume to (コスチューム1 v)\n                set [ghost v] effect to (100)\n                go to x: (-41) y: (83)\n                wait (pick random (4.00000) to (9.00000)) seconds\n                set [ghost v] effect to (0)\n                switch costume to (コスチューム7 v)\n                if <(clone) = [34]> then\n                    go to x: (267) y: (172)\n                else\n                    if <(clone) = [35]> then\n                        go to x: (267) y: (2)\n                    else\n                        go to x: (267) y: (-167)\n                    end\n                end\n                repeat until <(x position) < [-265]>\n                    change x by (-2)\n                    turn right (-10) degrees\n                end\n            end\n        end\n        if <(clone) = [33]> then\n            repeat until <[150] < (y position)>\n                change y by (1.5)\n                turn right (10) degrees\n            end\n            repeat until <[251] < (x position)>\n                change x by (1.5)\n                turn right (10) degrees\n            end\n            repeat until <(x position) < [-29]>\n                change x by (-1.5)\n                turn right (10) degrees\n            end\n            repeat until <(y position) < [-150]>\n                change y by (-1.5)\n                turn right (10) degrees\n            end\n        end\n        if <(clone) = [32]> then\n            repeat until <[150] < (y position)>\n                change y by (2)\n                turn right (10) degrees\n            end\n            repeat until <(y position) < [-150]>\n                change y by (-2)\n                turn right (10) degrees\n            end\n        end\n        if <(clone) = (pick random (9) to (11))> then\n            forever\n                wait (pick random (1.5000) to (3.5000)) seconds\n                switch costume to (コスチューム1 v)\n                repeat (25)\n                    turn right (80) degrees\n                end\n                repeat (20)\n                    switch costume to (コスチューム5 v)\n                    wait (0.02) seconds\n                    switch costume to (コスチューム6 v)\n                    wait (0.02) seconds\n                end\n                set [clone v] to [11]\n                Clone [4]\n                repeat (10)\n                    switch costume to (コスチューム5 v)\n                    wait (0.02) seconds\n                    switch costume to (コスチューム6 v)\n                    wait (0.02) seconds\n                end\n                switch costume to (コスチューム1 v)\n                repeat (25)\n                    turn right (80) degrees\n                end\n            end\n        end\n        if <(clone) = (pick random (5) to (7))> then\n            if <(clone) = [5]> then\n                set [変数 v] to [0]\n            else\n                if <(clone) = [6]> then\n                    set [変数 v] to [100]\n                else\n                    set [変数 v] to [250]\n                end\n            end\n            forever\n                change [変数 v] by (3)\n                change x by (([sin v] of (変数) ) * (3))\n                change y by (([cos v] of (変数) ) * (3))\n                turn right (10) degrees\n            end\n        end\n    end\nend\n\nwhen I receive [stage clear v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\n生成 [31] [89] [1] [1]\n生成 [-91] [-110] [1] [2]\n生成 [210] [0] [1] [3]\n生成 [-50] [150] [1] [4]\n生成 [-125] [-45] [2] [5]\n生成 [160] [-45] [2] [6]\n生成 [18] [-92] [2] [7]\n生成 [-104] [44] [1] [9]\n生成 [131] [113] [1] [10]\n生成 [65] [-80] [1] [11]\n生成 [-209] [37] [1] [23]\n生成 [-117] [-53] [1] [24]\n生成 [64] [26] [1] [25]\n生成 [38] [-147] [1] [26]\n生成 [203] [-58] [1] [27]\n生成 [22] [-13] [1] [28]\n生成 [152] [-162] [1] [29]\n生成 [-182] [-184] [1] [30]\n生成 [-45] [-190] [1] [31]\n生成 [175] [-150] [1] [32]\n生成 [-30] [-150] [1] [33]\n生成 [-41] [83] [1] [34]\n生成 [-41] [83] [1] [35]\n生成 [-41] [83] [1] [36]\n生成 [257] [100] [1] [37]\n生成 [257] [-100] [1] [38]\n生成 [-257] [0] [1] [39]\n生成 [221] [170] [1] [43]\n\nset [変数 v] to [0]\n\nwhen I receive [restart! v]\nif <[3] = (costume [number v])> then\n    go to x: (180) y: (130)\nend\n\nwhen I start as a clone\nif <(clone) = [8]> then\n    show\n    switch costume to (コスチューム3 v)\n    go to x: (180) y: (130)\n    forever\n        point towards (player v)\n        move (2.2) steps\n    end\nend\n\nwhen I start as a clone\nif <(clone) = [8]> then\n    forever\n        play sound [Alien Creak1 v] until done\n    end\nend\n\nwhen I start as a clone\nif <(clone) = [12]> then\n    go to [back v] layer\n    show\n    switch costume to (コスチューム4 v)\n    point in direction (45)\n    repeat until <<[180] < (y position)> or <[240] < (x position)>>\n        move (5) steps\n        set size to (180) %\n    end\n    delete this clone\nend\nif <(clone) = [13]> then\n    show\n    go to [back v] layer\n    switch costume to (コスチューム4 v)\n    point in direction (135)\n    repeat until <<(y position) < [-180]> or <[240] < (x position)>>\n        move (5) steps\n        set size to (180) %\n    end\n    delete this clone\nend\nif <(clone) = [14]> then\n    show\n    switch costume to (コスチューム4 v)\n    go to [back v] layer\n    point in direction (-135)\n    repeat until <<(y position) < [-180]> or <(x position) < [-240]>>\n        set size to (180) %\n        move (5) steps\n    end\n    delete this clone\nend\nif <(clone) = [15]> then\n    show\n    go to [back v] layer\n    switch costume to (コスチューム4 v)\n    point in direction (-45)\n    repeat until <<[180] < (y position)> or <(x position) < [-240]>>\n        set size to (180) %\n        move (5) steps\n    end\n    delete this clone\nend\n\nwhen I receive [restart! v]\nif <(stage) = [23]> then\n    delete this clone\nend\n\nwhen I start as a clone\n壁　clone [16] y [150]\n壁　clone [17] y [100]\n壁　clone [18] y [50]\n壁　clone [19] y [0]\n壁　clone [20] y [-50]\n壁　clone [21] y [-100]\n壁　clone [22] y [-150]\n\ndefine 壁　clone (clone) y (y)\nif <(clone) = (clone)> then\n    go to x: (-265) y: (y)\n    forever\n        switch costume to (コスチューム1 v)\n        change x by ((speed) * (0.15))\n        turn right (10) degrees\n    end\nend\n\nwhen I receive [restart! v]\nif <(stage) = [23]> then\n    wait until <[-150] < ([x position v] of [player v])>\n    set [clone v] to [15]\n    Clone [7]\nend\n\nwhen I receive [start! v]\nif <(stage) = [27]> then\n    forever\n        set [clone v] to [36]\n        Clone [1]\n        wait (1.2) seconds\n    end\nend\n\nwhen I receive [start! v]\nif <(stage) = [27]> then\n    forever\n        wait (1.2) seconds\n        set [clone v] to [37]\n        Clone [1]\n    end\nend\n\nwhen I receive [start! v]\nif <(stage) = [27]> then\n    forever\n        wait (1.2) seconds\n        set [clone v] to [38]\n        Clone [1]\n    end\nend\n\nwhen I start as a clone\nif <(clone) = [40]> then\n    show\n    switch costume to (コスチューム8 v)\n    go to x: (-60) y: (113)\n    forever\n        point towards (player v)\n        move (1.5) steps\n        if <touching (壁 v)?> then\n            move (-1.5) steps\n        end\n    end\nend\n\nwhen I receive [ban v]\nif <(stage) = [29]> then\n    start sound [Zoop v]\nend\ndelete this clone\n\nwhen I start as a clone\n弾幕　clone [44] 角度 [-88]\n弾幕　clone [45] 角度 [-92]\n弾幕　clone [46] 角度 [-96]\n弾幕　clone [47] 角度 [-100]\n弾幕　clone [48] 角度 [-104]\n弾幕　clone [49] 角度 [-108]\n弾幕　clone [50] 角度 [-112]\n弾幕　clone [51] 角度 [-116]\n弾幕　clone [52] 角度 [-120]\n弾幕　clone [53] 角度 [-124]\n弾幕　clone [54] 角度 [-128]\n弾幕　clone [55] 角度 [-132]\n弾幕　clone [56] 角度 [-136]\n弾幕　clone [57] 角度 [-140]\n弾幕　clone [58] 角度 [-144]\n弾幕　clone [59] 角度 [-148]\n弾幕　clone [60] 角度 [-152]\n弾幕　clone [61] 角度 [-156]\n弾幕　clone [62] 角度 [-160]\n弾幕　clone [63] 角度 [-164]\n弾幕　clone [64] 角度 [-168]\n弾幕　clone [65] 角度 [-172]\n弾幕　clone [66] 角度 [-176]\n弾幕　clone [67] 角度 [-180]\n\ndefine 弾幕\nswitch costume to (コスチューム10 v)\nmove (10) steps\nswitch costume to (コスチューム4 v)\n\ndefine 弾幕　clone (clone) 角度 (角度)\nif <(clone) = (clone)> then\n    show\n    go to [back v] layer\n    point in direction (角度)\n    repeat until <<(x position) < [-240]> or <<[180] < (y position)> or <(y position) < [-180]>>>\n        弾幕\n        if <touching (壁 v)?> then\n            delete this clone\n        end\n    end\n    delete this clone\nend\n\ndefine 6\nrepeat (6)\n    create clone of (_myself_ v)\n    change [clone v] by (4)\nend\n\nwhen I start as a clone\nif <(clone) = [43]> then\n    forever\n        set [clone v] to [44]\n        6\n        wait (0.65) seconds\n        set [clone v] to [45]\n        6\n        wait (0.65) seconds\n        set [clone v] to [46]\n        6\n        wait (0.65) seconds\n        set [clone v] to [47]\n        6\n        wait (0.65) seconds\n    end\nend\n\nwhen I receive [survival v]\nrepeat (10)\n    if <[survival v] contains [1]?> then\n        wait (25) seconds\n    else\n        wait (15) seconds\n    end\n    set [clone v] to (pick random (68) to (71))\n    create clone of (_myself_ v)\nend\nrepeat (10)\n    if <[survival v] contains [1]?> then\n        wait (pick random (17.500) to (23.000)) seconds\n    else\n        wait (pick random (10.000) to (15.000)) seconds\n    end\n    set [clone v] to (pick random (68) to (71))\n    create clone of (_myself_ v)\nend\nrepeat (10)\n    if <[survival v] contains [1]?> then\n        wait (pick random (15.000) to (20.000)) seconds\n    else\n        wait (pick random (6.5) to (10.000)) seconds\n    end\n    set [clone v] to (pick random (68) to (71))\n    create clone of (_myself_ v)\nend\nforever\n    if <[survival v] contains [1]?> then\n        wait (8) seconds\n    else\n        wait (2) seconds\n    end\n    set [clone v] to (pick random (68) to (71))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(clone) = [68]> then\n    go to x: (pick random (-210) to (210)) y: (198)\n    show\n    switch costume to (コスチューム1 v)\n    repeat until <(y position) < [-195]>\n        change y by (-2)\n        turn right (10) degrees\n    end\n    delete this clone\nend\nif <(clone) = [69]> then\n    go to x: (pick random (-210) to (210)) y: (-198)\n    show\n    switch costume to (コスチューム1 v)\n    repeat until <[195] < (y position)>\n        change y by (2)\n        turn right (10) degrees\n    end\n    delete this clone\nend\nif <(clone) = [70]> then\n    go to x: (-264) y: (pick random (-150) to (150))\n    show\n    switch costume to (コスチューム1 v)\n    repeat until <[260] < (x position)>\n        change x by (2)\n        turn right (10) degrees\n    end\n    delete this clone\nend\nif <(clone) = [71]> then\n    go to x: (264) y: (pick random (-150) to (150))\n    show\n    switch costume to (コスチューム1 v)\n    repeat until <(x position) < [-260]>\n        change x by (-2)\n        turn right (-10) degrees\n    end\n    delete this clone\nend\n\n@スプライト3\n\nwhen I receive [台パン v]\nset [台パン v] to [1]\nswitch costume to (screenshot 2022-11-09 22 v)\nshow\ngo to [front v] layer\nstop [all v]\n\nwhen flag clicked\nhide\n\n@壁\n\nwhen I start as a clone\nshow\ngo to x: (item (clone) of [rock x v]) y: (item (clone) of [rock y v])\nswitch costume to (item (clone) of [rock コスチューム v])\npoint in direction (item (clone) of [rock 角度 v])\nif <[red] = (costume [name v])> then\n    go to [back v] layer\n    repeat until <<[key v] contains [red]?> and <touching (shadow v)?>>\n        set rotation style [left-right v]\n    end\n    start sound [Crank v]\n    delete this clone\nend\nif <[blue] = (costume [name v])> then\n    go to [back v] layer\n    repeat until <<[key v] contains [blue]?> and <touching (shadow v)?>>\n    end\n    start sound [Crank v]\n    delete this clone\nend\nif <[green] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [green]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[orange] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [orange]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[yellow] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [yellow]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[light blue] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [light blue]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[purple] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [purple]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[light green] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [light green]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[brown] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [brown]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\nif <[gray] = (costume [name v])> then\n    go to [back v] layer\n    wait until <<[key v] contains [gray]?> and <touching (shadow v)?>>\n    start sound [Crank v]\n    delete this clone\nend\n\ndefine Clone (回数)\nrepeat (回数)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start! v]\nhide\nset [color v] effect to (0)\nif <(stage) = [6]> then\n    set [clone v] to [0]\n    Clone [11]\nend\nif <(stage) = [12]> then\n    set [clone v] to [11]\n    Clone [27]\nend\nif <(stage) = [13]> then\n    set [clone v] to [38]\n    Clone [6]\nend\nif <(stage) = [17]> then\n    set [clone v] to [44]\n    Clone [2]\nend\nif <(stage) = [18]> then\n    set [clone v] to [46]\n    Clone [42]\nend\nif <(stage) = [20]> then\n    set [clone v] to [88]\n    Clone [11]\nend\nif <(stage) = [23]> then\n    set [clone v] to [99]\n    Clone [66]\nend\nif <(stage) = [24]> then\n    set [clone v] to [165]\n    Clone [12]\nend\nif <(stage) = [29]> then\n    set [clone v] to [177]\n    Clone [2]\nend\nif <(stage) = [30]> then\n    set [clone v] to [179]\n    Clone [5]\nend\n\nwhen flag clicked\nset [clone v] to [0]\n\nwhen I receive [next stage v]\ndelete this clone\n\ncreate clone of (_myself_ v)\n\ngo to x: (item (41) of [rock x v]) y: (item (41) of [rock y v])\n\nchange x by (30)\n\nwhen I receive [next stage v]\ndelete this clone\n\nadd (x position) to [rock x v]\nadd (y position) to [rock y v]\nadd (costume [number v]) to [rock コスチューム v]\nadd (direction) to [rock 角度 v]\nClone [1]\n\nnext costume\n\nset [clone v] to [99]\n\nClone [1]\n\ndelete (134) of [rock 角度 v]\n\nset [clone v] to [177]\n\nClone [12]\n\nchange x by (25)\n\nchange y by (-50)\n\nreplace item (45) of [rock コスチューム v] with [8]\n\n@地面\n\nwhen I receive [next stage v]\nif <(stage) = [8]> then\n    switch costume to (コスチューム2 v)\nelse\n    if <(stage) = [9]> then\n        switch costume to (コスチューム3 v)\n    else\n        if <(stage) = [12]> then\n            switch costume to (コスチューム4 v)\n        else\n            if <(stage) = [26]> then\n                switch costume to (コスチューム5 v)\n            else\n                switch costume to (コスチューム1 v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\n@スプライト4\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to x: (item (clone) of [key x v]) y: (item (clone) of [key y v])\nswitch costume to (item (clone) of [key コスチューム v])\nwait until <touching (player v)?>\nstart sound [Connect v]\nif <(costume [number v]) = [1]> then\n    add [red] to [key v]\nelse\n    if <(costume [number v]) = [2]> then\n        add [blue] to [key v]\n    else\n        if <(costume [number v]) = [3]> then\n            add [green] to [key v]\n        else\n            if <(costume [number v]) = [4]> then\n                add [orange] to [key v]\n            else\n                if <(costume [number v]) = [5]> then\n                    add [yellow] to [key v]\n                else\n                    if <(costume [number v]) = [6]> then\n                        add [light blue] to [key v]\n                    else\n                        if <(costume [number v]) = [7]> then\n                            add [purple] to [key v]\n                        else\n                            if <(costume [number v]) = [8]> then\n                                add [light green] to [key v]\n                            else\n                                if <(costume [number v]) = [9]> then\n                                    add [brown] to [key v]\n                                else\n                                    add [gray] to [key v]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\ndelete this clone\n\nwhen I receive [next stage v]\ndelete all of [key v]\nhide\nif <(stage) = [13]> then\n    set [clone v] to [0]\n    Clone [3]\nend\nif <(stage) = [20]> then\n    set [clone v] to [3]\n    Clone [10]\nend\n\nwhen I receive [next stage v]\n\ndefine Clone (回数)\nrepeat (回数)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\nadd (x position) to [key x v]\nadd (y position) to [key y v]\nadd (costume [number v]) to [key コスチューム v]\nClone [1]\nnext costume\n\n@スプライト5\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nset [coin v] to [0]\nif <(stage) = [17]> then\n    set [shop v] to [1]\n    set [clone v] to [0]\n    clone [1]\nend\nif <(stage) = [18]> then\n    set [clone v] to [10]\n    clone [1]\nend\nif <(stage) = [29]> then\n    set [shop v] to [1]\n    set [clone v] to [0]\n    clone [1]\nend\n\nwhen I receive [stage clear v]\ndelete this clone\n\ndefine clone (回数)\nrepeat (回数)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset size to (100) %\nif <(clone) = [1]> then\n    switch costume to (コスチューム1 v)\n    show\n    if <(stage) = [29]> then\n        go to x: (200) y: (160)\n    else\n        go to x: (-16) y: (-23)\n    end\n    forever\n        wait until <<touching (player v)?> and <(shop) = [1]>>\n        broadcast (- v)\n        start sound [Door Creak v]\n        set [shop v] to [0]\n        set [move v] to [0]\n        clone [9]\n        delete this clone\n    end\nend\nif <(clone) = [2]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    if <(stage) = [29]> then\n        switch costume to (コスチューム51 v)\n    else\n        switch costume to (コスチューム15 v)\n    end\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [3]> then\n    go to x: (177) y: (131)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム16 v)\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [4]> then\n    go to x: (-56) y: (-150)\n    show\n    go to [front v] layer\n    if <(stage) = [29]> then\n        switch costume to (コスチューム13 v)\n    else\n        switch costume to (コスチューム14 v)\n    end\n    set size to (80) %\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [5]> then\n    go to x: (56) y: (-150)\n    show\n    go to [front v] layer\n    set size to (80) %\n    if <(stage) = [29]> then\n        switch costume to (コスチューム13 v)\n    else\n        switch costume to (コスチューム14 v)\n    end\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [6]> then\n    go to x: (167) y: (-150)\n    show\n    go to [front v] layer\n    set size to (80) %\n    if <(stage) = [29]> then\n        switch costume to (コスチューム13 v)\n    else\n        switch costume to (コスチューム14 v)\n    end\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [7]> then\n    go to x: (-167) y: (-150)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム13 v)\n    set size to (80) %\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [8]> then\n    go to x: (-191) y: (95)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム2 v)\n    set size to (120) %\n    forever\n        if <(move) = [1]> then\n            delete this clone\n        end\n    end\nend\nif <(clone) = [9]> then\n    go to x: (-167) y: (127)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム3 v)\n    set size to (120) %\n    forever\n        if <(coin) < [10]> then\n            switch costume to ((letter (2) of (coin)) + (3))\n            if <(move) = [1]> then\n                delete this clone\n            end\n        else\n            switch costume to ((letter (1) of (coin)) + (3))\n            if <(move) = [1]> then\n                delete this clone\n            end\n        end\n    end\nend\nif <(clone) = [10]> then\n    go to x: (-140) y: (127)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム3 v)\n    set size to (120) %\n    forever\n        if <(coin) < [10]> then\n            switch costume to ((letter (1) of (coin)) + (3))\n            if <(move) = [1]> then\n                delete this clone\n            end\n        else\n            switch costume to ((letter (2) of (coin)) + (3))\n            if <(move) = [1]> then\n                delete this clone\n            end\n        end\n    end\nend\nif <(clone) = [11]> then\n    go to x: (-100) y: (133)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム25 v)\nend\nif <(clone) = [12]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム17 v)\n    set [ghost v] effect to (100)\n    repeat (3)\n        start sound [Hi Tun Tabla v]\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.3) seconds\n        next costume\n    end\n    start sound [Drum Boing v]\n    broadcast (race start v)\n    set [move v] to [1]\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(clone) = [13]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム21 v)\n    set [ghost v] effect to (100)\n    repeat (20)\n        change [ghost v] effect by (-2)\n    end\nend\nif <(clone) = [14]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム22 v)\n    set size to (11) %\n    set [大きさ v] to [25]\n    repeat (25)\n        change [大きさ v] by (-1)\n        change size by (大きさ)\n    end\n    set [大きさ v] to [-10]\n    repeat (10)\n        change y by (10)\n        change [大きさ v] by (-1)\n        change size by (大きさ)\n    end\nend\nif <(clone) = [15]> then\n    go to x: (0) y: (-40)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム23 v)\n    point in direction (75)\n    set size to (20) %\n    set [大きさ v] to [0]\n    repeat (15)\n        change size by (13)\n    end\n    forever\n        change [大きさ v] by (15)\n        turn right (([sin v] of (大きさ) ) * (4)) degrees\n        if <touching (mouse-pointer v)?> then\n            set size to (265) %\n        else\n            set size to (215) %\n        end\n    end\nend\nif <(clone) = [16]> then\n    show\n    set [color v] effect to (pick random (0) to (100000))\n    switch costume to (コスチューム50 v)\n    set [大きさ v] to (pick random (18) to (28))\n    set [x v] to (pick random (5.00000000000) to (-5.00000000000))\n    repeat until <(大きさ) = [0]>\n        change [大きさ v] by (-1)\n        change y by (大きさ)\n        change x by (x)\n    end\n    repeat until <<[235] < (x position)> or <<(x position) < [-235]> or <(y position) < [-180]>>>\n        change x by (x)\n        change y by (-3)\n    end\n    delete this clone\nend\nif <(clone) = [17]> then\n    show\n    point in direction (90)\n    switch costume to (コスチューム33 v)\n    repeat (11)\n        next costume\n    end\n    clone\n    repeat (5)\n        next costume\n    end\n    hide\nend\nif <(clone) = [18]> then\n    switch costume to (コスチューム52 v)\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    wait (2.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(clone) = [19]> then\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    show\n    switch costume to (コスチューム53 v)\n    go to [front v] layer\n    start sound [Teleport2 v]\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    wait (0.3) seconds\n    set [clone v] to [19]\n    clone [1]\n    forever\n        show\n    end\nend\nif <(clone) = [20]> then\n    go to x: (0) y: (240)\n    show\n    switch costume to (コスチューム54 v)\n    repeat (4)\n        change y by (-40)\n    end\n    broadcast (title v)\n    repeat (2)\n        change y by (-40)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change size by (-2)\n        change y by (10)\n    end\n    set [clone v] to [20]\n    clone [1]\n    forever\n        show\n    end\nend\nif <(clone) = [21]> then\n    switch costume to (コスチューム55 v)\n    set size to (200) %\n    go to x: (336) y: (-100)\n    set [x v] to [-27]\n    repeat (32)\n        change [x v] by (1)\n        change x by (x)\n    end\n    forever\n        if <touching (mouse-pointer v)?> then\n            set size to (250) %\n        else\n            set size to (200) %\n        end\n    end\nend\nif <(clone) = [22]> then\n    show\n    go to x: (0) y: (-190)\n    switch costume to (コスチューム56 v)\n    repeat (8)\n        change y by (20)\n    end\n    forever\n        if <touching (mouse-pointer v)?> then\n            set size to (125) %\n        else\n            set size to (100) %\n        end\n    end\nend\nif <(clone) = [23]> then\n    show\n    go to x: (0) y: (-190)\n    switch costume to (コスチューム57 v)\n    repeat (8)\n        change y by (10)\n    end\n    forever\n        if <touching (mouse-pointer v)?> then\n            set size to (125) %\n        else\n            set size to (100) %\n        end\n    end\nend\nif <(clone) = [24]> then\n    switch costume to (コスチューム52 v)\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (0.5) seconds\n    repeat (20)\n        change [brightness v] effect by (-5)\n    end\n    broadcast (next stage v)\n    broadcast (START v)\n    delete this clone\nend\nif <(clone) = [25]> then\n    switch costume to (コスチューム61 v)\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\nif <(clone) = [26]> then\n    set size to (75) %\n    show\n    go to x: (-167) y: (-47)\n    go to [front v] layer\n    if <[4] < (Survival Coin)> then\n        switch costume to (コスチューム58 v)\n    else\n        switch costume to (コスチューム59 v)\n    end\nend\nif <(clone) = [27]> then\n    set size to (75) %\n    show\n    go to x: (-56) y: (-47)\n    go to [front v] layer\n    if <[4] < (Survival Coin)> then\n        switch costume to (コスチューム58 v)\n    else\n        switch costume to (コスチューム59 v)\n    end\nend\nif <(clone) = [28]> then\n    set size to (75) %\n    show\n    go to x: (56) y: (-47)\n    go to [front v] layer\n    if <[9] < (Survival Coin)> then\n        switch costume to (コスチューム58 v)\n    else\n        switch costume to (コスチューム59 v)\n    end\nend\nif <(clone) = [29]> then\n    set size to (75) %\n    show\n    go to x: (167) y: (-47)\n    go to [front v] layer\n    if <[4] < (Survival Coin)> then\n        switch costume to (コスチューム58 v)\n    else\n        switch costume to (コスチューム59 v)\n    end\nend\nif <(clone) = [30]> then\n    show\n    go to x: (0) y: (-130)\n    switch costume to (コスチューム60 v)\n    go to [front v] layer\n    forever\n        if <touching (mouse-pointer v)?> then\n            set size to (125) %\n        else\n            set size to (100) %\n        end\n    end\nend\nif <(clone) = [31]> then\n    go to x: (-187) y: (-168)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム2 v)\n    set size to (120) %\nend\nif <(clone) = [32]> then\n    go to x: (-167) y: (-139)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム3 v)\n    set size to (120) %\n    forever\n        if <(Survival Coin) < [10]> then\n            switch costume to ((letter (2) of (Survival Coin)) + (3))\n        else\n            switch costume to ((letter (1) of (Survival Coin)) + (3))\n        end\n    end\nend\nif <(clone) = [33]> then\n    go to x: (-139) y: (-139)\n    show\n    go to [front v] layer\n    switch costume to (コスチューム3 v)\n    set size to (120) %\n    forever\n        if <(Survival Coin) < [10]> then\n            switch costume to ((letter (1) of (Survival Coin)) + (3))\n        else\n            switch costume to ((letter (2) of (Survival Coin)) + (3))\n        end\n    end\nend\nif <(clone) = [34]> then\n    switch costume to (コスチューム52 v)\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (0.5) seconds\n    repeat (20)\n        change [brightness v] effect by (-5)\n    end\n    set [stage v] to [0]\n    broadcast (Survival v)\n    delete this clone\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [16]> then\n    start sound [Door Closing v]\n    stop [other scripts in sprite v]\n    set [clone v] to [0]\n    clone [1]\n    set [shop v] to [1]\n    hide\n    set [move v] to [1]\n    if <(collect) < [1]> then\n        broadcast (stage clear v)\n    end\n    delete this clone\nend\n\nwhen I receive [race start v]\nif <(costume [number v]) = [25]> then\n    switch costume to (コスチューム26 v)\n    point in direction (90)\n    go to x: (-100) y: (130)\n    repeat (65)\n        move (5) steps\n        goal\n    end\n    repeat (9)\n        turn right (10) degrees\n        goal\n    end\n    repeat (17)\n        move (5) steps\n        goal\n    end\n    repeat (9)\n        turn right (10) degrees\n        goal\n    end\n    repeat (90)\n        move (5) steps\n        goal\n    end\n    repeat (9)\n        turn right (-10) degrees\n        goal\n    end\n    repeat (14)\n        move (5) steps\n        goal\n    end\n    repeat (9)\n        turn right (-10) degrees\n        goal\n    end\n    repeat (90)\n        move (5) steps\n        goal\n    end\n    repeat (9)\n        turn right (10) degrees\n        goal\n    end\n    repeat (27)\n        move (5) steps\n        goal\n    end\n    repeat (9)\n        turn right (10) degrees\n        goal\n    end\n    repeat (55)\n        move (5) steps\n        goal\n    end\n    switch costume to (コスチューム27 v)\n    point in direction (90)\n    broadcast (lose v)\n    repeat (4)\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\n    set [clone v] to [12]\n    clone [1]\n    repeat (3)\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\n    clone [1]\n    repeat (4)\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\n    clone [1]\n    forever\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [13]> then\n    if <[-167] = (x position)> then\n        if <not <[key v] contains [blue]?>> then\n            if <[29] = (stage)> then\n                if <[4] < (coin)> then\n                    start sound [Finger Snap v]\n                    add [blue] to [key v]\n                    next costume\n                    repeat (5)\n                        change [coin v] by (-1)\n                    end\n                end\n            else\n                if <[9] < (coin)> then\n                    start sound [Finger Snap v]\n                    add [blue] to [key v]\n                    next costume\n                    repeat (10)\n                        change [coin v] by (-1)\n                    end\n                end\n            end\n        end\n    end\n    if <[-56] = (x position)> then\n        if <[29] = (stage)> then\n            if <[4] < (coin)> then\n                start sound [Finger Snap v]\n                change [speed v] by (1)\n                next costume\n                repeat (5)\n                    change [coin v] by (-1)\n                end\n                if <[4] < (coin)> then\n                    switch costume to ((costume [number v]) - (1))\n                end\n            end\n        end\n    end\n    if <[56] = (x position)> then\n        if <[29] = (stage)> then\n            if <[9] < (coin)> then\n                start sound [Finger Snap v]\n                change [collect v] by (-10)\n                next costume\n                repeat (10)\n                    change [coin v] by (-1)\n                end\n            end\n        end\n    end\n    if <[167] = (x position)> then\n        if <[29] = (stage)> then\n            if <[0] < (coin)> then\n                start sound [Finger Snap v]\n                next costume\n                repeat (1)\n                    change [残機 v] by (1)\n                    change [coin v] by (-1)\n                end\n                if <[0] < (coin)> then\n                    switch costume to ((costume [number v]) - (1))\n                end\n            end\n        end\n    end\nend\n\nset size to (100) %\n\nwhen I receive [race v]\nset [clone v] to [11]\nclone [1]\n\nwhen this sprite clicked\nif <[23] = (costume [number v])> then\n    start sound [Finger Snap v]\n    broadcast (continue v)\n    hide\nend\n\nwhen I receive [continue v]\nif <(costume [number v]) = [21]> then\n    go to [front v] layer\n    repeat (30)\n        change [ghost v] effect by (-2)\n    end\n    broadcast (next stage v)\n    set [stage v] to [17]\n    hide\nelse\n    hide\nend\n\nwhen I receive [next stage v]\ndelete this clone\n\ndefine clone\nset [clone v] to [16]\nrepeat (100)\n    create clone of (_myself_ v)\nend\n\ndefine goal\nif <(goal) = [1]> then\n    set [clone v] to [16]\n    clone [1]\n    hide\n    delete this clone\nend\n\nwhen I receive [flag v]\nswitch backdrop to (背景1 v)\nset [clone v] to [17]\nclone [2]\n\nwhen I receive [title v]\nif <(costume [number v]) = [53]> then\n    start sound [Basketball Bounce v]\n    repeat (6)\n        change y by (-40)\n    end\n    delete this clone\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [55]> then\n    if <(x position) = [0]> then\n        set [x v] to [0]\n        start sound [Finger Snap v]\n        repeat (25)\n            change [x v] by (1)\n            change x by (x)\n            set size to (200) %\n        end\n        set [clone v] to [21]\n        clone [2]\n        delete this clone\n    end\nend\nif <(costume [number v]) = [57]> then\n    if <(y position) = [-110]> then\n        start sound [Finger Snap v]\n        set [clone v] to [23]\n        clone [1]\n    end\nend\nif <(costume [number v]) = [56]> then\n    if <(y position) = [-30]> then\n        start sound [Finger Snap v]\n        set [clone v] to [24]\n        clone [9]\n    end\nend\nif <(costume [number v]) = [59]> then\n    if <(x position) = [-167]> then\n        start sound [Finger Snap v]\n        switch costume to (コスチューム59 v)\n        repeat (1)\n            add [1] to [survival v]\n        end\n        repeat (5)\n            change [survival coin v] by (-1)\n        end\n    end\n    if <(x position) = [-56]> then\n        start sound [Finger Snap v]\n        switch costume to (コスチューム59 v)\n        repeat (1)\n            add [2] to [survival v]\n        end\n        repeat (5)\n            change [survival coin v] by (-1)\n        end\n    end\nend\nif <(x position) = [56]> then\n    start sound [Finger Snap v]\n    switch costume to (コスチューム59 v)\n    repeat (1)\n        add [3] to [survival v]\n    end\n    repeat (10)\n        change [survival coin v] by (-1)\n    end\nend\nif <(x position) = [167]> then\n    start sound [Finger Snap v]\n    switch costume to (コスチューム59 v)\n    repeat (1)\n        add [4] to [survival v]\n    end\n    repeat (5)\n        change [survival coin v] by (-1)\n    end\nend\nif <[58] = (costume [number v])> then\n    start sound [Finger Snap v]\n    set [clone v] to [33]\n    clone [1]\nend\n\nwhen I receive [survival v]\ndelete this clone\n\n@スプライト6\n\nwhen I receive [start v]\nset [残機 v] to [1]\nset [clone v] to [0]\nrepeat (4)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(clone) = [1]> then\n    forever\n        switch costume to (コスチューム1 v)\n        go to x: (-189) y: (152)\n        show\n        透明\n    end\nend\nif <(clone) = [2]> then\n    forever\n        go to x: (-190) y: (148)\n        show\n        透明\n        if <[99] < (collect)> then\n            switch costume to (コスチューム3 v)\n        else\n            switch costume to (コスチューム2 v)\n        end\n    end\nend\nif <(clone) = [3]> then\n    forever\n        go to x: (-165) y: (148)\n        show\n        透明\n        if <[9] < (collect)> then\n            switch costume to ((letter (1) of (collect)) + (2))\n        else\n            switch costume to (コスチューム2 v)\n        end\n    end\nend\nif <(clone) = [4]> then\n    forever\n        go to x: (-140) y: (148)\n        show\n        透明\n        if <[99] < (collect)> then\n            switch costume to ((letter (3) of (collect)) + (2))\n        else\n            if <[9] < (collect)> then\n                switch costume to ((letter (2) of (collect)) + (2))\n            else\n                switch costume to ((letter (1) of (collect)) + (2))\n            end\n        end\n    end\nend\nif <(clone) = [5]> then\n    forever\n        switch costume to (コスチューム12 v)\n        go to x: (-93) y: (156)\n        set size to (200) %\n        show\n        透明2\n    end\nend\nif <(clone) = [6]> then\n    forever\n        set size to (65) %\n        set [brightness v] effect to (-100)\n        透明2\n        if <[9] < (残機)> then\n            switch costume to ((letter (1) of (残機)) + (2))\n            go to x: (-101) y: (153)\n            show\n        else\n            hide\n        end\n    end\nend\nif <(clone) = [7]> then\n    forever\n        set size to (65) %\n        set [brightness v] effect to (-100)\n        show\n        透明2\n        if <[9] < (残機)> then\n            go to x: (-83) y: (153)\n            switch costume to ((letter (2) of (残機)) + (2))\n        else\n            switch costume to ((letter (1) of (残機)) + (2))\n            go to x: (-92) y: (153)\n        end\n    end\nend\n\ndefine 透明\nif <<[115] < ([y position v] of [player v])> and <([x position v] of [player v]) < [-110]>> then\n    set [ghost v] effect to (50)\nelse\n    set [ghost v] effect to (0)\nend\n\nwhen I receive [start! v]\nif <(stage) = [29]> then\n    wait until <[1] < (残機)>\n    set [clone v] to [4]\n    repeat (3)\n        change [clone v] by (1)\n        create clone of (_myself_ v)\n    end\n    hide\nend\n\ndefine 透明2\nif <<[112] < ([y position v] of [player v])> and <<[-136] < ([x position v] of [player v])> and <([x position v] of [player v]) < [-34]>>> then\n    set [ghost v] effect to (90)\nelse\n    set [ghost v] effect to (0)\nend\n\nwhen I receive [survival v]\nif <[survival v] contains [4]?> then\n    set [残機 v] to [4]\nelse\n    set [残機 v] to [3]\nend\nset [clone v] to [4]\nrepeat (3)\n    change [clone v] by (1)\n    create clone of (_myself_ v)\nend\n\n@スプライト7\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n