Christmas platformer | クリスマスのプラットフォーマー

Instructions: "WASD" or "arrow keys" to move\n\nWASDまたは 矢印キーで移動\n\n裏ステージあるよ\n\n\n\n\n⠀⠀⠀　　　　⡠⠒⠒⠐⠒⠢⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⢀⣘⠋⢣⠀⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⢸⠘⣂⠤⠖⠊⠁⠀⡇⠈⡆⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠘⠛⠶⠶⣤⣤⣸⡑⢄⠀⠀⠀⠀⠀⡇⢰⢁⣀⣠⣤⠶⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠉⠑⢄⡑⢄⣀⣀⣰⠵⠛⠋⠉⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⣽⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣀⣤⠶⠟⠉⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀　　　　　　　　　　　　　　　　　　　 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡏⠀⠀

@Stage\n\nwhen flag clicked\nforever\n    if <(ステージ) = [10]> then\n        switch backdrop to (背景4 v)\n    else\n        if <(ステージ) = [9]> then\n            switch backdrop to (背景3 v)\n        else\n            if <(ステージ) = [11]> then\n                switch backdrop to (背景5 v)\n            else\n                switch backdrop to (背景1 v)\n            end\n        end\n    end\nend\n\nset [ステージ v] to [10]\n\nwhen flag clicked\nforever\n    if <(ステージ) = [11]> then\n        stop all sounds\n        forever\n            wait (1) seconds\n        end\n    else\n        play sound [閉ざされた正方形の空間 v] until done\n    end\nend\n\nswitch backdrop to (背景2 v)\n\nwait (1) seconds\n\n@プレーヤー\n\nwhen flag clicked\nset [ステージ v] to [1]\ngo to [front v] layer\nset size to (100) %\npoint in direction (90)\ngo to x: (-200) y: (0)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (0.9)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.9)\n        point in direction (-90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n        change y by (1)\n        if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n            change y by (1)\n            if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n                change y by (1)\n                if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n                    change y by (1)\n                    if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n                        change y by (1)\n                        if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n                            change y by (1)\n                            if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n                                change x by ((0) - (x))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                    if <[0] < (x)> then\n                                        set [x v] to [-7]\n                                    else\n                                        set [x v] to [7]\n                                    end\n                                    set [y v] to [10]\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 v] by (-1)\n    change y by (y)\n    if <<touching (地面・壁 v)?> or <touching color (#ffffff)?>> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-2)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <<touching (地面・壁 v)?> or <touching color (#ffffff)?>>> then\n        change [y v] by (15)\n    end\n    change y by (1)\n    if <touching (next v)?> then\n        broadcast (次! v)\n        wait (0.3) seconds\n        go to x: (-200) y: (0)\n        wait (1.5) seconds\n        go to x: (-200) y: (0)\n    end\n    if <touching (死 v)?> then\n        broadcast (死 v)\n        go to x: (-200) y: (30)\n    end\n    if <touching (next2 v)?> then\n        broadcast (家の中 v)\n        change [ステージ v] by (1)\n        go to x: (-150) y: (140)\n    end\nend\n\nbroadcast (死 v)\n\nwhen I receive [死 v]\ngo to x: (-200) y: (30)\n\n@地面・壁\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\nchange x by (-20)\n\n@next2\n\nwhen flag clicked\nforever\n    if <(ステージ) = [9]> then\n        switch costume to (コスチューム2 v)\n    else\n        switch costume to (コスチューム1 v)\n    end\nend\n\n@死\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@雪\n\nwhen flag clicked\nerase all\nhide\nforever\n    if <(ステージ) < [10]> then\n        create clone of (_myself_ v)\n        create clone of (雪\(見た目\) v)\n        go to x: ((pick random (11) to (-11)) * (20)) y: (170)\n        wait (0.1) seconds\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (100)\nhide\nrepeat until <<touching (地面・壁 v)?> or <touching color (#ffffff)?>>\n    hide\n    turn right (pick random (-10) to (10)) degrees\n    change y by (-10)\n    ブロック名\nend\nswitch costume to (コスチューム2 v)\nset [ghost v] effect to (0)\nshow\npoint in direction (90)\nif <[0] < (y position)> then\n    delete this clone\nend\nforever\n    if <touching (プレーヤー v)?> then\n        wait (1) seconds\n        if <touching (プレーヤー v)?> then\n            delete this clone\n        end\n    end\nend\n\nwhen I receive [次! v]\nwait (1) seconds\ndelete this clone\n\nwhen I receive [死 v]\ndelete this clone\n\nwhen I receive [家の中 v]\ndelete this clone\n\ndefine ブロック名\nshow\nif <touching (プレーヤー v)?> then\n    delete this clone\nend\nif <touching (死 v)?> then\n    delete this clone\nend\n\n@雪(見た目)\n\nwhen I start as a clone\ngo to (雪 v)\nshow\nswitch costume to (コスチューム1 v)\nrepeat until <<touching (地面・壁 v)?> or <touching color (#ffffff)?>>\n    turn right (pick random (-10) to (10)) degrees\n    change y by (-10)\n    change x by (pick random (-10) to (10))\n    if <<touching (プレーヤー v)?> or <touching (死 v)?>> then\n        delete this clone\n    end\nend\ndelete this clone\n\n@next\n\nwhen flag clicked\nforever\n    if <(ステージ) = [9]> then\n        switch costume to (コスチューム2 v)\n    else\n        switch costume to (コスチューム1 v)\n    end\nend\n\n@next scratch.mit.edu/projects/711999877/\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (110) %\nset [brightness v] effect to (-3)\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\ndelete this clone\n\nwhen I receive [次! v]\nswitch costume to (コスチューム3 \(1\) v)\nrepeat (7)\n    create clone of (_myself_ v)\n    next costume\n    wait (0.1) seconds\nend\nchange [ステージ v] by (1)\n\n@🎁\n\nwhen I receive [家の中 v]\nswitch costume to (コスチューム1 v)\nwait (1) seconds\nshow\nwait until <touching (プレーヤー v)?>\nswitch costume to (コスチューム2 v)\nset [end v] to [1]\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nchange [ステージ v] by (1)\n\nwhen I receive [次! v]\nhide\n\n@🏆プラットフォーマー世界記録\n\ndefine ブロック名\ngo to x: (70) y: (150)\nset [番号 v] to [0]\nrepeat (length of (記録))\n    change [番号 v] by (1)\n    if <(letter (番号) of (記録)) = [.]> then\n        switch costume to (コスチューム12 v)\n        create clone of (_myself_ v)\n    else\n        switch costume to ((letter (番号) of (記録)) + (1))\n        create clone of (_myself_ v)\n    end\n    change x by (20)\nend\nswitch costume to (コスチューム11 v)\ncreate clone of (_myself_ v)\ngo to x: (60) y: (120)\nswitch costume to (コスチューム13 v)\ncreate clone of (_myself_ v)\nchange x by (20)\nset [番号 v] to [0]\nrepeat (length of (☁ 世界記録1))\n    change [番号 v] by (1)\n    if <(letter (番号) of (☁ 世界記録1)) = [.]> then\n        switch costume to (コスチューム12 v)\n        create clone of (_myself_ v)\n    else\n        switch costume to ((letter (番号) of (☁ 世界記録1)) + (1))\n        create clone of (_myself_ v)\n    end\n    change x by (20)\nend\nswitch costume to (コスチューム11 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nif <(distance to [プレーヤー v]) < [100]> then\n    set [ghost v] effect to (50)\nelse\n    set [ghost v] effect to (0)\nend\nwait (0) seconds\ndelete this clone\n\nwhen flag clicked\nreset timer\n\nwhen flag clicked\nforever\n    ブロック名\nend\n\nwhen flag clicked\nset [end v] to [0]\nrepeat until <(end) = [1]>\n    set [記録 v] to (timer)\nend\nif <(記録) < (☁ 世界記録1)> then\n    set [☁ 世界記録1 v] to (記録)\nend\n\nset [☁ 世界記録 v] to [1111111111111111111111111111111111]\n\nset [☁ 世界記録1 v] to [234567654345676543567]\n\nset [end v] to [0]\n\n@サムーーネ\n\nwhen flag clicked\nswitch costume to (コスチューム7 v)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@リセット\n\nwhen this sprite clicked\nbroadcast (死 v)\n\nwhen [r v] key pressed\nbroadcast (死 v)\n\nwhen flag clicked\nwait (0.01) seconds\ngo to [front v] layer\nforever\n    if <touching (プレーヤー v)?> then\n        set [ghost v] effect to (50)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@謎ダンス\n\ndefine 揺れ\nmove (1) steps\nwait (0) seconds\nchange y by (1)\nwait (0) seconds\nmove (-1) steps\nwait (0) seconds\nchange y by (-1)\ngo to x: (0) y: (0)\n\ndefine パート1\nswitch costume to (1 v)\nrepeat (2)\n    set rotation style [left-right v]\n    point in direction (-90)\n    揺れ\n    wait (0.25) seconds\n    set rotation style [left-right v]\n    point in direction (90)\n    move (1) steps\n    wait (0) seconds\n    揺れ\n    wait (0.25) seconds\nend\nset rotation style [left-right v]\npoint in direction (-90)\n揺れ\nwait (0.25) seconds\nset rotation style [left-right v]\npoint in direction (90)\n揺れ\nwait (0.2) seconds\n\ndefine ～(^^)～\nswitch costume to (2 v)\n揺れ\nwait (0.5) seconds\n\ndefine パート2\nswitch costume to (3 v)\nrepeat (2)\n    set rotation style [left-right v]\n    point in direction (-90)\n    揺れ\n    wait (0.25) seconds\n    set rotation style [left-right v]\n    point in direction (90)\n    move (1) steps\n    wait (0) seconds\n    揺れ\n    wait (0.25) seconds\nend\nset rotation style [left-right v]\npoint in direction (-90)\n揺れ\nwait (0.25) seconds\nset rotation style [left-right v]\npoint in direction (90)\n揺れ\nwait (0.2) seconds\n\ndefine パート3\nswitch costume to (4 v)\nrepeat (2)\n    set rotation style [left-right v]\n    point in direction (-90)\n    揺れ\n    wait (0.25) seconds\n    set rotation style [left-right v]\n    point in direction (90)\n    move (1) steps\n    wait (0) seconds\n    揺れ\n    wait (0.25) seconds\nend\nset rotation style [left-right v]\npoint in direction (-90)\n揺れ\nwait (0.25) seconds\nset rotation style [left-right v]\npoint in direction (90)\n揺れ\nwait (0.2) seconds\nswitch costume to (2 v)\n揺れ\nwait (0.55) seconds\n\ndefine 荒ぶる\nswitch costume to (5 v)\nrepeat (90)\n    go to x: (pick random (20) to (-20)) y: (pick random (20) to (-20))\nend\ngo to x: (0) y: (0)\n\ndefine サムネ用ブロック\nswitch backdrop to (サムネ v)\nhide\nstop [all v]\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(ステージ) = [11]>\nwait (0.1) seconds\nswitch backdrop to (白 v)\ngo to x: (0) y: (0)\nset size to (100) %\nshow\nset [brightness v] effect to (-3)\nforever\n    start sound [魔王魂  民族14 v]\n    パート1\n    ～(^^)～\n    パート2\n    ～(^^)～\n    パート3\n    荒ぶる\nend\n\n