Dango Platformer #games #all

Instructions: Use the arrow keys to move the player.\nOn the bottom left is your level count.\nPress space to see your "deaths". \nThere are 50 levels all in all, so try to complete them!\nWhich are all POSSIBLE.\nFULL SCREEN RECOMMENDED\n\nHave fun and enjoy! :)\nHistory~\n11/30/15 - Shared\nCURATED - 1/26/16\n1000 VIEWS! Yay! -1/26/16\n2000 VIEWS! 1/27/16\n3000 VIEWS! 1/27/16! - O_O\n5000 VIEWS?! 1/27/16 - (O)_(O) \nTOP LOVED? 1/28/16- (OO)_____(OO)\n10000 VIEWS?!! (OO)________(OO) THANKS SO MUCH!!!\nReported - 1/29/16  -_-\nBack UP! -1/30/16 - Thanks Scratch Team! \n35 REMIXES -     O                                     O\n                                     ____________\nEdited - Platform Glitch a little solved XD\nFIXED?!!... maybe? No, not really -_-  - 5/22/16 \nNO MORE BUGS! - 5/28/16\nFixed LV. 37 glitch - 7/1/16

@Stage\n\nwhen I receive [game start v]\nstop [other scripts in sprite v]\nstop all sounds\nforever\n    set [bgm v] to (pick random (1) to (5))\n    if <(bgm) = [1]> then\n        play sound [18 Sugerland Shimmy v] until done\n    end\n    if <(bgm) = [2]> then\n        play sound [12 Ruse Of An Ooze v] until done\n    end\n    if <(bgm) = [3]> then\n        play sound [22 Fiery Frolic v] until done\n    end\n    if <(bgm) = [4]> then\n        play sound [19 Aviary Action v] until done\n    end\n    if <(bgm) = [5]> then\n        play sound [39 Murine Corps v] until done\n    end\nend\n\nwhen I receive [game start v]\nreset timer\n\nwhen I receive [next stage v]\nif <(ステージ) = [17]> then\n    hide variable [time v]\n    reset timer\nend\n\nwhen flag clicked\nstop all sounds\nswitch backdrop to (背景3 v)\n\nwhen I receive [game v]\nforever\n    play sound [Odesong v] until done\nend\n\nwhen I receive [start v]\nstop [other scripts in sprite v]\nforever\n    play sound [Dance Chill Out v] until done\nend\n\nwhen flag clicked\nhide variable [time v]\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nstop all sounds\nstart sound [Lose v]\n\n@バネ\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(バネ) = [1]> then\n    set size to (100) %\n    show\n    switch costume to (コスチューム12 v)\n    go to x: (246) y: (-88)\n    repeat (62)\n        change x by (-8)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <<touching (スプライト1 v)?> or <touching (platformer v)?>> then\n        repeat (10)\n            next costume\n        end\n        switch costume to ((costume [number v]) - (10))\n    end\nend\n\nwhen I start as a clone\nif <(バネ) = [3]> then\n    バネ [-173]\nend\nif <(バネ) = [4]> then\n    バネ [-86]\nend\nif <(バネ) = [6]> then\n    バネ [9]\nend\nif <(バネ) = [7]> then\n    バネ [104]\nend\nif <(バネ) = [8]> then\n    バネ [194]\nend\n\nwhen I start as a clone\n\ndefine バネ (ｘ)\nset size to (15) %\nshow\nswitch costume to (コスチューム2 v)\ngo to x: (ｘ) y: (190)\nrepeat (5)\n    change y by (-59)\nend\n\nwhen I receive [地面 v]\ngo to [back v] layer\nrepeat (30)\n    change y by (-1)\nend\ndelete this clone\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@スプライト1\n\ndefine 落下\nset size to (100) %\nswitch costume to (コスチューム1 v)\npoint in direction (-90)\nshow\ngo to x: (pick random (-246) to (246)) y: (198)\nrepeat (10)\n    change y by (-5)\nend\nwait (0.6) seconds\nrepeat (23)\n    change y by (-15)\nend\ndelete this clone\n\nwhen I receive [game start v]\nwait (3) seconds\nif <(難易度) = [1]> then\n    delete all of [攻撃 v]\n    add [落下] to [攻撃 v]\n    Clone [1] [20] [2] [2]\n    Clone [1] [20] [1.5] [1.5]\n    Clone [1] [20] [1] [1]\n    forever\n        create clone of (_myself_ v)\n        wait (0.5) seconds\n    end\nend\nif <(難易度) = [2]> then\n    delete all of [攻撃 v]\n    add [落下] to [攻撃 v]\n    add [横移動] to [攻撃 v]\n    add [ジャンプ] to [攻撃 v]\n    add [落下移動] to [攻撃 v]\n    add [画面半分] to [攻撃 v]\n    forever\n        set [攻撃 v] to (pick random (1) to (5))\n        if <(item (攻撃) of [攻撃 v]) = [落下]> then\n            Clone [1] [20] [1] [1]\n            wait (1.6) seconds\n            delete all of [攻撃 v]\n            add [横移動] to [攻撃 v]\n            add [ジャンプ] to [攻撃 v]\n            add [落下移動] to [攻撃 v]\n            add [画面半分] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [横移動]> then\n            Clone [2] [15] [1.40] [2.00]\n            wait (2) seconds\n            delete all of [攻撃 v]\n            add [ジャンプ] to [攻撃 v]\n            add [落下移動] to [攻撃 v]\n            add [画面半分] to [攻撃 v]\n            add [落下] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [ジャンプ]> then\n            Clone [4] [13] [2] [2]\n            wait (3) seconds\n            delete all of [攻撃 v]\n            add [落下] to [攻撃 v]\n            add [横移動] to [攻撃 v]\n            add [落下移動] to [攻撃 v]\n            add [画面半分] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [落下移動]> then\n            Clone [5] [10] [2] [2.5]\n            wait (2.3) seconds\n            delete all of [攻撃 v]\n            add [落下] to [攻撃 v]\n            add [横移動] to [攻撃 v]\n            add [ジャンプ] to [攻撃 v]\n            add [画面半分] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [画面半分]> then\n            Clone [6] [1] [0] [0]\n            wait (5.5) seconds\n            delete all of [攻撃 v]\n            add [落下] to [攻撃 v]\n            add [横移動] to [攻撃 v]\n            add [ジャンプ] to [攻撃 v]\n            add [落下移動] to [攻撃 v]\n        end\n    end\nend\nif <(難易度) = [3]> then\n    delete all of [攻撃 v]\n    add [弧] to [攻撃 v]\n    add [バネ針] to [攻撃 v]\n    add [天井] to [攻撃 v]\n    add [回転針] to [攻撃 v]\n    add [上下針] to [攻撃 v]\n    forever\n        set [攻撃 v] to (pick random (1) to (5))\n        if <(item (攻撃) of [攻撃 v]) = [上下針]> then\n            Clone [11] [1] [0] [0]\n            Clone [3] [1] [0] [0]\n            wait (30) seconds\n            delete all of [攻撃 v]\n            add [弧] to [攻撃 v]\n            add [バネ針] to [攻撃 v]\n            add [天井] to [攻撃 v]\n            add [回転針] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [弧]> then\n            Clone [7] [7] [7.5] [7.5]\n            wait (2) seconds\n            delete all of [攻撃 v]\n            add [バネ針] to [攻撃 v]\n            add [天井] to [攻撃 v]\n            add [回転針] to [攻撃 v]\n            add [上下針] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [バネ針]> then\n            Clone [8] [12] [1.3] [1.5]\n            wait (2) seconds\n            delete all of [攻撃 v]\n            add [弧] to [攻撃 v]\n            add [天井] to [攻撃 v]\n            add [回転針] to [攻撃 v]\n            add [上下針] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [天井]> then\n            Clone [9] [1] [0] [0]\n            wait (27) seconds\n            delete all of [攻撃 v]\n            add [弧] to [攻撃 v]\n            add [バネ針] to [攻撃 v]\n            add [回転針] to [攻撃 v]\n            add [上下針] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [回転針]> then\n            Clone [10] [10] [3.5] [3.2]\n            wait (4) seconds\n            delete all of [攻撃 v]\n            add [弧] to [攻撃 v]\n            add [バネ針] to [攻撃 v]\n            add [天井] to [攻撃 v]\n            add [上下針] to [攻撃 v]\n        end\n    end\nend\nif <(難易度) = [4]> then\n    delete all of [攻撃 v]\n    add [地面分裂] to [攻撃 v]\n    add [軌道] to [攻撃 v]\n    add [分裂] to [攻撃 v]\n    add [一回転] to [攻撃 v]\n    add [地形] to [攻撃 v]\n    forever\n        set [攻撃 v] to (pick random (1) to (5))\n        if <(item (攻撃) of [攻撃 v]) = [地面分裂]> then\n            Clone [12] [10] [1.7] [1.7]\n            wait (1.5) seconds\n            delete all of [攻撃 v]\n            add [軌道] to [攻撃 v]\n            add [分裂] to [攻撃 v]\n            add [一回転] to [攻撃 v]\n            add [地形] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [軌道]> then\n            Clone [13] [1] [0] [0]\n            wait (25) seconds\n            delete all of [攻撃 v]\n            add [地面分裂] to [攻撃 v]\n            add [分裂] to [攻撃 v]\n            add [一回転] to [攻撃 v]\n            add [地形] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [分裂]> then\n            Clone [14] [12] [2.3] [2.5]\n            wait (1.5) seconds\n            delete all of [攻撃 v]\n            add [地面分裂] to [攻撃 v]\n            add [軌道] to [攻撃 v]\n            add [一回転] to [攻撃 v]\n            add [地形] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [一回転]> then\n            Clone [15] [1] [0] [0]\n            wait (50) seconds\n            delete all of [攻撃 v]\n            add [地面分裂] to [攻撃 v]\n            add [軌道] to [攻撃 v]\n            add [分裂] to [攻撃 v]\n            add [地形] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [地形]> then\n            set [上 v] to [0]\n            set [バネ v] to [2]\n            repeat (6)\n                change [バネ v] by (1)\n                create clone of (バネ v)\n                wait (0.3) seconds\n            end\n            change [バネ v] by (1)\n            create clone of (地面 v)\n            set [clone v] to [16]\n            repeat (6)\n                set [clone v] to [16]\n                repeat (pick random (1) to (20))\n                    switch costume to (コスチューム24 v)\n                    create clone of (_myself_ v)\n                    wait (0.0001) seconds\n                    switch costume to (コスチューム25 v)\n                    create clone of (_myself_ v)\n                    wait (0.0001) seconds\n                end\n                repeat (pick random (1) to (2))\n                    set [clone v] to (pick random (17) to (22))\n                    create clone of (_myself_ v)\n                end\n                wait (2) seconds\n                set [clone v] to [16]\n                repeat (pick random (1) to (20))\n                    switch costume to (コスチューム22 v)\n                    create clone of (_myself_ v)\n                    wait (0.0001) seconds\n                    switch costume to (コスチューム23 v)\n                    create clone of (_myself_ v)\n                    wait (0.0001) seconds\n                end\n                wait (2) seconds\n                set [clone v] to [23]\n            end\n            broadcast (地面 v)\n            wait (3) seconds\n            delete all of [攻撃 v]\n            add [地面分裂] to [攻撃 v]\n            add [軌道] to [攻撃 v]\n            add [分裂] to [攻撃 v]\n            add [一回転] to [攻撃 v]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clone) = [1]> then\n    落下\nend\nif <(clone) = [2]> then\n    横移動 [98] [-5]\nend\nif <(clone) = [4]> then\n    ジャンプ\nend\nif <(clone) = [5]> then\n    落下移動\nend\nif <(clone) = [6]> then\n    if <(難易度) = [3]> then\n        画面半分 [0] [11] [40]\n    else\n        画面半分 [3] [22] [20]\n    end\nend\nif <(clone) = [7]> then\n    弧\nend\nif <(clone) = [8]> then\n    バネ針\nend\nif <(clone) = [9]> then\n    天井\nend\nif <(clone) = [10]> then\n    回転針\nend\nif <(clone) = [11]> then\n    上下針 [213] [272] [-90] [-10] [2]\nend\nif <(clone) = [3]> then\n    上下針 [213] [-210] [90] [10] [-2]\nend\nif <(clone) = [12]> then\n    地面分裂\nend\nif <(clone) = [13]> then\n    軌道\nend\nif <(clone) = [14]> then\n    分裂\nend\nif <(clone) = [15]> then\n    一回転\nend\nif <(clone) = [16]> then\n    show\n    go to [front v] layer\n    change y by (0)\n    set x to (257)\n    repeat until <(x position) < [-230]>\n        change x by (-50)\n    end\n    delete this clone\nend\nif <(clone) = [17]> then\n    needle [-231]\nend\nif <(clone) = [18]> then\n    needle [-136]\nend\nif <(clone) = [19]> then\n    needle [-49]\nend\nif <(clone) = [20]> then\n    needle [45]\nend\nif <(clone) = [21]> then\n    needle [140]\nend\nif <(clone) = [22]> then\n    needle [235]\nend\n\ndefine 横移動 (回) (ｘ)\nset size to (100) %\nswitch costume to (コスチューム1 v)\npoint in direction (90)\nshow\ngo to x: (246) y: (-87)\nrepeat (回)\n    change x by (ｘ)\nend\ndelete this clone\n\ndefine Clone (clone) (回数) (秒) (秒2)\nrepeat (回数)\n    set [clone v] to (clone)\n    create clone of (_myself_ v)\n    wait (pick random (秒) to (秒2)) seconds\nend\n\ndefine ジャンプ\nset size to (100) %\nswitch costume to (コスチューム3 v)\npoint in direction (90)\nshow\ngo to x: (260) y: (pick random (0) to (-100))\nset [y v] to [20]\nrepeat until <(x position) < [-260]>\n    turn right (10) degrees\n    change x by (-4)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (地面 v)?> then\n        set [y v] to [20]\n    end\nend\ndelete this clone\n\ndefine 落下移動\nset size to (125) %\nswitch costume to (コスチューム3 v)\npoint in direction (90)\nshow\ngo to x: (pick random (-275) to (275)) y: (198)\nrepeat (61)\n    change y by (-5)\n    turn right (10) degrees\nend\nif <(x position) < ([x position v] of [platformer v])> then\n    repeat until <[270] < (x position)>\n        change x by (15)\n        turn right (10) degrees\n    end\n    delete this clone\nelse\n    repeat until <(x position) < [-270]>\n        change x by (-15)\n        turn right (-10) degrees\n    end\n    delete this clone\nend\n\ndefine 画面半分 (回) (回数) (歩)\nset size to (100) %\nswitch costume to (コスチューム2 v)\nset [変数 v] to (pick random (1) to (2))\nshow\nif <(変数) = [1]> then\n    point in direction (180)\n    go to x: (-389) y: (130)\n    repeat (12)\n        change x by (10)\n    end\n    repeat (4)\n        turn right (5) degrees\n    end\n    repeat (回)\n        repeat (8)\n            turn right (-5) degrees\n        end\n        repeat (8)\n            turn right (5) degrees\n        end\n    end\n    repeat (4)\n        turn right (-5) degrees\n    end\n    repeat (4)\n        change x by (5)\n    end\n    repeat (7)\n        change x by (-20)\n    end\n    hide\n    wait (0.3) seconds\n    point in direction (90)\n    show\n    switch costume to (コスチューム4 v)\n    go to x: (-440) y: (0)\n    repeat (回数)\n        change x by (歩)\n    end\n    repeat (44)\n        change x by (-10)\n    end\n    delete this clone\nelse\n    point in direction (0)\n    go to x: (389) y: (130)\n    repeat (12)\n        change x by (-10)\n    end\n    repeat (4)\n        turn right (5) degrees\n    end\n    repeat (回)\n        repeat (8)\n            turn right (-5) degrees\n        end\n        repeat (8)\n            turn right (5) degrees\n        end\n    end\n    repeat (4)\n        turn right (-5) degrees\n    end\n    repeat (4)\n        change x by (-5)\n    end\n    repeat (7)\n        change x by (20)\n    end\n    hide\n    wait (0.3) seconds\n    point in direction (-90)\n    show\n    switch costume to (コスチューム4 v)\n    go to x: (440) y: (0)\n    repeat (回数)\n        change x by ((歩) * (-1))\n    end\n    repeat (44)\n        change x by (10)\n    end\n    delete this clone\nend\n\ndefine 弧\nset size to (80) %\nswitch costume to (コスチューム5 v)\nshow\npoint in direction (-150)\ngo to x: (251) y: (pick random (-150) to (-80))\nrepeat (6)\n    repeat (6)\n        turn right (10) degrees\n        change x by (-20)\n    end\n    repeat (6)\n        turn right (10) degrees\n        move (10) steps\n    end\n    repeat (24)\n        turn right (10) degrees\n        move (10) steps\n        change y by (-1)\n    end\nend\nrepeat (6)\n    turn right (10) degrees\n    change x by (-20)\nend\ndelete this clone\n\ndefine バネ針\nset [バネ v] to [1]\ncreate clone of (バネ v)\nshow\nswitch costume to (コスチューム1 v)\npoint in direction (90)\ngo to x: (246) y: (0)\nset [y v] to [0]\nrepeat (62)\n    change x by (-8)\n    change [y v] by (-2)\n    change y by (Y)\n    if <touching (バネ v)?> then\n        set [y v] to [30]\n    end\nend\ndelete this clone\n\ndefine 天井. (ｘ)\nrepeat (pick random (1) to (60))\n    change x by (ｘ)\nend\nrepeat (10)\n    set y to (y position)\nend\nrepeat (10)\n    change y by (1)\nend\nrepeat (20)\n    change y by (-10)\nend\nrepeat (19)\n    change y by (10)\nend\n\ndefine 回転針\nswitch costume to (コスチューム7 v)\nshow\npoint in direction (90)\ngo to x: (248) y: (-80)\nrepeat (4)\n    回転 [3]\n    回転 [2]\n    回転 [1]\n    回転 [0]\n    回転 [-2]\n    回転 [-3]\n    回転 [-5]\n    回転 [-6]\n    回転 [-6]\n    回転 [-7]\n    回転 [-4]\n    回転 [6]\n    回転 [6]\n    回転 [5]\n    回転 [4]\n    回転 [3]\n    回転 [2]\n    回転 [1]\n    回転 [-1]\n    回転 [-2]\n    回転 [-3]\n    回転 [-4]\n    回転 [-5]\n    回転 [-5]\n    回転 [-6]\n    回転 [3]\n    回転 [7]\n    回転 [6]\n    回転 [6]\n    回転 [4]\n    回転 [3]\n    回転 [2]\n    回転 [1]\n    回転 [0]\n    回転 [-2]\n    回転 [-4]\nend\n回転 [3]\n回転 [2]\n回転 [1]\n回転 [0]\n回転 [-2]\n回転 [-3]\n回転 [-5]\n回転 [-6]\n回転 [-6]\n回転 [-7]\n回転 [-4]\n回転 [6]\n回転 [6]\n回転 [5]\n回転 [4]\n回転 [3]\n回転 [2]\n回転 [1]\n回転 [-1]\n回転 [-2]\n回転 [-3]\n回転 [-4]\n回転 [-5]\n回転 [-5]\n回転 [-6]\n回転 [3]\n回転 [7]\n回転 [6]\n回転 [6]\n回転 [4]\ndelete this clone\n\ndefine 回転 (ｙ)\nturn left (10) degrees\nchange x by (-3)\nchange y by (ｙ)\nrepeat (1)\n    set y to (y position)\nend\n\ndefine 天井\npoint in direction (90)\nswitch costume to (コスチューム6 v)\nshow\ngo to x: (0) y: (286)\nrepeat (18)\n    change y by (-5)\nend\nrepeat (8)\n    change x by (-20)\nend\nrepeat (70)\n    change x by (20)\nend\nrepeat (3)\n    天井. [-20]\n    repeat until <(x position) < [120]>\n        change x by (-20)\n    end\n    天井. [20]\n    repeat until <[1000] < (x position)>\n        change x by (20)\n    end\nend\nrepeat (19)\n    change y by (5)\nend\ndelete this clone\n\ndefine 上下針 (ｘ) (ｙ) (度) (y1) (y2)\nshow\nswitch costume to (コスチューム8 v)\npoint in direction (度)\ngo to [back v] layer\ngo to x: (ｘ) y: (ｙ)\nrepeat (12)\n    change y by (y1)\nend\nrepeat (6)\n    repeat (60)\n        change y by (y2)\n    end\n    repeat (60)\n        change y by ((y2) * (-1))\n    end\nend\nrepeat (60)\n    change y by (y2)\nend\ndelete this clone\n\nwhen I start as a clone\nif <<(clone) = [11]> or <(clone) = [3]>> then\n    forever\n        repeat until <(x position) < [-210]>\n            change x by (-5)\n        end\n        repeat until <[210] < (x position)>\n            change x by (5)\n        end\n    end\nend\n\ndefine 地面分裂\nswitch costume to (コスチューム9 v)\nset size to (100) %\npoint in direction (90)\nshow\ngo to x: (pick random (-246) to (246)) y: (198)\nrepeat (10)\n    change y by (-5)\nend\nwait (0.6) seconds\nrepeat (16)\n    change y by (-15)\nend\nset [地面分裂 v] to (x position)\nset [clone v] to [101]\ncreate clone of (_myself_ v)\nset [clone v] to [102]\ncreate clone of (_myself_ v)\ndelete this clone\n\nwhen I start as a clone\nif <[101] = (clone)> then\n    show\n    go to x: (地面分裂) y: (-92)\n    switch costume to (コスチューム10 v)\n    repeat until <[-230] = (x position)>\n        change x by (-25)\n    end\n    delete this clone\nend\nif <[102] = (clone)> then\n    show\n    go to x: (地面分裂) y: (-92)\n    switch costume to (コスチューム11 v)\n    repeat until <[230] = (x position)>\n        change x by (25)\n    end\n    delete this clone\nend\nif <(clone) = [103]> then\n    switch costume to (コスチューム3 v)\n    show\n    set size to (100) %\n    go to x: (地面分裂) y: (-108)\n    set [y v] to [11.5]\n    repeat (52)\n        turn right (-10) degrees\n        change x by (-3)\n        change [y v] by (-0.5)\n        change y by (Y)\n    end\n    delete this clone\nend\n\ndefine 軌道\nset [変数 v] to [3]\nset [clone v] to [100]\npoint in direction (90)\ncreate clone of (_myself_ v)\nwait (2) seconds\ngo to x: (0) y: (200)\npoint in direction (-135)\nset size to (150) %\nshow\nrepeat (76)\n    switch costume to (コスチューム3 v)\n    repeat (7)\n        next costume\n        move (10) steps\n        if on edge, bounce\n    end\nend\nswitch costume to (コスチューム3 v)\npoint in direction (135)\nrepeat (7)\n    next costume\n    move (10) steps\nend\nswitch costume to (コスチューム3 v)\nrepeat (4)\n    next costume\n    set [変数 v] to [0]\n    move (10) steps\nend\ndelete this clone\n\ndefine 分裂\nshow\nswitch costume to (コスチューム20 v)\nset size to (200) %\npoint in direction (90)\ngo to x: (pick random (270) to (-270)) y: (222)\nrepeat (32)\n    turn right (10) degrees\n    change y by (-10)\nend\nset [地面分裂 v] to (x position)\nset [clone v] to [103]\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム3 v)\nset size to (100) %\nset y to (-108)\nset [y v] to [11.5]\nrepeat (52)\n    turn right (10) degrees\n    change x by (3)\n    change [y v] by (-0.5)\n    change y by (Y)\nend\ndelete this clone\n\ndefine 一回転\nset [バネ v] to [2]\ncreate clone of (地面 v)\nshow\ngo to [front v] layer\nswitch costume to (コスチューム21 v)\npoint in direction (90)\ngo to x: (0) y: (240)\nrepeat (12)\n    change y by (-20)\nend\nset [角度 v] to [0]\nrepeat (1092)\n    turn right ((0.5) + (角度)) degrees\n    change [角度 v] by (0.0015)\nend\nrepeat (160)\n    turn right ((0.5) + (角度)) degrees\n    change [角度 v] by (0.0015)\nend\nrepeat (12)\n    change y by (20)\nend\nbroadcast (地面 v)\ndelete this clone\n\nwhen I start as a clone\nif <[100] = (clone)> then\n    point in direction (90)\n    show\n    set size to (100) %\n    switch costume to (コスチューム19 v)\n    go to x: (0) y: (270)\n    repeat (27)\n        change y by (-10)\n    end\n    wait (22.5) seconds\n    repeat (27)\n        change y by (10)\n    end\n    delete this clone\nend\n\nforever\n\ndefine needle (x)\nshow\nswitch costume to (コスチューム26 v)\ngo to [back v] layer\ngo to x: (x) y: (54)\nrepeat (10)\n    change y by (2)\nend\nwait (6) seconds\nrepeat (10)\n    change y by (-2)\nend\ndelete this clone\n\nwhen I receive [地面 v]\nif <(costume [number v]) = [26]> then\n    delete this clone\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@スプライト2\n\nwhen I receive [game start v]\nif <(難易度) = [5]> then\n    delete all of [攻撃 v]\n    add [上昇] to [攻撃 v]\n    add [W移動] to [攻撃 v]\n    add [5way] to [攻撃 v]\n    add [地面] to [攻撃 v]\n    add [ビーム] to [攻撃 v]\n    wait (5) seconds\n    forever\n        set [攻撃 v] to (pick random (1) to (5))\n        if <(item (攻撃) of [攻撃 v]) = [上昇]> then\n            set [clone v] to [0]\n            repeat (3)\n                change [clone v] by (1)\n                create clone of (_myself_ v)\n            end\n            wait (7) seconds\n            delete all of [攻撃 v]\n            add [W移動] to [攻撃 v]\n            add [5way] to [攻撃 v]\n            add [地面] to [攻撃 v]\n            add [ビーム] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [W移動]> then\n            repeat (6)\n                set [clone v] to [4]\n                create clone of (_myself_ v)\n                set [clone v] to [5]\n                create clone of (_myself_ v)\n                wait (2) seconds\n            end\n            wait (2) seconds\n            delete all of [攻撃 v]\n            add [上昇] to [攻撃 v]\n            add [5way] to [攻撃 v]\n            add [地面] to [攻撃 v]\n            add [ビーム] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [5way]> then\n            set [clone v] to [6]\n            broadcast (sun v)\n            wait (14) seconds\n            delete all of [攻撃 v]\n            add [上昇] to [攻撃 v]\n            add [W移動] to [攻撃 v]\n            add [地面] to [攻撃 v]\n            add [ビーム] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [地面]> then\n            set [clone v] to [11]\n            repeat (20)\n                create clone of (_myself_ v)\n                wait (0.75) seconds\n            end\n            wait (5) seconds\n            delete all of [攻撃 v]\n            add [上昇] to [攻撃 v]\n            add [W移動] to [攻撃 v]\n            add [5way] to [攻撃 v]\n            add [ビーム] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [ビーム]> then\n            set [clone v] to [12]\n            create clone of (_myself_ v)\n            wait (27) seconds\n            delete all of [攻撃 v]\n            add [上昇] to [攻撃 v]\n            add [W移動] to [攻撃 v]\n            add [5way] to [攻撃 v]\n            add [地面] to [攻撃 v]\n        end\n    end\nend\n\ndefine Clone (clone) (回数) (秒) (秒2)\nrepeat (回数)\n    set [clone v] to (clone)\n    create clone of (_myself_ v)\n    if <(clone) = (pick random (1) to (3))> then\n        wait (pick random (秒) to (秒2)) seconds\n    end\nend\n\nwhen I receive [地面 v]\nif <(costume [number v]) = [26]> then\n    delete this clone\nend\n\ndefine 天井. (ｘ)\nrepeat (pick random (1) to (60))\n    change x by (ｘ)\nend\nrepeat (10)\n    set y to (y position)\nend\nrepeat (10)\n    change y by (1)\nend\nrepeat (20)\n    change y by (-10)\nend\nrepeat (19)\n    change y by (10)\nend\n\ndefine 角度 (回数) (x)\nrepeat (回数)\n    go to [back v] layer\n    change x by (x)\n    turn right (5) degrees\n    change y by (2)\nend\n\nwhen I start as a clone\n\nwhen I start as a clone\nif <(clone) = [4]> then\n    show\n    go to [back v] layer\n    set size to (100) %\n    switch costume to (コスチューム27 v)\n    point in direction (90)\n    go to x: (-240) y: (89)\n    repeat (48)\n        change x by (10)\n    end\n    delete this clone\nend\n\ndefine 上昇 (x1) (x2) (clone)\nif <(clone) = (clone)> then\n    show\n    set size to (70) %\n    switch costume to (コスチューム3 v)\n    go to x: (pick random (x1) to (x2)) y: (-187)\n    repeat (3)\n        角度 [6] [-5]\n        角度 [3] [-4]\n        角度 [3] [-3]\n        角度 [3] [-2]\n        角度 [3] [-1]\n        角度 [3] [1]\n        角度 [3] [2]\n        角度 [3] [3]\n        角度 [3] [4]\n        角度 [12] [5]\n        角度 [3] [4]\n        角度 [3] [3]\n        角度 [3] [2]\n        角度 [3] [1]\n        角度 [3] [-1]\n        角度 [3] [-2]\n        角度 [3] [-3]\n        角度 [3] [-4]\n        角度 [6] [-5]\n    end\nend\n\nwhen I start as a clone\n上昇 [180] [60] [1]\n\nwhen I start as a clone\n上昇 [-60] [60] [2]\n\nwhen I start as a clone\n上昇 [-60] [-180] [3]\n\nwhen I start as a clone\nif <(clone) = [5]> then\n    show\n    go to [back v] layer\n    set size to (100) %\n    switch costume to (コスチューム27 v)\n    point in direction (90)\n    go to x: (240) y: (89)\n    repeat (48)\n        change x by (-10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [11]> then\n    show\n    point in direction (90)\n    set size to (100) %\n    switch costume to (コスチューム28 v)\n    go to [front v] layer\n    go to x: (pick random (-246) to (246)) y: (198)\n    repeat (4)\n        change y by (-10)\n    end\n    wait (1.5) seconds\n    repeat (18)\n        change y by (-20)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [12]> then\n    show\n    point in direction (90)\n    set size to (100) %\n    switch costume to (コスチューム29 v)\n    wait (0.5) seconds\n    repeat (6)\n        switch costume to (コスチューム30 v)\n        wait (1.5) seconds\n        repeat (4)\n            switch costume to (コスチューム31 v)\n            wait (0.2) seconds\n            switch costume to (コスチューム30 v)\n            wait (0.2) seconds\n        end\n        switch costume to (コスチューム29 v)\n        wait (0.5) seconds\n    end\n    switch costume to (コスチューム30 v)\nend\n\nwhen I start as a clone\nif <(clone) = [12]> then\n    go to [front v] layer\n    go to x: (267) y: (-120)\n    repeat (7)\n        repeat (52)\n            change x by (-10)\n        end\n        repeat (52)\n            change x by (10)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <<(clone) = [6]> and <(針) = [1]>> then\n    5way [0]\nend\n\ndefine 5way (＋)\ngo to [front v] layer\nshow\nswitch costume to (コスチューム5 v)\npoint in direction ((＋) + ((3) * (針　変数)))\nset size to (50) %\ngo to x: (-216) y: (-163)\nrepeat until <<[180] < (y position)> or <[240] < (x position)>>\n    move (7) steps\nend\ndelete this clone\n\nwhen I start as a clone\nif <<(clone) = [6]> and <(針) = [2]>> then\n    5way [18]\nend\n\nwhen I start as a clone\nif <<(clone) = [6]> and <(針) = [3]>> then\n    5way [36]\nend\n\nwhen I start as a clone\nif <<(clone) = [6]> and <(針) = [4]>> then\n    5way [54]\nend\n\nwhen I start as a clone\nif <<(clone) = [6]> and <(針) = [5]>> then\n    5way [72]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@スプライト5\n\nwhen flag clicked\nswitch costume to (背景2 v)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@スプライト4\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (コスチューム1 v)\nrepeat (29)\n    next costume\nend\nwait (1) seconds\nrepeat (8)\n    next costume\nend\nwait (1) seconds\nrepeat (33)\n    next costume\nend\nwait (1) seconds\nrepeat (15)\n    switch costume to (コスチューム72 v)\n    repeat (3)\n        next costume\n    end\nend\nrepeat (8)\n    next costume\nend\nwait (1) seconds\nrepeat (26)\n    next costume\nend\nbroadcast (game v)\n\nwhen I receive [start v]\nhide\n\n@スプライト6\n\nwhen flag clicked\nshow\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (0)\ngo to [back v] layer\n\nwhen I receive [game v]\nshow\nswitch costume to (コスチューム1 v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nset [ghost v] effect to (0)\ngo to [front v] layer\nrepeat (12)\n    next costume\nend\n\nwhen this sprite clicked\nstart sound [Connect v]\nif <[13] = (costume [number v])> then\n    create clone of (_myself_ v)\n    wait (1.25) seconds\n    broadcast (start v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nswitch backdrop to (背景1 v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [start v]\nif <[13] = (costume [number v])> then\n    switch costume to (コスチューム14 v)\nend\n\nwhen this sprite clicked\nif <[14] = (costume [number v])> then\n    create clone of (_myself_ v)\n    broadcast (loading v)\n    wait (1.5) seconds\n    hide\n    broadcast (now loading v)\n    wait (1.5) seconds\n    broadcast (game start v)\nend\n\n@スプライト9\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nstart sound [Coin v]\nbroadcast (左 v)\nchange [難易度 v] by (-1)\nif <(難易度) = [1]> then\n    hide\nend\n\nwhen I receive [右 v]\nif <(難易度) = [2]> then\n    show\nend\n\nwhen I receive [loading v]\nhide\n\n@スプライト10\n\nwhen I receive [game start v]\nreset timer\nshow\nswitch costume to (コスチューム1 v)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide variable [☁ lv.1 world record v]\nhide variable [☁ lv.2 world record v]\nhide variable [☁ lv.3 world record v]\nhide variable [☁ lv.4 world record v]\nhide variable [☁ lv.5 world record v]\nhide variable [☁ lv.6 world record v]\nhide\n\nwhen I receive [life v]\nnext costume\n\nwhen I receive [game over v]\nshow variable [☁ lv.1 world record v]\nshow variable [☁ lv.2 world record v]\nshow variable [☁ lv.3 world record v]\nshow variable [☁ lv.4 world record v]\nshow variable [☁ lv.5 world record v]\nshow variable [☁ lv.6 world record v]\nshow variable [time v]\nset [time v] to (timer)\nif <(難易度) = [1]> then\n    if <(☁ Lv.1 World Record) < (time)> then\n        set [☁ lv.1 world record v] to (time)\n    end\nend\nif <(難易度) = [2]> then\n    if <(☁ Lv.2 World Record) < (time)> then\n        set [☁ lv.2 world record v] to (time)\n    end\nend\nif <(難易度) = [3]> then\n    if <(☁ Lv.3 World Record) < (time)> then\n        set [☁ lv.3 world record v] to (time)\n    end\nend\nif <(難易度) = [4]> then\n    if <(☁ Lv.4 World Record) < (time)> then\n        set [☁ lv.4 world record v] to (time)\n    end\nend\nif <(難易度) = [5]> then\n    if <(☁ Lv.5 World Record) < (time)> then\n        set [☁ lv.5 world record v] to (time)\n    end\nend\nif <(難易度) = [6]> then\n    if <(☁ Lv.6 World Record) < (time)> then\n        set [☁ lv.6 world record v] to (time)\n    end\nend\nswitch costume to (コスチューム6 v)\nstart sound [Lose v]\nswitch costume to (コスチューム6 v)\nstart sound [Lose v]\n\n@スプライト11\n\nwhen I receive [game start v]\nif <(難易度) = [6]> then\n    delete all of [攻撃 v]\n    add [ワームホール] to [攻撃 v]\n    add [三分裂] to [攻撃 v]\n    add [柱] to [攻撃 v]\n    add [危険] to [攻撃 v]\n    add [大回転] to [攻撃 v]\n    wait (5) seconds\n    forever\n        set [攻撃 v] to (pick random (1) to (5))\n        if <(item (攻撃) of [攻撃 v]) = [ワームホール]> then\n            broadcast (warmhole v) and wait\n            wait (3) seconds\n            delete all of [攻撃 v]\n            add [三分裂] to [攻撃 v]\n            add [柱] to [攻撃 v]\n            add [危険] to [攻撃 v]\n            add [大回転] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [三分裂]> then\n            repeat (4)\n                set [clone v] to [15]\n                create clone of (_myself_ v)\n                wait (7) seconds\n            end\n            wait (6) seconds\n            delete all of [攻撃 v]\n            add [ワームホール] to [攻撃 v]\n            add [柱] to [攻撃 v]\n            add [危険] to [攻撃 v]\n            add [大回転] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [柱]> then\n            set [clone v] to [13]\n            repeat (15)\n                create clone of (_myself_ v)\n                wait (2.5) seconds\n            end\n            wait (3) seconds\n            delete all of [攻撃 v]\n            add [ワームホール] to [攻撃 v]\n            add [三分裂] to [攻撃 v]\n            add [危険] to [攻撃 v]\n            add [大回転] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [危険]> then\n            set [clone v] to [12]\n            repeat (15)\n                broadcast (危険 v) and wait\n            end\n            wait (3) seconds\n            delete all of [攻撃 v]\n            add [ワームホール] to [攻撃 v]\n            add [三分裂] to [攻撃 v]\n            add [柱] to [攻撃 v]\n            add [大回転] to [攻撃 v]\n        end\n        if <(item (攻撃) of [攻撃 v]) = [大回転]> then\n            set [clone v] to [14]\n            create clone of (_myself_ v)\n            wait (20) seconds\n            delete all of [攻撃 v]\n            add [ワームホール] to [攻撃 v]\n            add [三分裂] to [攻撃 v]\n            add [柱] to [攻撃 v]\n            add [地面] to [攻撃 v]\n        end\n    end\nend\n\ndefine Clone (clone) (回数) (秒) (秒2)\nrepeat (回数)\n    set [clone v] to (clone)\n    create clone of (_myself_ v)\n    if <(clone) = (pick random (1) to (3))> then\n        wait (pick random (秒) to (秒2)) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\nwhen I receive [warp v]\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    show\n    switch costume to (コスチューム1 v)\n    go to (スプライト8 v)\n    point in direction (90)\n    set size to (100) %\n    repeat until <[225] < (x position)>\n        move (15) steps\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [15]> then\n    show\n    switch costume to (コスチューム2 v)\n    go to x: (274) y: (pick random (100) to (-100))\n    repeat (3)\n        change x by (-5)\n        turn right (-10) degrees\n    end\n    repeat (50)\n        change x by (0)\n        turn right (-10) degrees\n    end\n    repeat (100)\n        change x by (-5)\n        turn right (-10) degrees\n    end\n    set [y v] to (y position)\n    set [clone v] to [4]\n    repeat (4)\n        change [clone v] by (1)\n        create clone of (_myself_ v)\n        turn right (-10) degrees\n    end\n    repeat (60)\n        turn right (-10) degrees\n    end\n    repeat (3)\n        change [clone v] by (1)\n        create clone of (_myself_ v)\n        turn right (-10) degrees\n    end\n    repeat (60)\n        turn right (-10) degrees\n    end\n    set [clone v] to [5]\n    repeat (2)\n        change [clone v] by (1)\n        create clone of (_myself_ v)\n        turn right (-10) degrees\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [5]> then\n    三分裂 [6]\nend\nif <(clone) = [6]> then\n    三分裂 [2]\nend\nif <(clone) = [7]> then\n    三分裂 [-2]\nend\nif <(clone) = [8]> then\n    三分裂 [-6]\nend\nif <(clone) = [9]> then\n    三分裂 [4]\nend\nif <(clone) = [10]> then\n    三分裂 [0]\nend\nif <(clone) = [11]> then\n    三分裂 [-4]\nend\n\ndefine 三分裂 (ｙ)\nswitch costume to (コスチューム3 v)\nshow\ngo to x: (-241) y: (Y)\nrepeat until <<[190] < (y position)> or <<(y position) < [-190]> or <[250] < (x position)>>>\n    turn right (-10) degrees\n    change x by (5)\n    change y by (ｙ)\nend\ndelete this clone\n\nwhen I start as a clone\nif <(clone) = [12]> then\n    point in direction (-90)\n    show\n    switch costume to (コスチューム4 v)\n    go to x: (柱) y: (339)\n    repeat (14)\n        change y by (-25)\n    end\n    repeat (14)\n        change y by (25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [13]> then\n    switch costume to (コスチューム1 v)\n    set size to (100) %\n    show\n    point in direction (-90)\n    switch costume to (コスチューム6 v)\n    go to x: (247) y: (pick random (100) to (250))\n    repeat (100)\n        change x by (-5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [14]> then\n    switch costume to (コスチューム1 v)\n    set size to (100) %\n    show\n    point in direction (90)\n    switch costume to (コスチューム5 v)\n    go to x: (0) y: (-445)\n    repeat (460)\n        change y by (2)\n        turn right (1.25) degrees\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [2]> then\n    show\n    switch costume to (コスチューム1 v)\n    go to (スプライト8 v)\n    point in direction (180)\n    set size to (80) %\n    repeat until <(y position) < [-155]>\n        move (15) steps\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [3]> then\n    show\n    switch costume to (コスチューム1 v)\n    go to (スプライト8 v)\n    point in direction (0)\n    set size to (80) %\n    repeat until <[165] < (y position)>\n        move (15) steps\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone) = [4]> then\n    show\n    switch costume to (コスチューム1 v)\n    go to (スプライト8 v)\n    point in direction (-90)\n    set size to (80) %\n    repeat until <(x position) < [-225]>\n        move (15) steps\n    end\n    delete this clone\nend\n\n@スプライト12\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nif <(難易度) = [6]> then\n    show\n    go to x: (0) y: (0)\n    forever\n        go to [back v] layer\n        change x by (5)\n        wait (0.01) seconds\n        change y by (5)\n        wait (0.01) seconds\n        change x by (-5)\n        wait (0.01) seconds\n        change y by (-5)\n        wait (0.01) seconds\n    end\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@スプライト7\n\nwhen I receive [start v]\nset [難易度 v] to [1]\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (35)\nshow\nset size to (80) %\nset [大きさ v] to [0]\nforever\n    change [大きさ v] by (6)\n    change size by ([sin v] of (大きさ) )\nend\n\nwhen I receive [右 v]\nnext costume\n\nwhen I receive [左 v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\nhide\n\nwhen I receive [now loading v]\nhide\nswitch backdrop to (背景4 v)\n\n@スプライト8\n\nwhen I receive [sun v]\nswitch costume to (コスチューム1 v)\ngo to x: (-215) y: (228)\nset size to (130) %\npoint in direction (90)\nshow\ngo to [back v] layer\nrepeat (20)\n    change y by (-20)\nend\nrepeat (3)\n    set [針　変数 v] to (pick random (1) to (6))\n    repeat (4)\n        repeat (5)\n            change size by (-6)\n        end\n        repeat (5)\n            change size by (6)\n        end\n    end\n    repeat (15)\n        change size by (-2)\n    end\n    repeat (10)\n        set size to (size) %\n    end\n    set [針 v] to [0]\n    repeat (5)\n        change [針 v] by (1)\n        create clone of (スプライト2 v)\n        change size by (6)\n    end\n    repeat (35)\n        set size to (size) %\n    end\nend\nrepeat (20)\n    change y by (20)\nend\nhide\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\nwhen I receive [warmhole v]\nset [ghost v] effect to (100)\nswitch costume to (コスチューム2 v)\ngo to x: (0) y: (0)\nshow\nset size to (50) %\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to [back v] layer\nrepeat (6)\n    repeat (pick random (1) to (4))\n        point in direction (90)\n        repeat (pick random (20) to (60))\n            move (10) steps\n            if on edge, bounce\n        end\n        repeat (pick random (5) to (30))\n            turn right (5) degrees\n            if on edge, bounce\n            move (10) steps\n        end\n    end\n    repeat (20)\n        change size by (5)\n    end\n    broadcast (warp v)\n    repeat (20)\n        change size by (-5)\n    end\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [危険 v]\nset [ghost v] effect to (0)\npoint in direction (90)\ngo to x: (pick random (-200) to (200)) y: (0)\nswitch costume to (コスチューム3 v)\ngo to [back v] layer\nshow\nset size to (100) %\nrepeat (4)\n    show\n    wait (0.1) seconds\n    hide\n    wait (0.1) seconds\nend\nset [柱 v] to (x position)\ncreate clone of (スプライト11 v)\n\n@地面\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nswitch costume to (コスチューム6 v)\nset [ghost v] effect to (0)\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\nif <(難易度) = [6]> then\n    hide\nend\nif <(難易度) = [5]> then\n    point in direction (-90)\nelse\n    point in direction (90)\nend\nforever\n    switch costume to (コスチューム6 v)\nend\n\nwhen I start as a clone\nif <(バネ) = [2]> then\n    set [ghost v] effect to (0)\n    switch costume to (コスチューム1 v)\n    set [上 v] to [0]\n    go to x: (0) y: (210)\n    repeat (14)\n        change y by (-15)\n    end\n    set [上 v] to [1]\nend\n\nwhen I receive [地面 v]\nif <(costume [number v]) = [2]> then\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(バネ) = [9]> then\n    set [ghost v] effect to (0)\n    switch costume to (コスチューム2 v)\n    set [上 v] to [0]\n    go to x: (490) y: (0)\n    repeat (10)\n        change x by (-49)\n    end\n    set [上 v] to [1]\nend\n\nwhen I receive [地面 v]\nif <(costume [number v]) = [3]> then\n    repeat (10)\n        change x by (-49)\n    end\n    delete this clone\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@PLATFORMER\n\nwhen flag clicked\nset [上 v] to [1]\nhide\n\ndefine 動き\nif <(難易度) = [5]> then\n    point in direction (-90)\n    switch costume to (通常 v)\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [x v] by (0.8)\n        switch costume to (通常3 v)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-0.8)\n        switch costume to (通常8 v)\n    end\n    set [x v] to ((x) * (0.92))\n    change x by (x)\n    if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n        change y by (-1)\n        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            change y by (-1)\n            if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                change y by (-1)\n                if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                    change y by (-1)\n                    if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                        change y by (-1)\n                        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                            change y by (-1)\n                            if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                                change x by ((0) - (x))\n                                change y by (5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (1)\n    change y by (y)\n    if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (2)\n    if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n        if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>> then\n            if <(上) = [1]> then\n                set [y v] to [-18]\n            end\n        end\n        change y by (-1)\n    end\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        switch costume to (通常5 v)\n    end\n    if <<touching (バネ v)?> or <<touching (バネ2 v)?> or <touching (ヘルメット v)?>>> then\n        if <(上) = [1]> then\n            set [y v] to [-23]\n        end\n    end\n    if <[-160] > (y position)> then\n        初期化\n    end\nelse\n    if <(難易度) = [6]> then\n        point in direction (90)\n        switch costume to (通常 v)\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n            change [x v] by (0.25)\n            switch costume to (通常8 v)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            change [x v] by (-0.25)\n            switch costume to (通常3 v)\n        end\n        set [x v] to ((x) * (0.92))\n        change x by (x)\n        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            change y by (1)\n            if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                change y by (1)\n                if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                    change y by (1)\n                    if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                        change y by (1)\n                        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                            change y by (1)\n                            if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                                change y by (1)\n                                if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                                    change x by ((0) - (x))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y v] by (0.1)\n        change y by (y)\n        if <<touching (地面 v)?> or <<touching (_edge_ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            change y by ((0) - (y))\n            set [y v] to [0]\n        end\n        change y by (0.5)\n        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                if <(上) = [1]> then\n                    set [y v] to [3]\n                end\n            end\n            change y by (0.5)\n        end\n        if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>> then\n            switch costume to (通常5 v)\n            set [y v] to [-3]\n        end\n    else\n        point in direction (90)\n        switch costume to (通常 v)\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n            change [x v] by (0.8)\n            switch costume to (通常8 v)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            change [x v] by (-0.8)\n            switch costume to (通常3 v)\n        end\n        set [x v] to ((x) * (0.92))\n        change x by (x)\n        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            change y by (1)\n            if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                change y by (1)\n                if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                    change y by (1)\n                    if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                        change y by (1)\n                        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                            change y by (1)\n                            if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                                change y by (1)\n                                if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n                                    change x by ((0) - (x))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y v] by (-1)\n        change y by (y)\n        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            change y by ((0) - (y))\n            set [y v] to [0]\n        end\n        change y by (-2)\n        if <<touching (地面 v)?> or <<touching (地面２ v)?> or <<touching (スイッチ v)?> and <<[11] = (PLATFORMER: ステージ)> or <[22] = (PLATFORMER: ステージ)>>>>> then\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                if <(上) = [1]> then\n                    set [y v] to [18]\n                end\n            end\n            change y by (1)\n        end\n        if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>> then\n            switch costume to (通常5 v)\n        end\n        if <<touching (バネ v)?> or <<touching (バネ2 v)?> or <touching (ヘルメット v)?>>> then\n            if <(上) = [1]> then\n                set [y v] to [23]\n            end\n        end\n        if <[-160] > (y position)> then\n            初期化\n        end\n    end\nend\n\nwhen I receive [game start v]\ngo to x: (-210) y: (13)\nset [ghost v] effect to (0)\nset rotation style [all around v]\nset size to (50) %\nswitch costume to (通常 v)\npoint in direction (90)\nshow\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine 初期化\nset [y v] to [0]\nswitch costume to (通常4 v)\nset [x v] to [0]\nset rotation style [left-right v]\nrepeat (10)\n    switch costume to (通常4 v)\n    change [ghost v] effect by (10)\nend\ngo to x: (復活地　ｘ) y: (復活地　ｙ)\nswitch costume to (通常 v)\nrepeat (10)\n    switch costume to (通常 v)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [game start v]\nset [体力 v] to [5]\nset [無敵 v] to [0]\nforever\n    if <(無敵) = [0]> then\n        if <<touching (スプライト11 v)?> or <touching (スプライト1 v)?>> then\n            change [体力 v] by (-1)\n            if <(体力) = [0]> then\n                broadcast (game over v)\n            else\n                broadcast (life v)\n                set [無敵 v] to [1]\n                repeat (4)\n                    repeat (10)\n                        change [ghost v] effect by (5)\n                    end\n                    repeat (10)\n                        change [ghost v] effect by (-5)\n                    end\n                end\n                set [無敵 v] to [0]\n            end\n        end\n        if <touching (スプライト2 v)?> then\n            if <<touching color (#ff0000)?> or <touching color (#b30000)?>> then\n                change [体力 v] by (-1)\n                if <(体力) = [0]> then\n                    broadcast (game over v)\n                else\n                    broadcast (life v)\n                    set [無敵 v] to [1]\n                    repeat (4)\n                        repeat (10)\n                            change [ghost v] effect by (5)\n                        end\n                        repeat (10)\n                            change [ghost v] effect by (-5)\n                        end\n                    end\n                    set [無敵 v] to [0]\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [game over v]\nswitch costume to (通常4 v)\nstop [other scripts in sprite v]\n\n@スプライト13\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nstart sound [Coin v]\nbroadcast (右 v)\nchange [難易度 v] by (1)\nif <(難易度) = [6]> then\n    hide\nend\n\nwhen I receive [左 v]\nif <(難易度) = [5]> then\n    show\nend\n\nwhen I receive [loading v]\nhide\n\n