Dark platformer //  暗闇   【モバイル対応】

Instructions: 矢印キーで操作　　　　　　　　　　　　\nOperate with arrow keys\n難易度は普通です\nステージは少ないけど....\nモバイルだと鬼畜w

@Stage\n\n@スプライト1\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nset size to (50) %\nset [ghost v] effect to (100)\nset rotation style [left-right v]\npoint in direction (90)\nshow\ngo to x: (-200) y: (-56)\nset [y v] to [0]\nset [x v] to [0]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> or <key (right arrow v) pressed?>> and <(x position) < (mouse x)>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    change x by (x)\n    if <touching (スプライト2 v)?> then\n        change y by (1)\n        if <touching (スプライト2 v)?> then\n            change y by (1)\n            if <touching (スプライト2 v)?> then\n                change y by (1)\n                if <touching (スプライト2 v)?> then\n                    change y by (1)\n                    if <touching (スプライト2 v)?> then\n                        change y by (1)\n                        if <touching (スプライト2 v)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow 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 [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        if <touching (スプライト2 v)?> then\n            start sound [High Whoosh v]\n            set [y v] to [15]\n        end\n    end\n    change y by (y)\n    change [y v] by (-1)\n    if <touching (スプライト2 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nset [ステージ v] to [0]\nforever\n    if <[245] < (x position)> then\n        go to x: (-248) y: (-22)\n        change [ステージ v] by (1)\n    end\nend\n\nmove (-10) steps\n\nwhen flag clicked\nforever\n    if <touching (スプライト3 v)?> then\n        go to x: (-200) y: (-56)\n        play sound [Crunch v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Reasoning v] until done\nend\n\nwhen flag clicked\nforever\n    if <<touching (スプライト2 v)?> and <key (up arrow v) pressed?>> then\nend\n\nplay sound [High Whoosh v] until done\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (36) y: (-18)\nforever\n    if <(ステージ) = [0]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <(ステージ) = [1]> then\n        switch costume to (コスチューム1-7 v)\n    end\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム1-2 v)\n    end\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム1-3 v)\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム1-4 v)\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム1-5 v)\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム1-6 v)\n    end\n    if <(ステージ) = [8]> then\n        switch costume to (コスチューム1-8 v)\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (36) y: (-18)\nshow\nforever\n    if <(ステージ) = [0]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <(ステージ) = [1]> then\n        switch costume to (コスチューム1-7 v)\n    end\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム1-2 v)\n    end\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム1-3 v)\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム1-4 v)\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム1-5 v)\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム1-6 v)\n    end\n    if <(ステージ) = [8]> then\n        switch costume to (コスチューム1-8 v)\n    end\nend\n\n@スプライト4\n\nwhen flag clicked\nhide\n\n