ICE WORLD/氷の世界　platformer

Instructions: ❖ New Games ❖\nhttps://scratch.mit.edu/projects/466922978/\nこの作品は@aqFRo-NOAZOCSさんとのコラボです！\n@aqFRo-NOAZOCSさんの作品↓↓↓↓\nhttps://scratch.mit.edu/projects/418475343/\n十字キー/タップで操作です！\n本気のplatformerです！\n面白かったら❤️と⭐️押してください！\nremixは自由にどうそ\n#games\n#platformer\nBGMは@hoshihoshi1さんに借りました

@Stage\n\nwhen I receive [bgm v]\nforever\n    play sound [TheFatRat  Phaera - Sunlight v] until done\nend\n\nwhen flag clicked\nbroadcast (BGM v)\n\n@player/プレイヤー\n\ndefine reset\nshow\ngo to x: (-220) y: (-50)\nswitch costume to (＼\(^o^\)／ v)\nset [xx v] to [0]\nset [yy v] to [0]\nhide variable [xx v]\nhide variable [yy v]\nset rotation style [left-right v]\npoint in direction (90)\n\ndefine Movement\nif <<<mouse down?> and <(mouse y) < [0]>> or <<key (s v) pressed?> or <key (down arrow v) pressed?>>> then\n    switch costume to (ʕ⁎̯͡⁎ʔ༄ v)\nelse\n    switch costume to (＼\(^o^\)／ v)\nend\nif <<<mouse down?> and <[0] < (mouse x)>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n    change [xx v] by (1)\n    point in direction (90)\nend\nif <<<mouse down?> and <(mouse x) < [0]>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n    change [xx v] by (-1)\n    point in direction (-90)\nend\nif <touching color (#00fff5)?> then\n    set [xx v] to ((Xx) * (0.8))\nelse\n    set [xx v] to ((Xx) * (0.9))\nend\nchange x by (Xx)\nif <touching color (#00fff5)?> then\n    change y by (1)\n    if <touching color (#00fff5)?> then\n        change y by (1)\n        if <touching color (#00fff5)?> then\n            change y by (1)\n            if <touching color (#00fff5)?> then\n                change y by (1)\n                if <touching color (#00fff5)?> then\n                    change y by (1)\n                    if <touching color (#00fff5)?> then\n                        change y by (1)\n                        if <touching color (#00fff5)?> then\n                            change y by (1)\n                            if <touching color (#00fff5)?> then\n                                change x by ((0) - (Xx))\n                                change y by (-7)\n                                if <<<mouse down?> and <[0] < (mouse y)>> or <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <key (space v) pressed?>>> then\n                                    set [yy v] to [9]\n                                    if <((Xx) - (Xx)) < (Xx)> then\n                                        set [xx v] to [-5]\n                                    else\n                                        set [xx v] to [5]\n                                    end\n                                else\n                                    set [xx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (-1)\nif <touching color (#00fff5)?> then\n    if <<<mouse down?> and <[0] < (mouse y)>> or <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <key (space v) pressed?>>> then\n        set [yy v] to [12]\n    end\nend\nchange y by (1)\nchange [yy v] by (-1)\nchange y by (Yy)\nif <touching color (#00fff5)?> then\n    change y by (((Yy) - (Yy)) - (Yy))\n    set [yy v] to [0]\nend\n\ndefine Judgment\nif <<(y position) < [-169]> or <touching color (#ff0000)?>> then\n    reset\nend\nif <[235] < (x position)> then\n    hide\n    set [ok v] to [0]\n    broadcast (next stage v)\n    wait until <(OK) = [1]>\n    set [ok v] to [0]\n    reset\nend\nif <touching color (#ff00f5)?> then\n    set [judgment v] to ((1) * <[0] < (x position)>)\n    set [yy v] to [22]\n    broadcast (animation v)\nend\n\nwhen I receive [start v]\nset size to (100) %\nreset\nforever\n    Movement\nend\n\nwhen I receive [start v]\nforever\n    Judgment\nend\n\nwhen flag clicked\nreset\nhide\n\nset size to (100) %\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (100) %\nrepeat (25)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\nhide\ndelete this clone\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [ stage ok v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\n@stage/ステージ\n\nwhen I receive [ stage ok v]\nswitch costume to ((costume [number v]) + (1))\n\nif <(costume [number v]) = [20]> then\n\nwhen flag clicked\nswitch costume to (stage1 v)\nhide\ngo to x: (0) y: (-2)\n\nwhen I receive [start v]\nshow\n\n@Spring/バネ\n\nwhen I receive [animation v]\nif <<(direction) = [0]> and <(Judgment) = [0]>> then\n    switch costume to (1 v)\n    wait (0.05) seconds\n    switch costume to (2 v)\n    wait (0.05) seconds\n    switch costume to (3 v)\n    wait (0.05) seconds\n    switch costume to (4 v)\n    wait (0.05) seconds\n    switch costume to (5 v)\n    wait (0.05) seconds\n    switch costume to (4 v)\n    wait (0.05) seconds\n    switch costume to (3 v)\n    wait (0.05) seconds\n    switch costume to (2 v)\n    wait (0.05) seconds\n    switch costume to (1 v)\n    wait (0.05) seconds\nend\nif <<(direction) = [1]> and <[1] = (Judgment)>> then\n    switch costume to (1 v)\n    wait (0.05) seconds\n    switch costume to (2 v)\n    wait (0.05) seconds\n    switch costume to (3 v)\n    wait (0.05) seconds\n    switch costume to (4 v)\n    wait (0.05) seconds\n    switch costume to (5 v)\n    wait (0.05) seconds\n    switch costume to (4 v)\n    wait (0.05) seconds\n    switch costume to (3 v)\n    wait (0.05) seconds\n    switch costume to (2 v)\n    wait (0.05) seconds\n    switch costume to (1 v)\n    wait (0.05) seconds\nend\n\nwhen I receive [start v]\nset rotation style [left-right v]\npoint in direction (90)\nset rotation style [don't rotate v]\npoint in direction (0)\nforever\n    if <([costume name v] of [stage/ステージ v]) = [stage3]> then\n        show\n        go to x: (-80) y: (-130)\n    else\n        if <([costume name v] of [stage/ステージ v]) = [stage10]> then\n            show\n            point in direction (0)\n            go to x: (-100) y: (-130)\n            go to x: (100) y: (-130)\n            turn right (1) degrees\n            create clone of (_myself_ v)\n            point in direction (0)\n            go to x: (-100) y: (-130)\n            wait until <not <([costume name v] of [stage/ステージ v]) = [stage10]>>\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nwait until <not <([costume name v] of [stage/ステージ v]) = [stage10]>>\ndelete this clone\n\ngo to [front v] layer\n\n@Stage switching/ステージ切り替え\n\nwhen flag clicked\nhide\nbroadcast (START v)\n\nwhen I receive [next stage v]\nshow\ngo to [front v] layer\nset [ok v] to [0]\ngo to x: (0) y: (385)\nset [acceleration v] to [-31]\nrepeat until <(y position) < [0]>\n    change [acceleration v] by (1)\n    change y by (acceleration)\nend\nbroadcast ( stage OK v)\nwait (0.6) seconds\nrepeat until <[580] < (y position)>\n    change [acceleration v] by (1)\n    change y by (acceleration)\nend\nset [ok v] to [1]\nbroadcast (OK v)\nhide\n\nrepeat (20)\n\n@thumbnail/サムネイル\n\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\n@cloud/雲\n\nwhen I receive [start v]\ngo to [back v] layer\nhide\nforever\n    go to x: (287) y: (pick random (50) to (150))\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (2) to (4)) seconds\nend\n\nwhen I start as a clone\nshow\nglide (pick random (4) to (8)) secs to x: (-281) y: (y position)\ndelete this clone\n\n@Stage/ステージ\n\nwhen I receive [start v]\nset size to (150) %\nshow\nswitch costume to (1 v)\ngo to [front v] layer\ngo to x: (-170) y: (165)\n\nwhen I receive [next stage v]\nhide\nswitch costume to ((costume [number v]) + (1))\n\nwhen I receive [ok v]\nshow\nif <(costume [number v]) = [21]> then\n    hide\nend\n\nwhen flag clicked\nhide\n\n