platformer 2020
@Stage\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (背景1 v)\nbroadcast (初期化 v) and wait\nbroadcast (スタート v)\n\n@　　　\n\n@波\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (40)\nforever\n    change x by (([sin v] of (sin) ) * (-1))\nend\n\nwhen I receive [スタート v]\nset [sin v] to [0]\ngo to [back v] layer\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\ngo to x: (0) y: (-20)\nforever\n    change x by (([cos v] of (sin) ) * (1))\n    change [sin v] by (1)\nend\n\n@ステージ\n\nwhen I receive [スタート v]\nswitch costume to (コスチューム4 v)\ngo to [back v] layer\ngo [forward v] (3) layers\n\nwhen I receive [ステージ v]\nif <(costume [number v]) = [14]> then\n    broadcast (END v)\nelse\n    wait (2.4) seconds\n    next costume\nend\n\n@サウンド\n\nwhen I receive [スタート v]\nshow\nset volume to (100) %\nforever\n    if <(mute) = [1]> then\n        set volume to (0) %\n    else\n        set volume to (100) %\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    set [曲 v] to (pick random (1) to (3))\n    play sound (曲) until done\nend\n\nwhen I receive [スタート v]\nshow\nforever\n    if <(曲) = [1]> then\n        wait (0.45) seconds\n        set size to (150) %\n    else\n        if <(曲) = [2]> then\n            wait (pick random (1) to (0.5)) seconds\n            set size to (150) %\n        else\n            wait (0.4) seconds\n            set size to (150) %\n        end\n    end\nend\n\nwhen flag clicked\nset [mute v] to [0]\nhide\n\nwhen I receive [スタート v]\ngo to [front v] layer\nshow\nforever\n    change [sin v] by (1)\n    if <(mute) = [1]> then\n        switch costume to (出さない v)\n    else\n        switch costume to (出す v)\n    end\n    set [ghost v] effect to (70)\n    if <(status) = [1]> then\n        go to x: (-220) y: (160)\n    else\n        go to x: (-220) y: (140)\n    end\n    if <touching (mouse-pointer v)?> then\n        change size by (((size) - (124)) / (-5))\n        set [ghost v] effect to (20)\n        point in direction ((90) + ((16) * ([sin v] of ((sin) * (10)) )))\n        if <mouse down?> then\n            if <(mute) = [0]> then\n                set [mute v] to [1]\n            else\n                set [mute v] to [0]\n            end\n        end\n        if <(mute) = [1]> then\n            switch costume to (出さない v)\n        else\n            switch costume to (出す v)\n        end\n        wait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\n    else\n        turn right (((direction) - (90)) / (-5)) degrees\n        change size by (((size) - (100)) / (-5))\n    end\nend\n\nwhen [timer v] > (0)\ngo to [back v] layer\n\nwhen I receive [end v]\nset [mute v] to [1]\nstop all sounds\n\nwhen I receive [end v]\n\n@ED\n\nwhen I start as a clone\nif <(番号) = [1]> then\n    clear graphic effects\n    point in direction (90)\n    switch costume to (pick random (1) to (3))\n    set size to (pick random (50) to (150)) %\n    set [brightness v] effect to (pick random (-25) to (25))\n    go to [front v] layer\n    show\n    set [s v] to (pick random (1) to (2))\n    if <(S) = [1]> then\n        go to x: (-240) y: (-1000)\n        set [v v] to (pick random (5) to (10))\n        set [d v] to [5]\n    else\n        if <(S) = [2]> then\n            set [v v] to (pick random (-5) to (-10))\n            go to x: (240) y: (-1000)\n            set [d v] to [-5]\n        end\n    end\n    set [i v] to (pick random (15) to (30))\n    change y by (I)\n    repeat until <(y position) < [-179]>\n        turn right (D) degrees\n        change [ghost v] effect by (2)\n        change y by (I)\n        change [i v] by (-1)\n        change x by (V)\n        set [v v] to ((V) * (.995))\n    end\n    delete this clone\nelse\n    if <(番号) = [2]> then\n        go to x: (0) y: (1000)\n        switch costume to (幕 v)\n        set size to (100) %\n        point in direction (90)\n        show\n        repeat (40)\n            change y by (((0) - (y position)) / (4))\n        end\n        wait until <(STOP) = [1]>\n        delete this clone\n    else\n        if <(番号) = [3]> then\n            go to x: (0) y: (-1000)\n            set size to (100) %\n            point in direction (90)\n            show\n            set size to (50) %\n            repeat (20)\n                change y by (((0) - (y position)) / (4))\n            end\n            change y by (1)\n            repeat until <touching (_edge_ v)?>\n                change y by ((y position) / (2))\n            end\n            if <(costume [number v]) = [10]> then\n                set [番号 v] to [4]\n                create clone of (_myself_ v)\n            end\n            delete this clone\n        else\n            if <(番号) = [4]> then\n                set [stop v] to [1]\n                delete this clone\n            else\n                if <(番号) = [5]> then\n                    hide\n                    wait until <(STOP) = [1]>\n                    go to x: (0) y: (-10)\n                    set size to (100) %\n                    point in direction (90)\n                    switch costume to (url v)\n                    show\n                    forever\n                        if <touching (mouse-pointer v)?> then\n                            set [cc v] to (((cc) * (0.75)) + (((60) - (y position)) / (5)))\n                            change y by (cc)\n                            go to [front v] layer\n                            hide list [自分のscratchアカウント v]\n                        else\n                            change y by (((0) - (y position)) / (4))\n                            show list [自分のscratchアカウント v]\n                            go to [front v] layer\n                        end\n                    end\n                else\n                    if <(番号) = [6]> then\n                        hide\n                        wait until <(STOP) = [1]>\n                        go to x: (0) y: (-200)\n                        set size to (100) %\n                        point in direction (90)\n                        switch costume to (slogo2 v)\n                        show\n                        forever\n                            change size by (((100) - (size)) / (7))\n                            change [ghost v] effect by (-10)\n                            point in direction (90)\n                            turn right (([cos v] of (((timer) - (2)) * (250)) ) * (25)) degrees\n                            go to x: (0) y: (0)\n                            change y by (([cos v] of (((timer) - (1)) * (250)) ) * (20))\n                            go to [front v] layer\n                        end\n                    else\n                        \n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nshow list [自分のscratchアカウント v]\nset [stop v] to [0]\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nforever\n    play sound [Raven & Kreyn - Bubble \[NCS Release\] v] until done\nend\n\nwhen [timer v] > (0)\nset [番号 v] to [6]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [2]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [5]\ncreate clone of (_myself_ v)\nwait (1.3) seconds\nset [番号 v] to [3]\nswitch costume to (3 v)\nrepeat (4)\n    create clone of (_myself_ v)\n    wait (0.45) seconds\n    next costume\nend\n\nwhen [timer v] > (0)\nwait until <(STOP) = [1]>\nset [番号 v] to [1]\nforever\n    create clone of (_myself_ v)\nend\n\nwait (2) seconds\n\nswitch costume to (3 v)\nrepeat (3)\n\ngo to x: (0) y: (0)\n\nset [stop v] to [1]\nrepeat (30)\n    change [ghost v] effect by (3.4)\n    go to [front v] layer\nend\ndelete this clone\n\nset [ghost v] effect to (0)\nset [brightness v] effect to (100)\n\ngo to x: (0) y: (0)\n\n@フラッシュ\n\nwhen [timer v] > (0)\ngo to [front v] layer\ngo [backward v] (2) layers\nwait until <(STOP) = [1]>\nset [フラッシュ番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [フラッシュ番号 v] to [2]\ncreate clone of (_myself_ v)\nwait (0) seconds\nforever\n    go [forward v] (1) layers\n    クローン [3.7]\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(フラッシュ番号) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (コスチューム1 v)\n    set size to (100) %\n    point in direction (90)\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (100)\n    show\n    repeat (30)\n        change [ghost v] effect by (3.4)\n        go to [front v] layer\n    end\n    delete this clone\nelse\n    if <(フラッシュ番号) = [2]> then\n        go to x: (0) y: (0)\n        switch costume to (pick random (2) to (6))\n        point in direction (90)\n        set [sin v] to [0]\n        show\n        forever\n            change y by (([cos v] of (sin) ) * (2))\n            change [sin v] by (5)\n        end\n    end\nend\n\ndefine クローン (　)\nwait (　) seconds\nwait (0) seconds\nset [フラッシュ番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [フラッシュ番号 v] to [2]\ncreate clone of (_myself_ v)\n\n@パーティークル\n\ndefine particles\nwait (0) seconds\nrepeat (20)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nclear graphic effects\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (0)\nset [brightness v] effect to (pick random (0) to (20))\nswitch costume to (particle v)\nset size to (pick random (20) to (80)) %\npoint in direction (pick random (180) to (-180))\nset [v v] to (pick random (15) to (20))\nset [i2 v] to [0]\nshow\nrepeat (60)\n    change [ghost v] effect by (3.4)\n    move (v) steps\n    change y by (I2)\n    set [v v] to ((v) * (0.95))\n    if on edge, bounce\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\nwait until <(STOP) = [1]>\nparticles\nforever\n    wait (3.7) seconds\n    particles\nend\n\n@切替\n\nwhen I start as a clone\nset size to (100) %\nshow\nif <(番号) = [1]> then\n    switch costume to (costume2 v)\n    go to x: (-30) y: (30)\n    repeat (25)\n        change x by (((30) - (x position)) * (0.2))\n    end\n    repeat (25)\n        change y by (((-30) - (y position)) * (0.2))\n        change x by (((0) - (x position)) * (0.2))\n    end\n    repeat (20)\n        change y by (((0) - (y position)) * (0.2))\n        change x by (((0) - (x position)) * (0.2))\n    end\n    set [番号 v] to [2]\n    create clone of (_myself_ v)\n    wait (0) seconds\n    set [番号 v] to [3]\n    create clone of (_myself_ v)\n    wait (0) seconds\n    set [番号 v] to [4]\n    create clone of (_myself_ v)\n    wait (0) seconds\n    particles\n    delete this clone\nelse\n    if <(番号) = [2]> then\n        switch costume to (costume4 v)\n        set size to (0) %\n        repeat (10)\n            change size by (((150) - (size)) / (5))\n        end\n        repeat (9)\n            change size by (((150) - (size)) / (5))\n            next costume\n        end\n        delete this clone\n    else\n        if <(番号) = [3]> then\n            switch costume to (コスチューム1 v)\n            point in direction (-90)\n            go to x: (0) y: (0)\n            repeat (30)\n                set [cc v] to (((cc) * (0.6)) + (((90) - (direction)) / (8)))\n                turn right (cc) degrees\n            end\n            set [cc v] to [-1]\n            repeat until <(size) < [20]>\n                change [cc v] by ((cc) / (4))\n                change y by (cc)\n                change size by (cc)\n            end\n            delete this clone\n        else\n            if <(番号) = [4]> then\n                switch costume to (コスチューム2 v)\n                set [brightness v] effect to (100)\n                go to x: (0) y: (0)\n                point in direction (90)\n                repeat (30)\n                    change [ghost v] effect by (3.4)\n                    go to [front v] layer\n                end\n                delete this clone\n            else\n                clear graphic effects\n                go to x: (0) y: (0)\n                go to [front v] layer\n                set [ghost v] effect to (0)\n                set [brightness v] effect to (pick random (0) to (20))\n                switch costume to (particle v)\n                set size to (pick random (20) to (80)) %\n                point in direction (pick random (180) to (-180))\n                set [v v] to (pick random (10) to (15))\n                set [i2 v] to [0]\n                show\n                repeat until <<<(x position) < [-170]> or <[170] < (x position)>> or <<(y position) < [-120]> or <[120] < (y position)>>>\n                    move (v) steps\n                    set [v v] to ((v) * (.95))\n                end\n                repeat (5)\n                    change [ghost v] effect by (20)\n                    move (v) steps\n                    change y by (I2)\n                    set [v v] to ((v) * (0.95))\n                end\n                delete this clone\n            end\n        end\n    end\nend\n\nforever\n\nwhen I receive [ステージ v]\nset size to (100) %\nswitch costume to (costume1 v)\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (0) seconds\nshow\ngo to x: (30) y: (-30)\nrepeat (25)\n    change x by (((-30) - (x position)) * (0.2))\nend\nrepeat (25)\n    change y by (((30) - (y position)) * (0.2))\n    change x by (((0) - (x position)) * (0.2))\nend\nrepeat (20)\n    change y by (((0) - (y position)) * (0.2))\n    change x by (((0) - (x position)) * (0.2))\nend\nstart sound [Intro v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [ステージ v]\n\ndefine particles\nwait (0) seconds\nrepeat (20)\n    set [番号 v] to [5]\n    create clone of (_myself_ v)\nend\n\n@clear\n\nwhen I receive [初期化 v]\nhide\n\nwhen I receive [end v]\nset volume to (100) %\nstart sound (pick random (1) to (3))\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [2]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [3]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nshow\nswitch costume to (  v)\nset size to (150) %\nswitch costume to (clear! v)\nrepeat until <(size) < [101]>\n    go to [front v] layer\n    switch costume to (  v)\n    change size by (((100) - (size)) / (7))\n    switch costume to (clear! v)\n    set x to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\n    set y to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\n    change [ghost v] effect by (-5)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(番号) = [1]> then\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    show\n    switch costume to (光 v)\n    set size to (0) %\n    switch costume to (  v)\n    go [forward v] (1) layers\n    set [ghost v] effect to (60)\n    forever\n        go to [front v] layer\n        switch costume to (  v)\n        change size by (((100) - (size)) / (7))\n        switch costume to (光 v)\n        turn right (5) degrees\n    end\nelse\n    if <(番号) = [2]> then\n        go to x: (0) y: (0)\n        show\n        switch costume to (stop v)\n        set size to (0) %\n        switch costume to (  v)\n        go [forward v] (1) layers\n        set [ghost v] effect to (0)\n        go to [front v] layer\n        repeat (40)\n            switch costume to (  v)\n            change size by (((100) - (size)) / (7))\n            switch costume to (stop v)\n            go to [front v] layer\n        end\n        forever\n            wait (0.45) seconds\n            set [cc v] to [60]\n        end\n    else\n        go to x: (0) y: (0)\n        show\n        switch costume to (    v)\n        set size to (100) %\n        go to [front v] layer\n        set [cc v] to [0]\n        forever\n            change [cc v] by (0.05)\n            change [ghost v] effect by (-10)\n            point in direction (90)\n            turn right (([cos v] of (((cc) - (2)) * (250)) ) * (25)) degrees\n            go to x: (0) y: (0)\n            change y by (([cos v] of (((cc) - (1)) * (250)) ) * (20))\n            go to [front v] layer\n        end\n    end\nend\n\nwhen [timer v] > (0)\nhide\ndelete this clone\n\nwhen I start as a clone\nif <(番号) = [2]> then\n    forever\n        change [cc v] by (((0) - (cc)) / (4))\n        set [pixelate v] effect to (cc)\n    end\nend\n\nwhen I receive [end v]\n\n@操作説明\n\nwhen I receive [スタート v]\nswitch costume to (コスチューム1 \(3\) v)\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\n    wait (0) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\nhide\n\nwhen I start as a clone\npoint in direction (90)\nshow\nif <(costume [number v]) = [1]> then\n    go to x: (-50) y: (1000)\n    set [cc v] to [0]\n    repeat (49)\n        set [cc v] to (((cc) * (0.6)) + (((50) - (y position)) / (4)))\n        change y by (cc)\n    end\n    set [cc v] to [0]\n    set [ghost v] effect to (cc)\n    forever\n        if <key (left arrow v) pressed?> then\n            change [cc v] by (((50) - (cc)) / (4))\n            set [ghost v] effect to (cc)\n        end\n        change [cc v] by (((0) - (cc)) / (4))\n        set [ghost v] effect to (cc)\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        go to x: (0) y: (-1000)\n        set [cc v] to [0]\n        repeat (49)\n            set [cc v] to (((cc) * (0.6)) + (((50) - (y position)) / (4)))\n            change y by (cc)\n        end\n        set [cc v] to [0]\n        set [ghost v] effect to (cc)\n        forever\n            if <key (right arrow v) pressed?> then\n                change [cc v] by (((50) - (cc)) / (4))\n                set [ghost v] effect to (cc)\n            end\n            change [cc v] by (((0) - (cc)) / (4))\n            set [ghost v] effect to (cc)\n        end\n    else\n        go to x: (50) y: (1000)\n        set [cc v] to [0]\n        repeat (49)\n            set [cc v] to (((cc) * (0.6)) + (((50) - (y position)) / (4)))\n            change y by (cc)\n        end\n        set [cc v] to [0]\n        set [ghost v] effect to (cc)\n        forever\n            if <key (up arrow v) pressed?> then\n                change [cc v] by (((50) - (cc)) / (4))\n                set [ghost v] effect to (cc)\n            end\n            change [cc v] by (((0) - (cc)) / (4))\n            set [ghost v] effect to (cc)\n        end\n    end\nend\n\n@宣伝\n\nwhen I receive [初期化 v]\nhide\n\nwhen I receive [スタート v]\nforever\n    go to x: (150) y: (1000)\n    point in direction (-90)\n    hide\n    set size to (0) %\n    set [i v] to [-1]\n    show\n    repeat (40)\n        change y by (((0) - (y position)) / (8))\n        change size by (((100) - (size)) / (8))\n        turn right (((90) - (direction)) / (8)) degrees\n    end\n    wait (1) seconds\n    set y to (-1)\n    repeat until <(size) < [20]>\n        change [i v] by (join [-] (([abs v] of (i) ) / (4)))\n        change size by (i)\n        change y by (i)\n    end\n    go to x: (150) y: (1000)\n    hide\n    wait (pick random (10) to (5)) seconds\nend\n\nwhen [timer v] > (0)\nhide\n\n@敵\n\nwhen I receive [初期化 v]\ngo to x: (204) y: (-92)\nset rotation style [all around v]\nset size to (100) %\nhide\n\nwhen I receive [スタート v]\nwait until <([costume # v] of [ステージ v]) = [14]>\nwait (1) seconds\ngo to x: (204) y: (180)\nshow\nset [重力（相手） v] to [0]\nset [速さ\(相手） v] to [0]\nrepeat until <(ステージ) = [16]>\n    if <([abs v] of (重力（相手）) ) < [3]> then\n        turn right (((90) - (direction)) / (3)) degrees\n    else\n        if <[0] < (速さ\(相手）)> then\n            point in direction ((90) - ((重力（相手）) * (1.5)))\n        end\n        if <(速さ\(相手）) < [0]> then\n            point in direction ((90) + ((重力（相手）) * (1.5)))\n        end\n    end\n    change [重力（相手） v] by (-1)\n    set [どっち？ v] to (pick random (1) to (10))\n    if <((どっち？) mod (2)) = [0]> then\n        switch costume to (1 v)\n        change [速さ\(相手） v] by (1)\n    else\n        switch costume to (2 v)\n        change [速さ\(相手） v] by (-1)\n    end\n    set [速さ\(相手） v] to ((速さ\(相手）) * (0.9))\n    change x by (速さ\(相手）)\n    if <touching color (#84b5ed)?> then\n        change y by (1)\n        if <touching color (#84b5ed)?> then\n            change y by (1)\n            if <touching color (#84b5ed)?> then\n                change y by (1)\n                if <touching color (#84b5ed)?> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <touching color (#84b5ed)?> then\n        change y by (-4)\n        change x by ((速さ\(相手）) * (-1))\n        set [どっち？ v] to (pick random (1) to (12))\n        if <((どっち？) mod (4)) = [0]> then\n            start sound [High Whoosh v]\n            point in direction (90)\n            set [重力（相手） v] to [10]\n            if <([abs v] of (速さ\(相手）) ) = (速さ\(相手）)> then\n                set [速さ\(相手） v] to [-7]\n            else\n                set [速さ\(相手） v] to [7]\n            end\n        else\n            set [速さ\(相手） v] to [0]\n        end\n    end\n    change y by (重力（相手）)\n    if <touching color (#84b5ed)?> then\n        change y by ((0) - (重力（相手）))\n        set [重力（相手） v] to [0]\n    end\n    change y by (-1)\n    set [どっち？ v] to (pick random (1) to (8))\n    if <<((どっち？) mod (4)) = [0]> and <touching color (#84b5ed)?>> then\n        set [重力（相手） v] to [15]\n        start sound [High Whoosh v]\n        set [pitch v] effect to (pick random (10) to (5))\n    end\n    change y by (1)\nend\nhide\n\nwhen [timer v] > (0)\nhide\n\n@ストーン\n\nwhen I receive [スタート v]\nset [ステージ v] to [1]\nset size to (70) %\nshow\nset [速さ v] to [0]\nset [重力 v] to [0]\nset y to (RETRY位置)\nset x to (-200)\nbroadcast (本当スタート v)\n\ndefine ジャンプ\nrepeat (5)\n    create clone of (effect v)\nend\n\nwhen I receive [本当スタート v]\nset y to (RETRY位置)\nset x to (-200)\nrepeat until <[240] < (x position)>\n    if <([abs v] of (重力) ) < [3]> then\n        turn right (((90) - (direction)) / (3)) degrees\n    else\n        if <[0] < (速さ)> then\n            point in direction ((90) - ((重力) * (1.5)))\n        end\n        if <(速さ) < [0]> then\n            point in direction ((90) + ((重力) * (1.5)))\n        end\n    end\n    change [重力 v] by (-1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (1 v)\n        change [速さ v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (2 v)\n        change [速さ v] by (-1)\n    end\n    set [速さ v] to ((速さ) * (0.9))\n    change x by (速さ)\n    if <touching color (#84b5ed)?> then\n        change y by (1)\n        if <touching color (#84b5ed)?> then\n            change y by (1)\n            if <touching color (#84b5ed)?> then\n                change y by (1)\n                if <touching color (#84b5ed)?> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <touching color (#84b5ed)?> then\n        change y by (-4)\n        change x by ((速さ) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [High Whoosh v]\n            point in direction (90)\n            set [重力 v] to [10]\n            if <([abs v] of (速さ) ) = (速さ)> then\n                set [速さ v] to [-7]\n            else\n                set [速さ v] to [7]\n            end\n        else\n            set [速さ v] to [0]\n        end\n    end\n    change y by (重力)\n    if <touching color (#84b5ed)?> then\n        change y by ((0) - (重力))\n        set [重力 v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching color (#84b5ed)?>> then\n        broadcast (クローン v)\n        set [重力 v] to [15]\n        start sound [High Whoosh v]\n        set [pitch v] effect to (pick random (10) to (5))\n    end\n    change y by (1)\n    if <<<<key (space v) pressed?> or <touching (波 v)?>> or <touching color (#ccfbff)?>> or <touching (敵 v)?>> then\n        start sound [crashed oof v]\n        change y by (10)\n        set [ジャンプ制御 v] to [10]\n        repeat until <touching (_edge_ v)?>\n            turn right (10) degrees\n            change [ジャンプ制御 v] by (-1)\n            change y by (ジャンプ制御)\n        end\n        set [速さ v] to [0]\n        set [重力 v] to [0]\n        set y to (RETRY位置)\n        set x to (-200)\n    end\nend\nchange [ステージ v] by (1)\nset y to (RETRY位置)\nset x to (-200)\nbroadcast (ステージ v) and wait\nbroadcast (本当スタート v)\n\nwhen I receive [クローン v]\nジャンプ\n\nwhen I receive [end v]\nhide\nstop [this script v]\n\n@看板\n\nwhen I receive [初期化 v]\ndelete all of [説明 v]\nadd [さあ..行こう!!] to [説明 v]\nadd [山を上り..] to [説明 v]\nadd [飛び越えよう!] to [説明 v]\nadd [ジャンプ！！] to [説明 v]\nadd [高さを調節して..] to [説明 v]\nadd [気をつけながらジャンプ！] to [説明 v]\nadd [落ちないように..] to [説明 v]\nadd [ジャンプ！2] to [説明 v]\nadd [登ってジャンプ！！] to [説明 v]\nadd [上がったり..下がったり..] to [説明 v]\nadd [高くジャンプ！！] to [説明 v]\nadd [氷を使ってジャンプ！] to [説明 v]\nadd [もう少しだ！] to [説明 v]\nadd [最後の敵だ！ファイト！] to [説明 v]\n\nwhen I receive [スタート v]\ngo to [back v] layer\nset [a v] to [0]\ngo to x: (-200) y: (1000)\nrepeat until <touching color (#84b5ed)?>\n    change [a v] by (-1)\n    change y by (a)\nend\nstart sound [Hit2 v]\nset [a v] to [10]\nrepeat (19)\n    change [a v] by (-1)\n    change y by (a)\nend\nset [a v] to [5]\nstart sound [Hit2 v]\nrepeat (3)\n    change [a v] by (-1)\n    change y by (a)\nend\nstart sound [Hit2 v]\nset y to (-89)\nforever\n    if <touching (ストーン v)?> then\n        say (item (ステージ) of [説明 v])\n        change size by (((80) - (size)) / (4))\n    else\n        say []\n        change size by (((70) - (size)) / (4))\n    end\nend\n\n@effect\n\nwhen I start as a clone\nswitch costume to (コスチューム1 v)\nset [c v] to (pick random (5) to (10))\nset [cc v] to (pick random (-5) to (5))\nclear graphic effects\nshow\nset size to (cc) %\nset y to (([y position v] of [ストーン v]) - (30))\nset x to ([x position v] of [ストーン v])\ngo to [front v] layer\nrepeat until <touching (_edge_ v)?>\n    set [ghost v] effect to (0)\n    change size by (c)\n    change x by (cc)\n    change y by (c)\n    if <(cc) < [0.5]> then\n        change [cc v] by (-0.1)\n    end\n    if <(cc) < [-0.5]> then\n        change [cc v] by (0.1)\n    end\n    if <[-85] < (y position)> then\n        change [ghost v] effect by (2)\n    end\n    change [c v] by (-1)\nend\ndelete this clone\n\nwhen I receive [初期化 v]\nhide\n\n@雪\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\ngo to x: (pick random (240) to (-240)) y: (160)\nset size to (pick random (100) to (150)) %\nswitch costume to (コスチューム2 v)\nset [c v] to [0]\nset [cc v] to (pick random (1) to (5))\ngo to [front v] layer\nrepeat until <touching (_edge_ v)?>\n    change y by (join [-] (cc))\n    change x by ([cos v] of (c) )\n    change [c v] by (4)\n    if <(y position) < [-150]> then\n        change [ghost v] effect by (5)\n    end\n    if <[150] < (y position)> then\n        change [ghost v] effect by (-5)\n    end\nend\ndelete this clone\n\nwhen I receive [スタート v]\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nrepeat (10)\n\nwhen I receive [初期化 v]\nhide\n\n@太陽\n\nwhen I receive [スタート v]\nset size to (120) %\ngo to x: (211) y: (141)\nshow\ngo [backward v] (3) layers\nset [作業 v] to [5]\nforever\n    change size by ([sin v] of (作業) )\n    change [作業 v] by (7)\nend\n\nset size to (120) %\n\ngo to [back v] layer\n\nwhen I receive [初期化 v]\nhide\n\n@samune\n\nwhen flag clicked\nhide\n\n
~~platformer 2020~~\nルール説明プログラム↓\nhttps://scratch.mit.edu/projects/459253738/\n\nロード遅くても我慢してください((怒\n