頭脳Platformer

Instructions: 矢印キー、もしくはタップで操作\n頭を使ってガンバ！

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nforever\n    play sound [ Masked Heroes v] until done\nend\n\nwhen I receive [終わり v]\nswitch backdrop to (背景2 v)\n\n@player\n\nwhen flag clicked\nshow\nswitch costume to (sprite1 v)\ngo to x: (-200) y: (10)\npoint in direction (90)\nset size to (80) %\nforever\n    reset timer\n    if <(変数) = [9999]> then\n        show\n        change [y v] by (-1)\n        if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> then\n            change [x v] by (0.77)\n            create clone of (_myself_ v)\n        end\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [0]> and <mouse down?>>>> then\n            change [x v] by (-0.77)\n            create clone of (_myself_ v)\n        end\n        set [x v] to ((x) * (.88))\n        change x by (x)\n        if <touching (ステージ v)?> then\n            change y by (1)\n            if <touching (ステージ v)?> then\n                change y by (1)\n                if <touching (ステージ v)?> then\n                    change y by (1)\n                    if <touching (ステージ v)?> then\n                        change y by (1)\n                        if <touching (ステージ v)?> then\n                            change y by (1)\n                            if <touching (ステージ v)?> then\n                                change y by (1)\n                                if <touching (ステージ v)?> then\n                                    change y by (-6)\n                                    change x by ((x) * (-1))\n                                    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> then\n                                        if <(x) > [0]> then\n                                            set [x v] to [-10]\n                                        else\n                                            set [x v] to [10]\n                                        end\n                                        set [y v] to [12]\n                                    else\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (y)\n        if <touching (ステージ v)?> then\n            change y by ((0) - (y))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> and <touching (ステージ v)?>> then\n            start sound [10 v]\n            set [y v] to [12]\n        end\n        change y by (1)\n        if <(x position) > [230]> then\n            broadcast (NEXT v)\n            go to x: (-200) y: (-20)\n        end\n        if <<[-178] > (y position)> or <<<touching (障害物 v)?> and <not <([costume # v] of [ステージ v]) = [2]>>> or <touching color (#d84c52)?>>> then\n            to by contenew\n        end\n        if <touching (あお v)?> then\n            set [y v] to [20]\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (sprite2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-7)\nend\ndelete this clone\n\ndefine to by contenew\ngo to [front v] layer\nswitch costume to (sprite3 v)\nset [変数 v] to [0]\npoint in direction (90)\nset rotation style [all around v]\nset [出久 v] to (pick random (15) to (18))\nstart sound [crashed oof 2 v]\nrepeat until <[-180] > (y position)>\n    show\n    go to [front v] layer\n    turn right (出久) degrees\n    change y by (出久)\n    change [出久 v] by (-1)\nend\nhide\nswitch costume to (sprite1 v)\nwait (0.5) seconds\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-20)\npoint in direction (90)\nset [変数 v] to [9999]\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [終わり v]\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nmove (10) steps\n\nwhen I receive [最後の v]\nhide\nstop [other scripts in sprite v]\n\nforever\n\n@ステージ\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-20)\nswitch costume to (1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\n\n@NEXT\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [変数 v] to [9999]\n\nwhen I receive [next v]\ngo to [front v] layer\nshow\nset [変数 v] to [0]\ngo to x: (0) y: (180)\nstart sound [Finger Snap v]\nrepeat (10)\n    change y by ((-1) - ((y position) / (3)))\nend\nwait (0.5) seconds\nrepeat until <(y position) > [179]>\n    change y by ((y position) / (3))\nend\nhide\nset [変数 v] to [9999]\n\n@障害物\n\nwhen flag clicked\nshow\npoint in direction (90)\ngo to x: (0) y: (-20)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nforever\n    go to [back v] layer\n    switch costume to ([costume # v] of [ステージ v])\nend\n\nwhen flag clicked\nwait until <([costume # v] of [ステージ v]) = [5]>\ngo to x: (0) y: (-80)\nset size to (50) %\nrepeat until <not <([costume # v] of [ステージ v]) = [5]>>\n    repeat (10)\n        turn right (3) degrees\n    end\n    repeat (10)\n        turn left (3) degrees\n    end\nend\nset size to (100) %\ngo to x: (0) y: (-20)\n\nwhen [timer v] > (0)\nhide\n\n@サムネ\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen I receive [終わり v]\nhide\n\nwhen [timer v] > (0)\nhide\n\n@ターボ対策\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\nforever\n    if <(やったなぁ) > [50]> then\n        broadcast (終わり v)\n    end\nend\n\nwhen I receive [終わり v]\nshow\nchange [☁ 変数 v] by (1)\nswitch costume to (コスチューム2 v)\nwait (0.01) seconds\nstop [all v]\n\nwhen flag clicked\nforever\n    set [やったなぁ v] to [0]\n    wait (0.001) seconds\nend\n\nwhen flag clicked\nset [やったなぁ v] to [0]\nforever\n    change [やったなぁ v] by (10)\nend\n\n@チラつく\n\nwhen flag clicked\nhide\nforever\n    set size to (100) %\n    create clone of (_myself_ v)\n    wait (pick random (0.02) to (0.1)) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\ngo to x: (pick random (210) to (-210)) y: (-180)\nset size to (pick random (0) to (60)) %\nset [color v] effect to (pick random (0) to (100))\nshow\nrepeat (10)\n    change y by ((0) - ((y position) / (4)))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@鍵\n\nwhen flag clicked\nset [鍵 v] to [0]\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nwait () seconds\nif <([costume # v] of [ステージ v]) = [8]> then\n    show\n    forever\n        if <touching (player v)?> then\n            glide (2) secs to x: (0) y: (-150)\n            repeat (10)\n                change [brightness v] effect by (20)\n            end\n            broadcast (光 v)\n            wait (0.3) seconds\n            clear graphic effects\n            hide\n            set [鍵 v] to [1]\n            wait (2) seconds\n            broadcast (NEXT v)\n        end\n    end\nend\n\n@光\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [光 v]\nrepeat (pick random (10) to (15))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nclear graphic effects\nset size to (pick random (50) to (100)) %\nshow\nglide (0.3) secs to x: (pick random (-20) to (20)) y: (pick random (-30) to (30))\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@あお\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-23)\n\nwhen I receive [next v]\nif <([costume # v] of [ステージ v]) = [7]> then\n    show\nelse\n    hide\nend\n\n@太陽\n\nwhen flag clicked\nshow\ngo to x: (215) y: (170)\nforever\n    turn right (1) degrees\n    go to [back v] layer\nend\n\nwhen [timer v] > (0)\nhide\n\n@1\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\npoint in direction (90)\nshow\nstart sound [TheFatRat - Monody v]\ngo to x: (2405) y: (0)\nstop [other scripts in sprite v]\nrepeat until <[0.5] > (x position)>\n    change x by ((0) - ((x position) / (4)))\nend\nset x to (-1)\nset [あ v] to [0]\nset size to (100) %\nwait (1) seconds\nforever\n    change [あ v] by (17.5)\n    point in direction ((([sin v] of (あ) ) * (5)) + (90))\nend\n\nwhen I receive [終わり v]\nhide\n\n