拡散希望!　冬の360°platformer

Instructions: ----------------------------------memo-------------------------------\n新作→ https://scratch.mit.edu/projects/957398533/\n拡散すると作者がとっても喜ぶ!(^^)!\nSpread the word!\n傾向1p!!\nコミュ好きのったぁぁぁぁぁぁ！\n世界記録  12.902秒\n☆と♡、フォローしてくれると作者が喜ぶ(/・ω・)/\nクリア率8％（難しくしすぎちゃった(*'▽')）\nプラットフォーマーと同じ操作。\nモバイル対応。\n世界記録を目指せ！！\nステージ3まである（2が一番難しい）\n宣伝しないでください\nPlease don't advertise.\n-----------------------------------credit-------------------------------\n@syoinsya様  -  雪\n@neko_hood様  -  氷山\n@Taiki0504様  -  曲\n　bgm_魔王魂様\n@yumikorin_Anime様  -  結晶\n@-doremiFX-様  -  next素材\n-------------------------拡散してくれた方------------------------\n@kuri-pa-555様\n@kyuuma17様\n＠garira-0724様\n@-Area_Back-様\n@koko0716様\n@noob5046様\n@pikupikuGame0406様\n@mataosuke様\n@kawachan9sai様\n@radao1様\n@tibitoka様\n@minnadeasobo-ne様\n@RAU_scratch様\n＠kojake_072様\n@_ONETARO様\n@pon-chan777\n-----------------------------------font---------------------------------\nコーポレート・ロゴ\nk-font\n------------------------------------tag---------------------------------\n#冬\n#プラットフォーマー\n#360°platformer\n#platformer\n#games\n#game\n#winter\n#music

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nwait (3) seconds\nchange [☁ play people v] by (1)\n\nwhen I receive [n v]\nif <(Stage) = [5]> then\n    switch backdrop to (背景2 v)\n    wait (2) seconds\n    broadcast (all clear v)\n    stop [this script v]\nend\n\nwhen I receive [all clear v]\nbroadcast (time v)\n\nwhen I receive [sutage clear v]\nchange [stage v] by (1)\n\nwhen flag clicked\nforever\n    play sound [bgm_maoudamashii_8bit22 v] until done\nend\n\nwhen I receive [for samune v]\nswitch backdrop to (背景1 v)\nhide variable [☁ clear late v]\nhide variable [☁ number of people cleared v]\nhide variable [☁ play people v]\nhide variable [☁ worldrecord v]\nhide variable [stage v]\nhide variable [time v]\nhide variable [x v]\nhide variable [y v]\n\n@軽量化\n\n@キャラ\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nforever\n    repeat (20)\n        change size by (-0.75)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\npoint in direction (90)\ngo to x: (0) y: (0)\nforever\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        point in direction ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) * (90))\n    else\n        if <<key (d v) pressed?> or <key (a v) pressed?>> then\n            point in direction ((<key (d v) pressed?> - <key (a v) pressed?>) * (90))\n        else\n            if <<<[50] < (mouse x)> and <mouse down?>> or <<(mouse x) < [-50]> and <mouse down?>>> then\n                point in direction ((<[50] < (mouse x)> - <(mouse x) < [-50]>) * (90))\n            end\n        end\n    end\n    if <touching color (#ff3939)?> then\n        broadcast (Judgment v)\n        start sound [Crunch v]\n        wait until <not <touching color (#ff3939)?>>\n    end\n    if <touching color (#2f60ff)?> then\n        broadcast (sutage clear v)\n        wait until <not <touching color (#2f60ff)?>>\n    end\nend\n\nwhen I receive [n v]\nif <(Stage) = [5]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\nwhen I receive [for samune v]\nhide\n\n@地面\n\nwhen flag clicked\nset [stage v] to [2]\nwait (0) seconds\ngo to [front v] layer\nshow\nset size to (124) %\npoint in direction (75)\ngo to x: (0) y: (-200)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    switch costume to (Stage)\n    set [x v] to ((x) * (0.75))\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x v] by ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) * (-0.35))\n    else\n        if <<key (d v) pressed?> or <key (a v) pressed?>> then\n            change [x v] by ((<key (d v) pressed?> - <key (a v) pressed?>) * (-0.35))\n        else\n            if <<<[50] < (mouse x)> and <mouse down?>> or <<(mouse x) < [-50]> and <mouse down?>>> then\n                change [x v] by ((<[50] < (mouse x)> - <(mouse x) < [-50]>) * (-0.35))\n            end\n        end\n    end\n    turn right (x) degrees\n    if <touching (キャラ v)?> then\n        change y by (-1)\n    end\n    if <touching (キャラ v)?> then\n        change y by (-1)\n    end\n    if <touching (キャラ v)?> then\n        change y by (-1)\n    end\n    if <touching (キャラ v)?> then\n        change y by (-1)\n    end\n    if <touching (キャラ v)?> then\n        change y by (-1)\n    end\n    if <touching (キャラ v)?> then\n        change y by (-1)\n    end\n    if <touching (キャラ v)?> then\n        turn right ((x) * (-1)) degrees\n        change y by (6)\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse x) > [50]>>> then\n            if <[0] > (x)> then\n                set [x v] to [3]\n            else\n                set [x v] to [-3]\n            end\n            set [y v] to [-10]\n            start sound [Rip v]\n        else\n            set [y v] to [0]\n        end\n    end\n    change y by (1)\n    if <touching (キャラ v)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [-12]\n            start sound [Rip v]\n        end\n        if <key (w v) pressed?> then\n            set [y v] to [-12]\n            start sound [Rip v]\n        end\n        if <<mouse down?> and <(mouse y) > [0]>> then\n            set [y v] to [-12]\n            start sound [Rip v]\n        end\n    end\n    change y by (-1)\n    change [y v] by (1)\n    change y by (y)\n    if <touching (キャラ v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\nend\n\nwhen I receive [judgment v]\nInitialization\n\nwhen I receive [all clear v]\nhide\n\ndefine Initialization\ngo to [front v] layer\nshow\nset size to (124) %\npoint in direction (75)\ngo to x: (0) y: (-200)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [sutage clear v]\nInitialization\n\nwhen I receive [for samune v]\nhide\n\nwhen I receive [sutage clear v]\n\n@障害物\n\nwhen I receive [judgment v]\nInitialization\n\nwhen flag clicked\ngo to x: (0) y: (-200)\nbroadcast (Bug protection v)\ngo to [back v] layer\nshow\nset size to (124) %\npoint in direction (75)\nforever\n    set size to ([size v] of [地面 v]) %\n    switch costume to (Stage)\n    set [x v] to ((x) * (0.75))\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x v] by ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) * (-0.35))\n    else\n        if <<key (d v) pressed?> or <key (a v) pressed?>> then\n            change [x v] by ((<key (d v) pressed?> - <key (a v) pressed?>) * (-0.35))\n        else\n            if <<<[50] < (mouse x)> and <mouse down?>> or <<(mouse x) < [-50]> and <mouse down?>>> then\n                change [x v] by ((<[50] < (mouse x)> - <(mouse x) < [-50]>) * (-0.35))\n            end\n        end\n    end\n    turn right (x) degrees\n    point in direction ([direction v] of [地面 v])\n    change y by (y)\nend\n\nwhen I receive [all clear v]\nhide\n\ndefine Initialization\nhide\ngo to (地面 v)\ngo to [back v] layer\nshow\nset size to (200) %\npoint in direction (75)\nset [x v] to [0]\nset [y v] to [0]\npoint in direction ([direction v] of [地面 v])\n\nwhen I receive [sutage clear v]\nInitialization\n\nwhen I receive [bug protection v]\ngo to (地面 v)\nbroadcast (bug v)\n\nwhen I receive [for samune v]\nhide\n\nwhen I receive [bug v]\nbroadcast (Bug protection v)\n\ncreate clone of (_myself_ v)\n\n@スプライト1\n\nwhen I receive [time v]\nshow\nshow variable [time v]\nwait (1) seconds\nbroadcast (worldrecord v)\n\nwhen flag clicked\nhide variable [time v]\nreset timer\nhide\nforever\n    set [time v] to (timer)\nend\n\nwhen I receive [all clear v]\nstop [other scripts in sprite v]\nset [time v] to (timer)\nbroadcast (time v)\nstop [this script v]\n\nwhen I receive [for samune v]\nhide\n\n@スプライト2\n\nwhen I receive [worldrecord v]\nshow\nif <(time) < (☁ worldrecord)> then\n    set [☁ worldrecord v] to (time)\nend\nwait (1) seconds\nshow variable [☁ worldrecord v]\nwait (1) seconds\nbroadcast (number of people cleared v)\n\nwhen flag clicked\nhide variable [☁ worldrecord v]\nhide\n\nwhen I receive [for samune v]\nhide\n\n@スプライト3\n\nwhen I receive [number of people cleared v]\nchange [☁ number of people cleared v] by (1)\nshow\nwait (1) seconds\nshow variable [☁ number of people cleared v]\nwait (1) seconds\nbroadcast (clear rate v)\n\nwhen flag clicked\nhide variable [☁ number of people cleared v]\nhide\n\nwhen I receive [for samune v]\nhide\n\n@スプライト4\n\nwhen I receive [clear rate v]\nset [☁ clear late v] to (join ([floor v] of (((☁ number of people cleared) / (☁ play people)) * (100)) ) [%])\nshow\nwait (1) seconds\nshow variable [☁ clear late v]\n\nwhen flag clicked\nhide variable [☁ clear late v]\nhide\n\nwhen I receive [for samune v]\nhide\n\n@pen\n\nwhen flag clicked\nset size to (Infinity) %\ndelete all of [x v]\ndelete all of [y v]\ndelete all of [横移動速度 v]\ndelete all of [降る速度 v]\nrepeat (30)\n    add (pick random (-230) to (230)) to [x v]\n    add (pick random (-200) to (200)) to [y v]\n    add (pick random (-1.0) to (1.0)) to [横移動速度 v]\n    add (pick random (-1.0) to (-3.0)) to [降る速度 v]\n    add (pick random (15.0) to (25.0)) to [大きさ v]\nend\n\ndefine x (x) y (y) に (大きさ) の大きさでゆきびょーが\ngo to x: (x) y: (y)\nset pen size to (1)\nset pen (transparency v) to (70)\nrepeat (大きさ)\n    change pen size by (1.2)\n    change pen (transparency v) by (1)\n    pen down\nend\npen up\n\ndefine びょーが\nset [変数 v] to [0]\nerase all\ngo to x: (0) y: (0)\npen down\nset pen size to (70)\npen up\nset pen color to (#ffffff)\nrepeat (30)\n    change [変数 v] by (1)\n    x (item (変数) of [x v]) y (item (変数) of [y v]) に (item (変数) of [大きさ v]) の大きさでゆきびょーが\n    replace item (変数) of [x v] with ((item (変数) of [x v]) + (item (変数) of [横移動速度 v]))\n    replace item (変数) of [y v] with ((item (変数) of [y v]) + (item (変数) of [降る速度 v]))\n    if <(item (変数) of [y v]) < [-200]> then\n        replace item (変数) of [x v] with (pick random (-230) to (230))\n        replace item (変数) of [y v] with [200]\n        replace item (変数) of [横移動速度 v] with (pick random (-1.0) to (1.0))\n        replace item (変数) of [降る速度 v] with (pick random (-1) to (-3))\n        replace item (変数) of [大きさ v] with (pick random (15.0) to (25.0))\n    end\nend\n\nwhen flag clicked\nforever\n    びょーが\n    wait (0) seconds\nend\n\n@next\n\nwhen flag clicked\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (110) %\nshow\nif <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <(costume [number v]) = [3]>>> then\n    go to x: (0) y: (-342)\n    forever\n        change y by (((0) - (y position)) / (5))\n    end\nelse\n    go to x: (-493) y: (0)\n    if <(costume [number v]) = [7]> then\n        forever\n            change x by (((0) - (x position)) / (5))\n        end\n    else\n        forever\n            change x by (((30) - (x position)) / (5))\n        end\n    end\nend\n\nwhen I start as a clone\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (n v)\ndelete this clone\n\nwhen I receive [sutage clear v]\nswitch costume to (コスチューム3 \(1\) v)\nrepeat (7)\n    create clone of (_myself_ v)\n    next costume\n    wait (0.1) seconds\nend\n\n@宣伝\n\nwhen flag clicked\nhide\ngo to x: (-150) y: (184)\nforever\n    wait (5) seconds\n    show\n    glide (0.75) secs to x: (-150) y: (140)\n    wait (2) seconds\n    glide (0.75) secs to x: (-150) y: (184)\n    hide\nend\n\n@サムネ\n\ngo to [front v] layer\nclear graphic effects\nshow\n\nwhen flag clicked\nhide\n\n