PLATFORMER  #game


@Stage\n\nwhen flag clicked\nforever\n    play sound [Thank You \(online-audio-converter v] until done\nend\n\n@player\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\npoint in direction (90)\nset size to (70) %\ngo to x: (-210) y: (10)\nset rotation style [left-right v]\ngo to [back v] layer\nforever\n    if <not <(Move permission) = [1]>> then\n        if <<<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [-50]>>> or <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-50]>>> or <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <[50] < (mouse x)>>>>> then\n            if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <[50] < (mouse x)>>> then\n                change [xv v] by (1.5)\n            end\n            if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-50]>>> then\n                change [xv v] by (-1.5)\n            end\n            if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [-50]>>> then\n        else\n            switch costume to (コスチューム1 v)\n        end\n    end\n    set [xv v] to ((xv) * (0.8))\n    change x by (xv)\n    if <touching (stage v)?> then\n        change y by (1)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change x by ((xv) / (-1))\n                        change y by (-4)\n                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <[50] < (mouse y)>>> then\n                            if <[0] < (xv)> then\n                                set [xv v] to [-9]\n                            else\n                                set [xv v] to [9]\n                            end\n                            set [yv v] to [12]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (stage v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <[50] < (mouse y)>>> then\n            start sound [ニュッ v]\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (yv)\n    if <touching (stage v)?> then\n        change y by ((yv) / (-1))\n        set [yv v] to [0]\n    end\n    if <[240] < (x position)> then\n        broadcast (↺ v)\n        go to x: (-240) y: (y position)\n    end\n    if <touching (d v)?> then\n        リスポーン\n    end\n    if <[-223] > (y position)> then\n        リスポーン\n    end\n    if <[-228] > (x position)> then\n        set x to (-227)\n    end\nend\n\nswitch costume to (コスチューム2 v)\n\ndefine リスポーン\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ngo to x: (-210) y: (-30)\nset [xv v] to [0]\nset [yv v] to [0]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@stage\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [↺ v]\nnext costume\n\n@stage2\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [↺ v]\nnext costume\n\n@D\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [↺ v]\nnext costume\n\n@サムネ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n