シャトルラン　platformer

Instructions: シャトルラン　platformer\n\nWindows以外だとバグるかもしれません‼\n\n音ありでプレイお願いします。←これ大事\n\n操作方法ーーーーーーーーー\nモバイル～タップ\nパソコン～矢印キー\n\nルールーーーーーーーーーー\nドレミファソラシドが鳴り終わるまでに次のコースへ向かいましょう！\nLEVELが上がるごとに音が早くなります！\n世界記録更新を目指して頑張りましょう(^^)v\nコースは20しかないので何回も繰り返します。\n\nバージョンーーーーーーーー\nV1.1　2月23日　共有・完成\n\nバグなどがあれば教えてください。\nもしよければ♡と☆、フォローをお願いします(^^)/\n\n音楽\nAlan Walker - Fade \n\nこちらも遊んでみてください。\nhttps://scratch.mit.edu/projects/487773285/\n\n2021年2月26日　傾向2ページ目

@Stage\n\nwhen flag clicked\nplay sound [Alan Walker - Fade \[NCS Release\].mp3 v] until done\n\nwhen I receive [アナウンス v]\nset volume to (10) %\n\nwhen I receive [アナウンス完了 v]\nrepeat (50)\n    change volume by (1)\nend\n\n@123\n\nwhen flag clicked\nset [シャトルラン v] to [0]\nset [システム v] to [0]\nshow\nswitch costume to (コスチューム1 v)\n\nwhen I receive [あkk v]\nnext costume\n\nwhen I receive [\] v]\nhide\n\nwhen [timer v] > (0)\nbroadcast (\] v)\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nshow\n\n@111\n\nwhen flag clicked\ngo to x: (-220) y: (-50)\n\nwhen I receive [動けーーー v]\nshow\nset rotation style [left-right v]\npoint in direction (90)\nset size to (75) %\ngo to [front v] layer\ngo to x: (-220) y: (-50)\nset [上座標j v] to [0]\nset [変数 v] to [0]\nforever\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n        change [上座標j v] by (1)\n    end\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n        point in direction (-90)\n        change [上座標j v] by (-1)\n    end\n    set [上座標j v] to ((上座標j) * (0.89))\n    change x by (上座標j)\n    if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n        change y by (1)\n        if <<touching color (#39e816)?> or <touching color (#000000)?>> then\n            change y by (1)\n            if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n                change y by (1)\n                if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n                    change y by (1)\n                    if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n                        change y by (1)\n                        if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n                            change x by ((上座標j) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                start sound [jump3 v]\n                                set [変数 v] to [10]\n                                if <[0] < (上座標j)> then\n                                    set [上座標j v] to [-7]\n                                else\n                                    set [上座標j v] to [7]\n                                end\n                            else\n                                set [上座標j v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            start sound [ぴょーん v]\n            set [変数 v] to [15]\n        end\n    end\n    change y by (1)\n    change [変数 v] by (-1)\n    change y by (変数)\n    if <<touching color (#40e617)?> or <touching color (#000000)?>> then\n        change y by ((変数) * (-1))\n        set [変数 v] to [0]\n    end\n    if <<(y position) < [-170]> or <touching color (#ff0000)?>> then\n        go to x: (-220) y: (-50)\n    end\n    if <[235] < (x position)> then\n        go to x: (-220) y: (-50)\n        broadcast (あkk v)\n    end\nend\n\nhide\n\nwhen I receive [止まれーーー v]\nshow\nstop [this script v]\n\n@スプライト4\n\nwhen flag clicked\ngo to x: (465) y: (0)\nhide\n\nwhen I receive [あkk v]\nset [システム v] to [1]\nset [システム v] to [0]\nshow\nrepeat until <(x position) < [1]>\n    change x by (((x position) / (3)) * (-1))\nend\nrepeat until <(x position) < [-464]>\n    change x by (((([abs v] of (x position) ) + (10)) / (1)) * (-1))\nend\nchange [シャトルラン v] by (1)\nhide\ngo to x: (465) y: (0)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@スプライト1\n\nwhen flag clicked\nshow variable [スピード v]\nhide variable [☁ 世界記録 v]\nhide variable [1 v]\nshow variable [lv v]\ngo to [front v] layer\nset [lv v] to [0]\nswitch costume to (コスチューム1 v)\nshow\nclear graphic effects\nbroadcast (アナウンス v)\nset voice to (alto v)::tts\nset language to (en v)::tts\nspeak [3]::tts\nwait () seconds\nrepeat (10)\n    change [pixelate v] effect by (10)\nend\nnext costume\nrepeat (10)\n    change [pixelate v] effect by (-10)\nend\nspeak [2]::tts\nwait () seconds\nrepeat (10)\n    change [pixelate v] effect by (10)\nend\nnext costume\nrepeat (10)\n    change [pixelate v] effect by (-10)\nend\nspeak [1]::tts\nwait () seconds\nrepeat (10)\n    change [pixelate v] effect by (10)\nend\nnext costume\nrepeat (10)\n    change [pixelate v] effect by (-10)\nend\nspeak [start]::tts\nset [シャトルラン v] to [1]\nwait (1) seconds\nbroadcast (動けーーー v)\nbroadcast (アナウンス完了 v)\nrepeat (10)\n    change [pixelate v] effect by (10)\nend\nrepeat (10)\n    change [pixelate v] effect by (-10)\nend\nhide\nbroadcast (カウント開始 v)\nbroadcast (ストップ機能 v)\n\nhide\n\nwhen I receive [カウント開始 v]\nset instrument to (17 v)\nplay note (60) for (スピード) beats\nplay note (62) for (スピード) beats\nplay note (64) for (スピード) beats\nplay note (65) for (スピード) beats\nplay note (67) for (スピード) beats\nplay note (69) for (スピード) beats\nplay note (71) for (スピード) beats\nplay note (72) for (スピード) beats\nbroadcast (アナウンス v)\nset instrument to (3 v)\nplay note (60) for (1.2) beats\nchange [lv v] by (1)\nbroadcast (アナウンス完了 v)\nbroadcast (折り返し v)\n\nwhen I receive [折り返し v]\nset instrument to (17 v)\nplay note (72) for (スピード) beats\nplay note (71) for (スピード) beats\nplay note (69) for (スピード) beats\nplay note (67) for (スピード) beats\nplay note (65) for (スピード) beats\nplay note (64) for (スピード) beats\nplay note (62) for (スピード) beats\nplay note (60) for (スピード) beats\nbroadcast (アナウンス v)\nset instrument to (3 v)\nplay note (60) for (1.2) beats\nchange [lv v] by (1)\nbroadcast (アナウンス完了 v)\nbroadcast (カウント開始 v)\n\nwhen flag clicked\nforever\n    if <(Lv) < [3]> then\n        set [スピード v] to [1.3]\n    end\n    if <<(Lv) > [4]> and <(Lv) < [7]>> then\n        set [スピード v] to [1.1]\n    end\n    if <<(Lv) > [8]> and <(Lv) < [11]>> then\n        set [スピード v] to [1]\n    end\n    if <<(Lv) > [12]> and <(Lv) < [14]>> then\n        set [スピード v] to [0.9]\n    end\n    if <<(Lv) > [15]> and <(Lv) < [19]>> then\n        set [スピード v] to [0.85]\n    end\n    if <<(Lv) > [20]> and <(Lv) < [25]>> then\n        set [スピード v] to [0.7]\n    end\n    if <<(Lv) > [24]> and <(Lv) < [30]>> then\n        set [スピード v] to [0.65]\n    end\n    if <<(Lv) > [31]> and <(Lv) < [35]>> then\n        set [スピード v] to [0.6]\n    end\n    if <<(Lv) > [36]> and <(Lv) < [40]>> then\n        set [スピード v] to [0.55]\n    end\n    if <<(Lv) > [41]> and <(Lv) < [45]>> then\n        set [スピード v] to [0.5]\n    end\n    if <<(Lv) > [46]> and <(Lv) < [50]>> then\n        set [スピード v] to [0.4]\n    end\n    if <<(Lv) > [51]> and <(Lv) < [55]>> then\n        set [スピード v] to [0.3]\n    end\n    if <<(Lv) > [56]> and <(Lv) < [60]>> then\n        set [スピード v] to [0.25]\n    end\n    if <<(Lv) > [61]> and <(Lv) < [65]>> then\n        set [スピード v] to [0.2]\n    end\n    if <<(Lv) > [66]> and <(Lv) < [100]>> then\n        set [スピード v] to [0.1]\n    end\nend\n\nwhen I receive [ストップ機能 v]\nforever\n    if <((Lv) + (1)) > (シャトルラン)> then\n        hide variable [スピード v]\n        hide variable [lv v]\n        set [1 v] to (Lv)\n        show variable [1 v]\n        if <(Lv) > (☁ 世界記録)> then\n            set [☁ 世界記録 v] to (Lv)\n            broadcast (結果 v)\n        end\n        show variable [☁ 世界記録 v]\n        switch costume to (コスチューム5 v)\n        show\n        go to [front v] layer\n        stop [all v]\n    else\n        if <((シャトルラン) - (1)) > (Lv)> then\n            broadcast (動けーーー v)\n        else\n            broadcast (止まれーーー v)\n        end\n    end\nend\n\nwhen flag clicked\n\nset [スピード v] to [0.1]\n\n@タイトルなし2\n\nwhen flag clicked\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (10) to (50))\ngo to x: (230) y: (pick random (160) to (100))\nrepeat (150)\n    go to [back v] layer\nend\nhide\n\nwhen flag clicked\nforever\n    switch costume to (pick random (1) to (3))\n    set [brightness v] effect to (40)\n    create clone of (_myself_ v)\n    wait (2) seconds\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (50) to (70))\ngo to x: (230) y: (pick random (160) to (103))\nrepeat (150)\n    move (-3) steps\nend\nhide\n\ndelete this clone\n\n@スプライト2\n\nwhen flag clicked\nhide\n\nwhen I receive [結果 v]\nshow\ngo to [front v] layer\n\n@スプライト3\n\nwhen flag clicked\nhide\n\nhide\n\nshow\n\n