-AI- (a platformer) Mobile compatible

Instructions: 日本語は下です!\n                     　　--- Beginners ---\nIf you really don't know the code, look inside!\n　　　　　　　--- How to operate ---\nUse the arrow keys to move and enter the code. Use the arrow keys, delete the code at the bottom with the B key, and confirm with the space key.In the case of a smartphone, enter with the arrow at the bottom left and decide with the red circle in the middle.\n　　　　　　--- Color description ---\nThe red color returns to its original position when touched. Alternatively, touching a meteor or a blue laser will return it to its original position.\n　　　　　　　　　--- Story ---\nAt a research institute, an AI that can go to the cyber world was created. The laboratory doctor said, "Let's test whether AI can go to the cyber world properly." Well, can AI safely return to the real world?\nーーーーーーーーーー初心者様へーーーーーーーーー\nどうしてもコードがわからないときは、中を見てください!\nーーーーーーーーーー操作方法ーーーーーーーーーー\n矢印キーで移動、コードを入力するときは、矢印キーで入力、Bキーで一番下のコードを削除、スペースキーで決定です。スマホの場合、左下の矢印で入力、真ん中の赤丸で決定となります。\nーーーーーーーーーー色の説明ーーーーーーーーーー\n赤色は触れたら最初の位置に戻されます。他にも、隕石や青色のレーザーに触れても最初の位置に戻されます。\nーーーーーーーーーーー物語ーーーーーーーーーーー\nある研究所で、電脳世界に行けるAIが製作されました。研究所の博士は、「AIがちゃんと電脳世界に行けるかテストをしよう。」と言っています。さて、AIは、無事に現実世界に帰れるのでしょうか?

@Stage\n\nwhen flag clicked\nswitch backdrop to (無題 v)\n\nwhen flag clicked\nif <(OPスキップ) = [0]> then\n    set volume to (100) %\n    start sound [bgm_maoudamashii_8bit22 v]\nelse\n    set volume to (100) %\nend\n\nwhen I receive [start v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nset volume to (100) %\nforever\n    play sound [tie no wa v] until done\nend\n\nwhen I receive [オープニング終了 v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nset volume to (100) %\nstart sound [bgm_maoudamashii_cyber43 v]\n\nwhen flag clicked\nhide variable [タイム v]\nhide variable [あなたの最高タイム v]\nhide variable [☁ 世界最高タイム v]\nset [タイム v] to [0]\n\nwhen I receive [start v]\nshow variable [タイム v]\nrepeat until <(stage) = [11]>\n    wait (1) seconds\n    change [タイム v] by (1)\nend\nshow variable [☁ 世界最高タイム v]\nshow variable [あなたの最高タイム v]\nif <<(タイム) < (あなたの最高タイム)> or <(あなたの最高タイム) = [0]>> then\n    set [あなたの最高タイム v] to (タイム)\nend\nif <<(タイム) < (☁ 世界最高タイム)> or <(☁ 世界最高タイム) = [0]>> then\n    set [☁ 世界最高タイム v] to (タイム)\nend\n\nset [☁ 世界最高タイム v] to [0]\nset [あなたの最高タイム v] to [0]\n\nwhen flag clicked\nif <key (s v) pressed?> then\n    set [opスキップ v] to [1]\nelse\n    set [opスキップ v] to [0]\nend\n\n@hero(主人公)\n\nwhen I start as a clone\nif <key (down arrow v) pressed?> then\n    switch costume to (主人公しゃがみ残像 v)\nelse\n    switch costume to (主人公普通残像 v)\nend\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [start v]\nset [パスコード入力中 v] to [0]\nshow\nswitch costume to (主人公 v)\ngo to x: (-180) y: (-113)\nset [stage v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<not <(パスコード入力中) = [1]>> and <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        change [x v] by (0.75)\n        point in direction (90)\n    end\n    if <<not <(パスコード入力中) = [1]>> and <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [x v] by (-0.75)\n        point in direction (-90)\n    end\n    set [x v] to ((X) - ((X) / (10)))\n    change x by (X)\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change y by (1)\n    end\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change y by (1)\n    end\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change y by (1)\n    end\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change y by (1)\n    end\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change y by (1)\n    end\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change x by ((X) * (-1))\n        change y by (-5)\n        if <<not <(パスコード入力中) = [1]>> and <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n            set [y v] to [10]\n            if <(X) > [0]> then\n                set [x v] to [-3.75]\n            else\n                set [x v] to [3.75]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (-1)\n    if <<not <(パスコード入力中) = [1]>> and <<<touching (地形 v)?> or <touching (ボタン地形 v)?>> and <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\n        start sound [jump13 v]\n        set [y v] to [12.5]\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <<touching (地形 v)?> or <touching (ボタン地形 v)?>> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    if <(x position) > [240]> then\n        broadcast (go next v)\n        go to x: (-180) y: (-113)\n        change [stage v] by (1)\n    end\n    if <<<<touching (障害物 v)?> or <touching (ボタン障害物 v)?>> or <touching (隕石 v)?>> or <touching (回転 v)?>> then\n        start sound [Computer Beep v]\n        repeat (25)\n            change size by (-4)\n            change [pixelate v] effect by (4)\n            change [ghost v] effect by (4)\n        end\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-180) y: (-113)\n        repeat (25)\n            change size by (4)\n            change [pixelate v] effect by (4)\n            change [ghost v] effect by (4)\n        end\n        set size to (100) %\n        clear graphic effects\n    end\n    if <<touching (ボタン v)?> and <<(stage) = [3]> or <<(stage) = [4]> or <<(stage) = [6]> or <(stage) = [10]>>>>> then\n        broadcast (ボタンに触れた v)\n        broadcast (ボタンに触れた\(スマホ\) v)\n        say [十字キーで打ち込み、Bキーでパスコードの一番下を消す、スペースキーで決定]\n        wait until <not <(パスコード入力中) = [1]>>\n        say []\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (主人公 v)\nforever\n    if <key (down arrow v) pressed?> then\n        repeat until <not <key (down arrow v) pressed?>>\n            switch costume to (主人公しゃがみ v)\n        end\n        switch costume to (主人公 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <(stage) = [1]> then\n        repeat until <not <(stage) = [1]>>\n            set [パスコード入力中 v] to [0]\n            show list [パスコード v]\n        end\n    end\n    if <(stage) = [2]> then\n        repeat until <not <(stage) = [2]>>\n            set [パスコード入力中 v] to [0]\n            show list [パスコード v]\n        end\n    end\n    if <(stage) = [5]> then\n        repeat until <not <(stage) = [5]>>\n            set [パスコード入力中 v] to [0]\n            show list [パスコード v]\n        end\n    end\n    if <(stage) = [7]> then\n        repeat until <not <(stage) = [7]>>\n            set [パスコード入力中 v] to [0]\n            show list [パスコード v]\n        end\n    end\n    if <(stage) = [8]> then\n        repeat until <not <(stage) = [8]>>\n            set [パスコード入力中 v] to [0]\n            show list [パスコード v]\n        end\n    end\n    if <(stage) = [9]> then\n        repeat until <not <(stage) = [9]>>\n            set [パスコード入力中 v] to [0]\n            show list [パスコード v]\n        end\n    end\nend\n\n@背景１\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    change [\[gl\]fieldx v] by (-22)\nend\n\nwhen I receive [start v]\nset y to (0)\nset x to (0)\nset [\[gl\]fieldx v] to [0]\nset [filed1スライド v] to [0]\ngo to [back v] layer\nshow\nforever\n    set x to ((\[GL\]fieldX) + ((479) * (filed1スライド)))\n    if <(\[GL\]fieldX) < ((-479) * ((filed1スライド) + (1)))> then\n        change [filed1スライド v] by (2)\n    end\n    if <(\[GL\]fieldX) > ((-479) * ((filed1スライド) - (1)))> then\n        change [filed2count v] by (-2)\n    end\nend\n\n@背景２\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset y to (0)\nset x to (480)\nset [filed2スライド v] to [1]\ngo to [back v] layer\nshow\nforever\n    set x to ((\[GL\]fieldX) + ((479) * (filed2スライド)))\n    if <(\[GL\]fieldX) < ((-479) * ((filed2スライド) + (1)))> then\n        change [filed2スライド v] by (2)\n    end\n    if <(\[GL\]fieldX) > ((-479) * ((filed2スライド) - (1)))> then\n        change [filed2スライド v] by (-2)\n    end\nend\n\n@地形\n\nwhen flag clicked\nswitch costume to (1 v)\nclear graphic effects\nhide\n\nwhen I receive [start v]\nshow\nforever\n    repeat (20)\n        change [brightness v] effect by (1)\n    end\n    repeat (20)\n        change [brightness v] effect by (-1)\n    end\nend\n\nwhen I receive [go next v]\nnext costume\n\n@ボタン地形\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [go next v]\nnext costume\nshow\n\nwhen I receive [ボタン消去 v]\nhide\n\n@文字\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [start v]\nswitch costume to (1 v)\nclear graphic effects\ngo to x: (0) y: (80)\nshow\nforever\n    repeat (20)\n        change [brightness v] effect by (1)\n    end\n    repeat (20)\n        change [brightness v] effect by (-1)\n    end\nend\n\nwhen I receive [go next v]\nnext costume\n\n@パスコードヒント\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [go next v]\ngo to x: (0) y: (80)\nnext costume\nclear graphic effects\nshow\nset [ghost v] effect to (100)\nforever\n    repeat (20)\n        change [ghost v] effect by (3)\n    end\n    repeat (20)\n        change [ghost v] effect by (-3)\n    end\nend\n\n@障害物\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [start v]\nshow\nforever\n    repeat (20)\n        change [brightness v] effect by (1)\n    end\n    repeat (20)\n        change [brightness v] effect by (-1)\n    end\nend\n\nwhen I receive [go next v]\nnext costume\n\n@ボタン障害物\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [go next v]\nnext costume\nshow\n\nwhen I receive [ボタン消去\(障害物\) v]\nhide\n\n@ボタン\n\nwhen flag clicked\nshow list [パスコード v]\ndelete all of [パスコード v]\nhide\n\nwhen I receive [go next v]\nshow list [パスコード v]\nshow\nnext costume\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow list [パスコード v]\nswitch costume to (1 v)\nshow\nforever\n    repeat (20)\n        change [brightness v] effect by (1)\n    end\n    repeat (20)\n        change [brightness v] effect by (-1)\n    end\nend\n\nwhen I receive [ボタンに触れた v]\nhide list [パスコード v]\nset [パスコード入力中 v] to [1]\ngo to x: (0) y: (0)\ndelete all of [パスコード v]\nrepeat until <not <(パスコード入力中) = [1]>>\n    if <<key (up arrow v) pressed?> or > then\n        add [↑] to [パスコード v]\n        wait (0.2) seconds\n    end\n    if <<key (down arrow v) pressed?> or > then\n        add [↓] to [パスコード v]\n        wait (0.2) seconds\n    end\n    if <<key (right arrow v) pressed?> or > then\n        add [→] to [パスコード v]\n        wait (0.2) seconds\n    end\n    if <<key (left arrow v) pressed?> or > then\n        add [←] to [パスコード v]\n        wait (0.2) seconds\n    end\n    if <<key (b v) pressed?> or <key ((join [backspace key] []) v) pressed?>> then\n        delete (length of [パスコード v]) of [パスコード v]\n        wait (0.2) seconds\n    end\n    if <<key (space v) pressed?> or <key ((join [enter] []) v) pressed?>> then\n        if <(stage) = [3]> then\n            if <<<<(item (1) of [パスコード v]) = [→]> and <(item (2) of [パスコード v]) = [↓]>> and <(item (3) of [パスコード v]) = [→]>> and <(item (4) of [パスコード v]) = [←]>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去 v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n        if <(stage) = [4]> then\n            if <<<<(item (1) of [パスコード v]) = [←]> and <(item (2) of [パスコード v]) = [↑]>> and <(item (3) of [パスコード v]) = [←]>> and <(item (4) of [パスコード v]) = [→]>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去\(障害物\) v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n        if <(stage) = [6]> then\n            if <<<<<(item (1) of [パスコード v]) = [↑]> and <(item (2) of [パスコード v]) = [←]>> and <(item (3) of [パスコード v]) = [↓]>> and <(item (4) of [パスコード v]) = [→]>> and <<<<(item (5) of [パスコード v]) = [→]> and <(item (6) of [パスコード v]) = [↓]>> and <(item (7) of [パスコード v]) = [←]>> and <(item (8) of [パスコード v]) = [↑]>>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去\(障害物\) v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n        if <(stage) = [10]> then\n            if <<<<<(item (1) of [パスコード v]) = [↑]> and <(item (2) of [パスコード v]) = [↓]>> and <(item (3) of [パスコード v]) = [↑]>> and <(item (4) of [パスコード v]) = [↓]>> and <<<<(item (5) of [パスコード v]) = [→]> and <(item (6) of [パスコード v]) = [←]>> and <(item (7) of [パスコード v]) = [→]>> and <(item (8) of [パスコード v]) = [←]>>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去\(障害物\) v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n    end\nend\n\nwhen I receive [ボタンに触れた v]\nthink [パスコード　ヲ　ニュウリョク　シテクダサイ。] for (2) seconds\n\nwhen I receive [ボタン消去 v]\nhide\n\nwhen I receive [ボタン消去\(障害物\) v]\nhide\n\n@haruhitori text2\n\nwhen flag clicked\nif <(OPスキップ) = [0]> then\n    point in direction (90)\n    erase all\n    reset timer\n    show\n    set [回転 v] to [0]\n    set [mosaic v] effect to (100)\n    set size to (175) %\n    go to x: (0) y: (0)\n    repeat (5)\n        start sound [ポップ v]\n        change [mosaic v] effect by (-20)\n        wait (0.5) seconds\n    end\n    clear graphic effects\n    repeat (50)\n        change [color v] effect by (2)\n    end\n    clear graphic effects\n    set [回転 v] to [0]\n    repeat until <(size) = [5]>\n        change size by (-5)\n        turn right (回転) degrees\n        change [回転 v] by ((回転) + (0.5))\n    end\n    point in direction (90)\n    hide\n    wait (0.5) seconds\n    show\n    set y to (29)\n    change [brightness v] effect by (-29)\n    repeat until <(size) = [150]>\n        change [brightness v] effect by (1)\n        change y by (-1)\n        change size by (5)\n    end\n    wait (1) seconds\n    clear graphic effects\n    repeat (10)\n        change y by (-5)\n        change size by (-5)\n    end\n    broadcast (オープニングキュー出し v)\nelse\n    broadcast (オープニングキュー出し v)\n    hide\nend\n\nwhen I receive [オープニング終了 v]\nhide\n\nif <(OPスキップ) = [0]> then\nelse\n    hide\nend\n\n@フォロー画像\n\nwhen flag clicked\nswitch costume to (コメント 2020-07-08 111158 v)\nset size to (75) %\nhide\n\nwhen I receive [オープニングキュー出し v]\nif <(OPスキップ) = [0]> then\n    point in direction (90)\n    set y to (75)\n    wait (1) seconds\n    show\n    wait (2) seconds\n    switch costume to (コメント 2020-07-08 111526 v)\n    change size by (10)\n    wait (0.1) seconds\n    change size by (-10)\n    wait (1) seconds\n    change y by (-10)\n    switch costume to (コスチューム1 v)\n    repeat (48)\n        turn right (7.5) degrees\n    end\n    change size by (10)\n    wait (0.1) seconds\n    change size by (-10)\n    wait (6) seconds\n    broadcast (オープニング終了 v)\n    hide\nelse\n    broadcast (オープニング終了 v)\n    hide\nend\n\n@疑似マウス\n\nwhen flag clicked\nset size to (150) %\nhide\n\nwhen I receive [オープニングキュー出し v]\nif <(OPスキップ) = [0]> then\n    show\n    go to x: (180) y: (-140)\n    wait (2) seconds\n    glide (1) secs to (フォロー画像 v)\n    wait (1) seconds\n    hide\nelse\n    hide\nend\n\n@3D GIF MAKER aikon\n\nwhen flag clicked\nset [オープニング判定 v] to [0]\ngo to x: (0) y: (140)\nhide\nset size to (25) %\n\nwhen I receive [オープニングキュー出し v]\nif <(OPスキップ) = [0]> then\n    switch costume to (3dgifmaker52 v)\n    show\n    repeat until <(オープニング判定) = [1]>\n        next costume\n    end\nelse\n    hide\nend\n\nwhen I receive [オープニング終了 v]\nif <(OPスキップ) = [0]> then\n    set [オープニング判定 v] to [1]\n    switch costume to (3dgifmaker52 v)\n    hide\n    wait (1) seconds\n    broadcast (substart v)\nelse\n    broadcast (substart v)\n    hide\nend\n\n@サムネ\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (コスチューム2 v)\npoint in direction (90)\nrepeat (20)\n    change size by (5)\n    change [ghost v] effect by (3.5)\nend\ndelete this clone\n\nwhen I receive [subsubstart v]\ngo to x: (0) y: (35)\nshow\nclear graphic effects\nset size to (50) %\ngo to [front v] layer\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\n\n@サムネ2\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [substart v]\nshow\n\nwhen I receive [start v]\nhide\n\n@サムネ3\n\nwhen flag clicked\nhide\n\nwhen I receive [substart v]\ngo to x: (0) y: (35)\nshow\n\nwhen I receive [start v]\nhide\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (0) y: (-100)\nhide\n\nwhen I receive [substart v]\nset size to (100) %\nclear graphic effects\nset [start v] to [0]\nshow\nrepeat until <(start) = [1]>\n    if <touching (mouse-pointer v)?> then\n        set size to (125) %\n        if <mouse down?> then\n            broadcast (subsubstart v)\n            set [start v] to [1]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (-10)\n            end\n            wait (1) seconds\n            broadcast (start v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@隕石\n\nwhen flag clicked\ngo to x: (0) y: (200)\nswitch costume to (コスチューム1 v)\n\nwhen I receive [go next v]\nshow\nnext costume\nif <(stage) = [7]> then\n    go to x: (0) y: (200)\n    repeat until <not <(stage) = [7]>>\n        change y by (-10)\n        if <[-190] > (y position)> then\n            go to x: (0) y: (200)\n        end\n    end\nelse\n    if <(stage) = [9]> then\n        go to x: (200) y: (200)\n        repeat until <not <(stage) = [9]>>\n            change y by (-7)\n            if <[-190] > (y position)> then\n                go to x: (200) y: (200)\n            end\n        end\n    end\nend\n\n@隕石2\n\nwhen flag clicked\ngo to x: (125) y: (200)\nswitch costume to (コスチューム1 v)\n\nwhen I receive [go next v]\nshow\nnext costume\nif <(stage) = [7]> then\n    go to x: (125) y: (200)\n    repeat until <not <(stage) = [7]>>\n        change y by (-10)\n        if <[-190] > (y position)> then\n            go to x: (125) y: (200)\n        end\n    end\nend\n\n@回転\n\nwhen I receive [go next v]\npoint in direction (90)\nshow\nnext costume\nrepeat until <not <(stage) = [8]>>\n    turn left (5) degrees\nend\n\nwhen flag clicked\ngo to x: (0) y: (-50)\nswitch costume to (コスチューム2 v)\n\n@フォロー\n\nwhen I receive [1 v]\nshow\nset size to (7) %\ngo to x: (-130) y: (-50)\nrepeat (7)\n    change size by (7)\nend\nforever\n    wait (0.07) seconds\n    repeat (7)\n        change size by (1)\n    end\n    repeat (7)\n        change size by (-1)\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    switch costume to (コスチューム2 v)\n    say [本当のフォローもしてくださいね!!] for (3) seconds\nend\nif <(costume [number v]) = [2]> then\n    say [フォロー外さないで…!!] for (3) seconds\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nhide\nswitch costume to (コスチューム1 v)\n\n@mozi\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\ngo [backward v] (1) layers\ngo to [front v] layer\nhide\n\nwhen I receive [1 v]\nshow\ngo to x: (300) y: (130)\nrepeat (30)\n    change x by (-11)\nend\nwait (0.1) seconds\nrepeat (10)\n    change x by (3)\nend\n\n@3dgifmaker52\n\nwhen [timer v] > (0)\nshow\nset size to (1) %\ngo to x: (87) y: (-50)\nrepeat (33)\n    change size by (2)\nend\nwait (1) seconds\nbroadcast (1 v)\nforever\n    wait (0.07) seconds\n    repeat (7)\n        change size by (1)\n    end\n    repeat (7)\n        change size by (-1)\n    end\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\ngo [backward v] (2) layers\nswitch costume to (3dgifmaker52 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\n\n@スプライト1\n\nwhen I receive [1 v]\nshow\nrepeat (10)\n    change y by (3)\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\ngo [backward v] (3) layers\ngo to x: (-130) y: (-170)\nhide\n\nwhen flag clicked\nset size to (100) %\nhide\n\n@スプライト4\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\nhide variable [タイム v]\nhide variable [☁ 世界最高タイム v]\nhide variable [あなたの最高タイム v]\ngo to [front v] layer\ngo [backward v] (4) layers\ngo to x: (0) y: (0)\nshow\n\n@スプライト2\n\nwhen I receive [substart v]\nset size to (75) %\ngo to x: (-150) y: (-140)\nshow\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\n\n@Arrow1\n\nwhen I receive [ボタンに触れた\(スマホ\) v]\nshow\nrepeat until <not <(パスコード入力中) = [1]>>\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        add [↑] to [パスコード v]\n        wait (0.1) seconds\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@Arrow2\n\nwhen I receive [ボタンに触れた\(スマホ\) v]\nshow\nrepeat until <not <(パスコード入力中) = [1]>>\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        add [↓] to [パスコード v]\n        wait (0.1) seconds\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@Arrow3\n\nwhen I receive [ボタンに触れた\(スマホ\) v]\nshow\nrepeat until <not <(パスコード入力中) = [1]>>\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        add [→] to [パスコード v]\n        wait (0.1) seconds\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@Arrow4\n\nwhen flag clicked\nhide\n\nwhen I receive [ボタンに触れた\(スマホ\) v]\nshow\nrepeat until <not <(パスコード入力中) = [1]>>\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        add [←] to [パスコード v]\n        wait (0.1) seconds\n    end\nend\nhide\n\n@スプライト5\n\nwhen I receive [ボタンに触れた\(スマホ\) v]\nhide list [パスコード v]\nshow\nrepeat until <not <(パスコード入力中) = [1]>>\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(stage) = [3]> then\n            if <<<<(item (1) of [パスコード v]) = [→]> and <(item (2) of [パスコード v]) = [↓]>> and <(item (3) of [パスコード v]) = [→]>> and <(item (4) of [パスコード v]) = [←]>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去 v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n        if <(stage) = [4]> then\n            if <<<<(item (1) of [パスコード v]) = [←]> and <(item (2) of [パスコード v]) = [↑]>> and <(item (3) of [パスコード v]) = [←]>> and <(item (4) of [パスコード v]) = [→]>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去\(障害物\) v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n        if <(stage) = [6]> then\n            if <<<<<(item (1) of [パスコード v]) = [↑]> and <(item (2) of [パスコード v]) = [←]>> and <(item (3) of [パスコード v]) = [↓]>> and <(item (4) of [パスコード v]) = [→]>> and <<<<(item (5) of [パスコード v]) = [→]> and <(item (6) of [パスコード v]) = [↓]>> and <(item (7) of [パスコード v]) = [←]>> and <(item (8) of [パスコード v]) = [↑]>>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去\(障害物\) v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n        if <(stage) = [10]> then\n            if <<<<<(item (1) of [パスコード v]) = [↑]> and <(item (2) of [パスコード v]) = [↓]>> and <(item (3) of [パスコード v]) = [↑]>> and <(item (4) of [パスコード v]) = [↓]>> and <<<<(item (5) of [パスコード v]) = [→]> and <(item (6) of [パスコード v]) = [←]>> and <(item (7) of [パスコード v]) = [→]>> and <(item (8) of [パスコード v]) = [←]>>> then\n                think []\n                think [セイカイ　デス] for (2) seconds\n                broadcast (ボタン消去\(障害物\) v)\n                hide\n                show list [パスコード v]\n                set [パスコード入力中 v] to [0]\n            else\n                think []\n                think [パスワード　ガ　チガイマス] for (2) seconds\n                broadcast (ボタンに触れた v)\n            end\n        end\n    end\nend\nhide\nshow list [パスコード v]\n\nwhen flag clicked\nhide\n\n