Midnight || A platformer プラットフォーマー

Instructions: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n|| Welcome To Midnight / 真夜中へようこそ ||\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n|| Instructions / 手順 ||\nWASDキーを使用するか、矢印キーを使用して移動します。スパイクに触れないでください。行って楽しんでください！\nUse WASD keys to or arrow keys move. Don't touch spikes. Go and have fun!\n\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n|| Credits / クレジット ||\n→ Thanks to / おかげで\n@EpikGaming\n@FreezingFields\n@PlazmaMonkeyFanClub\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n|| Goals ||\n→100 views!\n→10 loves!\n→ 500 views!\n→ 20 loves and stars!\n→1000 views!!!!\n→30 favs!\n→40 loves!

@Stage\n\n@Player\n\nwhen flag clicked\ngo to x: (-200) y: (0)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume left v)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume right v)\n        change [x v] by (1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change y by (1)\n                                if <touching (ground v)?> then\n                                    change y by (1)\n                                    if <touching (ground v)?> then\n                                        change y by (1)\n                                        if <touching (ground v)?> then\n                                            change x by ((X) * (-1))\n                                            change y by (-5)\n                                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                                if <(X) > [0]> then\n                                                    set [x v] to [-6]\n                                                else\n                                                    set [x v] to [6]\n                                                end\n                                                set [y v] to [14]\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            end\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [13]\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <(x position) > [243]> then\n        broadcast (Next v)\n    end\n    if <<touching (saw 1 v)?> or <touching (danger v)?>> then\n        go to x: (-200) y: (0)\n    end\n    if <touching color (#fff700)?> then\n        change [y v] by (10)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (3)\nend\ndelete this clone\n\nwhen I receive [next v]\ngo to x: (-200) y: (0)\n\nwhen I receive [spots v]\ngo to x: (-200) y: (0)\n\n@Decor \n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset drag mode [not draggable v]\nclear graphic effects\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [next v]\nnext costume\nchange [level v] by (1)\n\n@Danger\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\n@Front pages\n\nwhen flag clicked\nset drag mode [not draggable v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n@Next Level\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\ngo to [front v] layer\nhide\nshow\ngo to x: (-591) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nwait (0.2) seconds\nbroadcast (Next level v)\nglide (0.5) secs to x: (591) y: (0)\nbroadcast (Spots v)\nhide\n\n@Blank\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (36) y: (28)\nforever\n    point in direction (90)\n    repeat (10)\n        turn left (1) degrees\n    end\n    repeat (10)\n        turn right (1) degrees\n    end\n    repeat (10)\n        turn right (1) degrees\n    end\n    repeat (10)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n