Zelda × platformer 「鏡の真敵」　ゼルダの伝説
@Stage\n\nwhen flag clicked\nerase all\nset volume to (100) %\nforever\n    play sound [2 v] until done\nend\n\nwhen flag clicked\nset [タイム v] to [0]\nhide variable [☁ 世界記録 v]\nhide variable [タイム v]\nwait (0.01) seconds\nforever\n    if <not <(背景) = [14]>> then\n        wait (1) seconds\n        change [タイム v] by (1)\n    end\nend\n\nwhen flag clicked\nset [タイム v] to [0]\nforever\n    if <(背景) = [14]> then\n        if <(タイム) < (☁ 世界記録)> then\n            set [☁ 世界記録 v] to (タイム)\n            show variable [☁ 世界記録 v]\n            show variable [タイム v]\n        end\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nwait until <(背景) = [13]>\nstop [other scripts in sprite v]\nrepeat (50)\n    change volume by (-1)\nend\n\nwhen I receive [ダークリンク v]\nstop all sounds\nset volume to (100) %\nforever\n    play sound [37 - Middle Boss Battle v] until done\nend\n\nwhen I receive [煙幕 v]\nforever\n    repeat until <(ダークリンクやられた？) = [yes]>\n        repeat (50)\n            change [whirl v] effect by (5)\n            change [brightness v] effect by (-2)\n        end\n        set [whirl v] effect to (250)\n        wait (5) seconds\n        repeat (50)\n            change [whirl v] effect by (-5)\n            change [brightness v] effect by (2)\n        end\n        set [whirl v] effect to (0)\n        wait (1) seconds\n    end\n    repeat (10)\n        change volume by (-10)\n    end\n    stop [other scripts in sprite v]\n    stop all sounds\n    wait until <(背景) = [14]>\n    set volume to (100) %\n    set [whirl v] effect to (0)\n    set [brightness v] effect to (0)\n    forever\n        play sound [81 - Ocarina Of Time v] until done\n    end\nend\n\n@リンク\n\nwhen I receive [死んだ v]\nwait (0.2) seconds\nset [ghost v] effect to (0)\nshow\nset size to (310) %\nset [brightness v] effect to (0)\n\nwhen I receive [再機能 v]\nset [y v] to [0]\npoint in direction (90)\nset [x座標 v] to [0]\nset rotation style [left-right v]\ngo to x: (-211) y: (-20)\nforever\n    if <touching (トゲ v)?> then\n        broadcast (死んだ０ v)\n        stop [other scripts in sprite v]\n        repeat (20)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (5)\n        end\n        hide\n        wait (1) seconds\n        broadcast (死んだ v)\n    end\n    if <touching (ガーディアンビーム v)?> then\n        if <not <(costume [number v]) = [4]>> then\n            broadcast (死んだ０ v)\n            stop [other scripts in sprite v]\n            repeat (20)\n                change [ghost v] effect by (5)\n                change [brightness v] effect by (5)\n            end\n            hide\n            wait (1) seconds\n            broadcast (死んだ v)\n        end\n    end\n    if <<<touching (敵 v)?> and <[yes] = (ボコブリン攻撃してる？)>> or <<<touching (敵2 v)?> and <[yes] = (チュチュ攻撃してる？)>> or <touching (マスターソードブラック v)?>>> then\n        if <not <(costume [number v]) = [4]>> then\n            broadcast (死んだ０ v)\n            stop [other scripts in sprite v]\n            repeat (20)\n                change [ghost v] effect by (5)\n                change [brightness v] effect by (5)\n            end\n            hide\n            wait (1) seconds\n            broadcast (死んだ v)\n        end\n    end\nend\n\nwhen I receive [再機能 v]\ngo to [back v] layer\nwait (0.01) seconds\ngo [forward v] (1) layers\nshow\nforever\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        if <not <<key (m v) pressed?> or <key (n v) pressed?>>> then\n            if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n                switch costume to (right2 v)\n                point in direction (-90)\n                wait (0.08) seconds\n            end\n            if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n                switch costume to (right1 v)\n                wait (0.08) seconds\n            end\n        end\n    else\n        if <not <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>>> then\n            switch costume to (right2 v)\n        end\n    end\n    if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        if <not <<key (m v) pressed?> or <key (n v) pressed?>>> then\n            if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n                switch costume to (right2 v)\n                wait (0.08) seconds\n                point in direction (90)\n            end\n            if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n                switch costume to (right1 v)\n                wait (0.08) seconds\n            end\n        end\n    else\n        if <not <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n            switch costume to (right2 v)\n            wait (0.08) seconds\n        end\n    end\n    if <<key (m v) pressed?> or <key (n v) pressed?>> then\n        switch costume to (right2 v)\n        if <(x position) < (mouse x)> then\n            point in direction (90)\n        end\n        if <(mouse x) < (x position)> then\n            point in direction (-90)\n        end\n    end\n    if <key (space v) pressed?> then\n        if <not <<key (m v) pressed?> or <key (n v) pressed?>>> then\n            start sound [MC_Link_Sword1 v]\n            switch costume to (attackright1 v)\n            broadcast (剣 v)\n            wait (0.3) seconds\n            switch costume to (right2 v)\n            wait (0.15) seconds\n        end\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        if <not <<key (m v) pressed?> or <key (n v) pressed?>>> then\n            switch costume to (right3 v)\n            wait (0.4) seconds\n            switch costume to (right2 v)\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen I receive [再機能 v]\nset [y v] to [0]\npoint in direction (90)\nset [x座標 v] to [0]\nset rotation style [left-right v]\ngo to x: (-211) y: (0)\nforever\n    go to (リンクの動き v)\nend\n\nwhen I receive [再機能 v]\nforever\n    if <[235] < (x position)> then\n        broadcast (次のステージ v)\n        hide\n        go to x: (-211) y: (-20)\n        wait (2) seconds\n        show\n    end\nend\n\n@リンクの動き\n\nwhen I receive [次のステージ v]\ngo to x: (-211) y: (-94)\nstop [other scripts in sprite v]\nwait (2.6) seconds\nbroadcast (再機能 v)\n\nwhen I receive [再機能 v]\nshow\nset [y v] to [0]\npoint in direction (90)\nset [x座標 v] to [0]\nset rotation style [left-right v]\nforever\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        if <<not <([costume # v] of [リンク v]) = [4]>> and <not <([costume # v] of [リンク v]) = [3]>>> then\n            if <<key (n v) pressed?> or <key (m v) pressed?>> then\n                change [x座標 v] by (-0.3)\n            else\n                change [x座標 v] by (-2.1)\n            end\n        end\n    else\n        if <not <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n    end\n    if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        if <<not <([costume # v] of [リンク v]) = [4]>> and <not <([costume # v] of [リンク v]) = [3]>>> then\n            if <<key (m v) pressed?> or <key (n v) pressed?>> then\n                change [x座標 v] by (0.3)\n            else\n                change [x座標 v] by (2.1)\n            end\n        end\n    else\n        if <not <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n    end\n    set [x座標 v] to ((0.75) * (X座標))\n    change x by (X座標)\nend\n\nwhen flag clicked\ngo to x: (-211) y: (0)\nbroadcast (再機能 v)\n\nwhen I receive [死んだ v]\ngo to x: (-211) y: (-20)\n\nwhen I receive [死んだ０ v]\nstop [other scripts in sprite v]\n\nwhen I receive [死んだ v]\nbroadcast (再機能 v)\n\nwhen I receive [再機能 v]\nset rotation style [left-right v]\nforever\n    point in direction ([direction v] of [リンク v])\nend\n\nwhen I receive [再機能 v]\nset [y v] to [0]\npoint in direction (90)\nset [x座標 v] to [0]\nset rotation style [left-right v]\nforever\n    if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or <<touching (動く地形 v)?> or <touching (謎解きで動く仕掛け v)?>>>> then\n        change y by (3)\n    end\n    if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or <<touching (動く地形 v)?> or <touching (謎解きで動く仕掛け v)?>>>> then\n        change y by (3)\n    end\n    if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or <<touching (動く地形 v)?> or <touching (謎解きで動く仕掛け v)?>>>> then\n        change y by (3)\n    end\n    if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or <<touching (動く地形 v)?> or <touching (謎解きで動く仕掛け v)?>>>> then\n        change y by (3)\n    end\n    if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or <<touching (動く地形 v)?> or <touching (謎解きで動く仕掛け v)?>>>> then\n        change y by (-12)\n        change x by ((X座標) * (-1))\n    end\n    change [y v] by (-1.5)\n    change y by (Y)\n    if <<touching (爆発で壊れる地形 v)?> or <<touching (地面 v)?> or <<touching (動く地形 v)?> or <touching (謎解きで動く仕掛け v)?>>>> then\n        change y by ((Y) - ((Y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-3)\n    if <<touching (地面 v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        set [y v] to [17]\n    end\n    change y by (3)\n    set [ghost v] effect to (100)\nend\n\nwhen I receive [再機能 v]\nforever\n    if <touching (動く地形 v)?> then\n        change y by (4)\n    end\nend\n\nwhen I receive [再機能 v]\nforever\n    if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or >> then\n        wait (5) seconds\n        if <<touching (地面 v)?> or <<touching (爆発で壊れる地形 v)?> or >> then\n            go to x: (-211) y: (0)\n        end\n    end\nend\n\nwhen [timer v] > (0.01)\nhide\n\n@マスターソード\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\nforever\n    point in direction ([direction v] of [リンク v])\n    go to (リンク v)\nend\n\nwhen I receive [剣 v]\nshow\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nhide\n\nwhen I start as a clone\nshow\nrepeat (5)\n    move (12) steps\n    if <touching (マスターソードブラック v)?> then\n        wait (0.1) seconds\n        delete this clone\n    end\nend\ndelete this clone\n\n@地面\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nshow\ngo to x: (0) y: (0)\nset [背景 v] to [1]\n\nwhen I receive [nxet2 v]\nnext costume\nchange [背景 v] by (1)\n\nwhen I receive [ダークリンク v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(背景) = [13]> then\n    set [ghost v] effect to (100)\n    switch costume to (コスチューム14 v)\n    repeat (10)\n        change [ghost v] effect by (-9)\n    end\n    wait until <(ダークリンクやられた？) = [yes]>\n    repeat (10)\n        change [ghost v] effect by (9)\n    end\n    delete this clone\nend\n\n@爆発で壊れる地形\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\nset [pixelate v] effect to (0)\nshow\ngo to [back v] layer\n\nwhen I receive [nxet2 v]\nshow\nnext costume\nset [pixelate v] effect to (0)\nset [ghost v] effect to (15)\n\nwhen flag clicked\nforever\n    if <<touching (爆弾矢 v)?> or <<touching (ボム v)?> and <(ボム爆発) = [yes]>>> then\n        wait (0.2) seconds\n        start sound [Crunch v]\n        repeat (10)\n            change [pixelate v] effect by (3)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [死んだ v]\nshow\nset [pixelate v] effect to (0)\nset [ghost v] effect to (15)\n\n@動く地形\n\nwhen flag clicked\nhide\n\nwhen I receive [再機能 v]\nif <(背景) = [10]> then\n    show\n    repeat until <(背景) = [11]>\n        if <(動く地形動いてもいい？) = [yes]> then\n            go to x: (144) y: (-135)\n            change y by (0.5)\n            change y by (1)\n            repeat (2)\n                change y by (3)\n            end\n            repeat (40)\n                change y by (4)\n            end\n            change y by (0.5)\n            change y by (1)\n            repeat (2)\n                change y by (3)\n            end\n            change y by (-0.5)\n            change y by (-1)\n            repeat (2)\n                change y by (-3)\n            end\n            repeat (40)\n                change y by (-4)\n            end\n            change y by (-0.5)\n            change y by (-1)\n            repeat (2)\n                change y by (-3)\n            end\n        else\n            go to x: (144) y: (-135)\n        end\n    end\n    hide\nend\n\n@謎解きで動く仕掛け\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nshow\n\nwhen I receive [nxet2 v]\nnext costume\ngo to x: (0) y: (0)\n\nwhen I receive [謎解きクリア v]\nwait (0.3) seconds\nrepeat (7)\n    change x by (1.5)\nend\nwait (0.5) seconds\nrepeat (46)\n    change y by (6)\nend\n\nwhen I receive [死んだ v]\nstop [other scripts in sprite v]\ngo to x: (0) y: (0)\n\n@トゲ\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nshow\nset [背景 v] to [1]\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nshow\n\nwhen I receive [nxet2 v]\nnext costume\nwait (0.1) seconds\nif <(背景) = [9]> then\n    hide\nend\nif <(背景) = [10]> then\n    show\nend\n\nwhen I receive [矢仕掛け v]\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [死んだ v]\nif <(背景) = [9]> then\n    set [ghost v] effect to (0)\n    hide\nend\n\n@ボム\n\nwhen flag clicked\nset [yb v] to [0]\nhide\nforever\n    if <<touching (地面 v)?> or <<touching (動く地形 v)?> or <touching (感圧板 v)?>>> then\n        change y by (2)\n    end\n    if <<touching (地面 v)?> or <<touching (動く地形 v)?> or >> then\n        change y by (2)\n    end\n    if <<touching (地面 v)?> or <<touching (動く地形 v)?> or >> then\n        change y by (2)\n    end\n    if <<touching (地面 v)?> or <<touching (動く地形 v)?> or >> then\n        change y by (2)\n    end\n    if <<touching (地面 v)?> or <<touching (動く地形 v)?> or >> then\n        change x by ((X座標) * (-1))\n        change y by (-8)\n    end\n    change [yb v] by (-0.7)\n    change y by (YB)\n    if <<touching (地面 v)?> or <<touching (動く地形 v)?> or >> then\n        change y by ((YB) - ((YB) * (2)))\n        set [yb v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (b v) pressed?> and <not <<key (n v) pressed?> and <key (b v) pressed?>>>> then\n        set [yb v] to [0]\n        set [ghost v] effect to (0)\n        point in direction ([direction v] of [リンク v])\n        go to (リンク v)\n        set rotation style [left-right v]\n        set size to (55) %\n        show\n        set [brightness v] effect to (0)\n        repeat (35)\n            switch costume to (explode-05-june\[28 v)\n            wait (0.01) seconds\n            change [brightness v] effect by (0.8)\n            switch costume to (explode-05-june\[29 v)\n            wait (0.01) seconds\n            change [brightness v] effect by (0.8)\n        end\n        switch costume to (explode-05-june\[2 v)\n        set [brightness v] effect to (0)\n        set size to (80) %\n        set [brightness v] effect to (10)\n        start sound [attack v]\n        set [ボム爆発 v] to [yes]\n        broadcast (ボム爆発 v)\n        repeat (22)\n            create clone of (_myself_ v)\n            change [brightness v] effect by (-5)\n            change [ghost v] effect by (2)\n            create clone of (_myself_ v)\n        end\n        hide\n        wait (0.8) seconds\n        set [ボム爆発 v] to [no]\n    end\nend\n\nwhen I start as a clone\npoint in direction (pick random (-120) to (120))\nswitch costume to (pick random (3) to (6))\nset size to (pick random (60) to (100)) %\nrepeat (pick random (2) to (4))\n    move (12) steps\nend\ndelete this clone\n\nwhen I receive [次のステージ v]\nhide\n\n@ボムの煙\n\nwhen I receive [ボム爆発 v]\nrepeat (12)\n    create clone of (_myself_ v)\n    wait (0.04) seconds\nend\n\nwhen I start as a clone\npoint in direction (pick random (90) to (-90))\ngo to (ボム v)\nshow\nset size to (pick random (80) to (35)) %\nset [ghost v] effect to (pick random (60) to (35))\nrepeat until <[170] < (y position)>\n    turn right (5) degrees\n    change y by (3.3)\n    change x by ((3) * ([cos v] of (direction) ))\nend\nrepeat (20)\n    change size by (2)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\n@弓\n\nwhen I receive [再機能 v]\nforever\n    if <<key (n v) pressed?> and <not <<key (n v) pressed?> and <key (b v) pressed?>>>> then\n        show\n        wait until <not <key (n v) pressed?>>\n        create clone of (矢 v)\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen I receive [再機能 v]\nforever\n    go to (リンク v)\n    point in direction ([direction v] of [リンク v])\n    point towards (標準 v)\nend\n\nwhen I receive [死んだ０ v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@矢\n\nwhen I start as a clone\npoint in direction ([direction v] of [弓 v])\nset [矢向き v] to (([direction v] of [弓 v]) / (direction))\nstart sound [MC_Link_Sword1 v]\ngo to (弓 v)\nshow\nmove (25) steps\nrepeat until <<<[240] < (x position)> or <(x position) < [-240]>> or <<<touching (地面 v)?> or <touching (謎解きで動く仕掛け v)?>> or <<touching (爆発で壊れる地形 v)?> or <touching (弓矢で動くスイッチ v)?>>>>\n    if <(y position) > [180]> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\n    move (25) steps\n    if <([direction v] of [リンク v]) = [90]> then\n        turn right (1) degrees\n    else\n        turn left (1) degrees\n    end\nend\nwait (0.1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@標準\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <<key (m v) pressed?> or <key (n v) pressed?>> then\n        show\n        go to [front v] layer\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\nend\n\n@爆弾弓\n\nwhen I receive [再機能 v]\nforever\n    go to (リンク v)\n    point in direction ([direction v] of [リンク v])\n    point towards (標準 v)\nend\n\nwhen I receive [再機能 v]\nforever\n    if <key (m v) pressed?> then\n        show\n        wait until <not <key (m v) pressed?>>\n        create clone of (爆弾矢 v)\n        hide\n        wait (2) seconds\n    end\nend\n\nwhen I receive [死んだ０ v]\nstop [other scripts in sprite v]\nhide\n\n@爆弾矢\n\nwhen I start as a clone\npoint in direction ([direction v] of [弓 v])\nset [矢向き v] to (([direction v] of [弓 v]) / (direction))\nstart sound [MC_Link_Sword1 v]\ngo to (弓 v)\nswitch costume to (コスチューム1 v)\nshow\nrepeat until <<<touching (地面 v)?> or <touching (謎解きで動く仕掛け v)?>> or <<touching (爆発で壊れる地形 v)?> or <<<touching (敵2 v)?> or <<touching (敵 v)?> or <touching (ガーディアン v)?>>> or <touching (弓矢で動くスイッチ v)?>>>>\n    if <<(x position) > [220]> or <[155] < (y position)>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\n    move (25) steps\n    if <([direction v] of [リンク v]) = [90]> then\n        turn right (2.4) degrees\n    else\n        turn left (2.4) degrees\n    end\n    if <<[240] < (x position)> or <(x position) < [-240]>> then\n        wait (0.1) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\nwait (0.3) seconds\nswitch costume to (コスチューム5 v)\nstart sound [attack v]\nset [ghost v] effect to (0)\nrepeat (5)\n    change [brightness v] effect by (-20)\n    change size by (30)\nend\nwait (0.1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@弓矢で動くスイッチ\n\nwhen I receive [nxet2 v]\nwait (0.1) seconds\nif <[4] = (背景)> then\n    point in direction (90)\n    set [ghost v] effect to (15)\n    go to x: (187) y: (100)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    broadcast (謎解きクリア v)\n    hide\nend\nif <[7] = (背景)> then\n    point in direction (-90)\n    go to x: (-192) y: (112)\n    set [ghost v] effect to (15)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (火の玉登場 v)\nend\nif <[11] = (背景)> then\n    point in direction (90)\n    go to x: (188) y: (118)\n    set [ghost v] effect to (15)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (謎解きクリア v)\nend\nif <[9] = (背景)> then\n    point in direction (-90)\n    go to x: (-192) y: (112)\n    set [ghost v] effect to (15)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (矢仕掛け v)\n    wait (1) seconds\n    point in direction (180)\n    go to x: (168) y: (75)\n    set [ghost v] effect to (100)\n    switch costume to (コスチューム2 v)\n    show\n    repeat (10)\n        change [ghost v] effect by (-8.5)\n    end\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (謎解きクリア v)\nend\nif <(背景) = [12]> then\n    forever\n        wait until <(弓スイッチ出現？) = [yes]>\n        go to x: (188) y: (110)\n        set [ghost v] effect to (100)\n        switch costume to (コスチューム2 v)\n        wait (1) seconds\n        repeat (5)\n            change [ghost v] effect by (-17)\n        end\n        show\n        repeat until <(弓スイッチ出現？) = [no]>\n            if <<touching (爆弾矢 v)?> or <touching (矢 v)?>> then\n                broadcast (謎解きクリア v)\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                hide\n                stop [this script v]\n            end\n        end\n        wait until <(弓スイッチ出現？) = [no]>\n        wait (1) seconds\n        repeat (5)\n            change [ghost v] effect by (17)\n        end\n        hide\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nhide\n\nwhen I receive [再機能 v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\nif <[4] = (背景)> then\n    point in direction (90)\n    set [ghost v] effect to (15)\n    go to x: (187) y: (100)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    broadcast (謎解きクリア v)\n    hide\nend\nif <[7] = (背景)> then\n    stop [other scripts in sprite v]\n    point in direction (-90)\n    go to x: (-193) y: (120)\n    set [ghost v] effect to (15)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (火の玉登場 v)\nend\nif <[9] = (背景)> then\n    stop [other scripts in sprite v]\n    point in direction (-90)\n    go to x: (-192) y: (112)\n    set [ghost v] effect to (15)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (矢仕掛け v)\n    wait (1) seconds\n    point in direction (180)\n    go to x: (168) y: (75)\n    set [ghost v] effect to (100)\n    switch costume to (コスチューム2 v)\n    show\n    repeat (10)\n        change [ghost v] effect by (-8.5)\n    end\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (謎解きクリア v)\nend\nif <[11] = (背景)> then\n    point in direction (90)\n    go to x: (188) y: (118)\n    set [ghost v] effect to (15)\n    switch costume to (コスチューム2 v)\n    show\n    wait until <<touching (爆弾矢 v)?> or <touching (矢 v)?>>\n    switch costume to (コスチューム3 v)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    broadcast (謎解きクリア v)\nend\nif <(背景) = [12]> then\n    forever\n        wait until <(弓スイッチ出現？) = [yes]>\n        set [ghost v] effect to (100)\n        go to x: (-129) y: (139)\n        switch costume to (コスチューム2 v)\n        show\n        wait (1) seconds\n        repeat (5)\n            change [ghost v] effect by (-17)\n        end\n        repeat until <(弓スイッチ出現？) = [no]>\n            if <<touching (爆弾矢 v)?> or <touching (矢 v)?>> then\n                broadcast (謎解きクリア v)\n                switch costume to (コスチューム3 v)\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                hide\n                stop [this script v]\n            end\n        end\n        wait until <(弓スイッチ出現？) = [no]>\n        wait (1) seconds\n        repeat (5)\n            change [ghost v] effect by (17)\n        end\n        hide\n        set [ghost v] effect to (100)\n    end\nend\n\n@演出\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.05) to (0.2)) seconds\nend\n\nwhen I start as a clone\nshow\nchange size by (6)\nset [ghost v] effect to (pick random (26) to (80))\ngo to x: (pick random (-241) to (241)) y: (-181)\nset size to (pick random (75) to (116)) %\nrepeat until <(y position) > (pick random (175) to (145))>\n    change y by ((2) * ((size) / (35)))\nend\nrepeat (20)\n    change size by (2)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (リンク v)?> then\n        change size by (4)\n        change [ghost v] effect by (4)\n    end\nend\n\n@NXET演出\n\nwhen I receive [次のステージ v]\n[0] NEXT\ncreate clone of (_myself_ v)\nwait (0.15) seconds\n[20] NEXT\ncreate clone of (_myself_ v)\nwait (0.15) seconds\n[40] NEXT\ncreate clone of (_myself_ v)\nwait (0.15) seconds\n[60] NEXT\ncreate clone of (_myself_ v)\nwait (0.2) seconds\ncreate clone of (_myself_ v)\nwait (0.2) seconds\n[70] NEXT\ncreate clone of (_myself_ v)\nwait (0.28) seconds\nbroadcast (NXET2 v)\ncreate clone of (_myself_ v)\nwait (0.28) seconds\n\ndefine (明るさ) NEXT\nset [brightness v] effect to (明るさ)\n\nwhen I start as a clone\ngo to [front v] layer\nset [ghost v] effect to (0)\nswitch costume to (コスチューム1 v)\nset size to (1) %\ngo [backward v] (1) layers\nshow\nrepeat (40)\n    change size by (150)\nend\nrepeat (30)\n    change size by (150)\n    change [ghost v] effect by (4)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [次のステージ v]\nset size to (100) %\nset [ghost v] effect to (100)\nshow\nswitch costume to (コスチューム2 v)\nset [brightness v] effect to (0)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (NXET v)\nwait (2.3) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@NXET\n\nwhen I receive [nxet v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (100)\nwait (0.2) seconds\nrepeat (20)\n    go to [front v] layer\n    change [ghost v] effect by (-5)\nend\nwait (0.2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@敵\n\nwhen I receive [nxet2 v]\nset [yb v] to [0]\nset [xb v] to [0]\ngo to x: (120) y: (0)\nwait (0.1) seconds\nset rotation style [left-right v]\nif <<(背景) = [11]> or <<(背景) = [7]> or <(背景) = [5]>>> then\n    show\n    go to x: (120) y: (0)\n    set [hp v] to [13]\n    repeat until <<[1] > (HP)> or <(背景) = [6]>>\n        set [xb v] to [0]\n        if <(distance to [リンクの動き v]) < [93]> then\n            set [xb v] to [0]\n            if <([x position v] of [リンク v]) < (x position)> then\n                point in direction (90)\n                wait (1) seconds\n                set [ボコブリン攻撃してる？ v] to [yes]\n                repeat (4)\n                    if <<touching (リンク v)?> and <([costume # v] of [リンク v]) = [4]>> then\n                        repeat (2)\n                            change [xb v] by (200)\n                            next costume\n                        end\n                    else\n                        change [xb v] by (-55)\n                        next costume\n                    end\n                end\n                set [ボコブリン攻撃してる？ v] to [no]\n                wait (1) seconds\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                point in direction (-90)\n                wait (1) seconds\n                set [ボコブリン攻撃してる？ v] to [yes]\n                repeat (4)\n                    if <<touching (リンク v)?> and <([costume # v] of [リンク v]) = [4]>> then\n                        repeat (2)\n                            change [xb v] by (-200)\n                            next costume\n                        end\n                    else\n                        change [xb v] by (55)\n                        next costume\n                    end\n                end\n                set [ボコブリン攻撃してる？ v] to [no]\n                wait (1) seconds\n            end\n        else\n            if <([x position v] of [リンク v]) < (x position)> then\n                point in direction (90)\n                change [xb v] by (-5)\n                next costume\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                point in direction (-90)\n                change [xb v] by (5)\n                next costume\n            end\n        end\n    end\nend\n\nwhen I receive [nxet2 v]\nset [yb v] to [0]\nset [xb v] to [0]\ngo to x: (120) y: (0)\nwait (0.1) seconds\nset rotation style [left-right v]\nif <not <<<(背景) = [11]> or <(背景) = [7]>> or <(背景) = [5]>>> then\n    stop [other scripts in sprite v]\n    hide\nend\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nset [xb v] to [0]\nset [hp v] to [13]\nforever\n    if <touching (矢 v)?> then\n        set [yb v] to [7]\n        change [hp v] by (-2)\n        set [brightness v] effect to (20)\n        set [xb v] to [0]\n        if <([x position v] of [リンク v]) < (x position)> then\n            repeat (10)\n                change [xb v] by (20)\n            end\n        end\n        if <(x position) < ([x position v] of [リンク v])> then\n            repeat (10)\n                change [xb v] by (-20)\n            end\n        end\n        set [brightness v] effect to (0)\n        if <(HP) < [1]> then\n            repeat (20)\n                change [ghost v] effect by (-5)\n                hide\n            end\n        end\n        wait (0.2) seconds\n    end\n    if <touching (爆弾矢 v)?> then\n        set [yb v] to [7]\n        change [hp v] by (-2)\n        set [brightness v] effect to (20)\n        set [xb v] to [0]\n        if <([x position v] of [リンク v]) < (x position)> then\n            repeat (10)\n                change [xb v] by (23)\n            end\n        end\n        if <(x position) < ([x position v] of [リンク v])> then\n            repeat (10)\n                change [xb v] by (-23)\n            end\n        end\n        set [brightness v] effect to (0)\n        if <(HP) < [1]> then\n            repeat (20)\n                change [ghost v] effect by (-5)\n                hide\n            end\n        end\n        wait (0.2) seconds\n    end\n    if <touching (ボム v)?> then\n        if <(ボム爆発) = [yes]> then\n            set [yb v] to [7]\n            change [hp v] by (-4)\n            set [brightness v] effect to (20)\n            set [xb v] to [0]\n            if <([x position v] of [ボム v]) < (x position)> then\n                repeat (10)\n                    change [xb v] by (20)\n                end\n            end\n            if <(x position) < ([x position v] of [ボム v])> then\n                repeat (10)\n                    change [xb v] by (-20)\n                end\n            end\n            set [brightness v] effect to (0)\n            if <(HP) < [1]> then\n                repeat (20)\n                    change [ghost v] effect by (-5)\n                    hide\n                end\n            end\n            wait (0.2) seconds\n        end\n    end\n    if <touching (マスターソード v)?> then\n        set [yb v] to [7]\n        change [hp v] by (-2)\n        set [brightness v] effect to (20)\n        set [xb v] to [0]\n        if <([x position v] of [リンク v]) < (x position)> then\n            repeat (10)\n                change [xb v] by (20)\n            end\n        end\n        if <(x position) < ([x position v] of [リンク v])> then\n            repeat (10)\n                change [xb v] by (2-)\n            end\n        end\n        set [brightness v] effect to (0)\n        if <(HP) < [1]> then\n            repeat (20)\n                change [ghost v] effect by (-5)\n                hide\n            end\n        end\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [nxet2 v]\nset [yb v] to [0]\nset [xb v] to [0]\nforever\n    set [xb v] to ((XB) * (0.2))\n    change x by (XB)\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (-40)\n    end\n    change [yb v] by (-0.7)\n    change y by (YB)\n    if  then\n        change y by ((YB) - ((YB) * (2)))\n        set [yb v] to [0]\n    end\n    change y by (9)\n    change y by (-9)\nend\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nset [xb v] to [0]\nset [hp v] to [13]\nset [pixelate v] effect to (15)\nif <<(背景) = [7]> or <(背景) = [5]>> then\n    show\n    point in direction (-90)\n    go to x: (120) y: (0)\n    set [hp v] to [13]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nset [xb v] to [0]\ngo to x: (120) y: (0)\n\n@レーザー\n\nwhen I receive [ビーム発射用意 v]\nset volume to (100) %\nshow\nrepeat (20)\n    set instrument to (20 v)\n    next costume\n    play note (62) for (0.06) beats\n    wait (0.001) seconds\nend\nswitch costume to (コスチューム1 v)\nset instrument to (16 v)\nrepeat (17)\n    play note (58) for (0.06) beats\n    switch costume to (コスチューム1 v)\n    wait (0.001) seconds\nend\nbroadcast (ビーム発射 v)\nrepeat (3)\n    play note (58) for (0.06) beats\n    switch costume to (コスチューム1 v)\n    wait (0.001) seconds\nend\nhide\nset instrument to (20 v)\nplay note (65) for (0.5) beats\nstop [other scripts in sprite v]\nerase all\n\nwhen I receive [ビーム発射用意 v]\nshow\nset pen size to (4)\nrepeat (89)\n    set pen color to (#ee0000)\n    pen down\n    go to (ガーディアン v)\n    glide (0.02) secs to (リンク v)\n    erase all\n    pen down\n    pen down\n    go to (ガーディアン v)\n    glide (0.02) secs to (リンク v)\nend\n\nwhen I receive [nxet2 v]\nerase all\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [ガーディアン死んだ v]\nerase all\nhide\nstop [other scripts in sprite v]\n\n@ガーディアン\n\nwhen I receive [ビーム発射 v]\nswitch costume to (コスチューム1 v)\nrepeat (10)\n    next costume\n    wait (0.01) seconds\nend\nswitch costume to (コスチューム1 v)\nbroadcast (本当のビーム発射 v)\n\nwhen I receive [ガーディアンダメージ v]\nset [brightness v] effect to (100)\nchange [hp v] by (-500)\nset [brightness v] effect to (0)\nstart sound [爆発音（元Boom Cloud） v]\nif <(HP) < [1]> then\n    stop [other scripts in sprite v]\n    set size to (0) %\n    switch costume to (コスチューム12 v)\n    repeat (15)\n        change size by (10)\n        change [ghost v] effect by (5)\n        change [brightness v] effect by (-10)\n    end\n    hide\n    if <(背景) = [6]> then\n        broadcast (謎解きクリア v)\n    end\nelse\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    set [brightness v] effect to (0)\nend\n\nwhen flag clicked\nset size to (50) %\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nif <(背景) = [6]> then\n    go to x: (145) y: (-45)\n    show\nend\nif <(背景) = [10]> then\n    go to x: (-116) y: (75)\n    show\nend\nforever\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (10)\n    end\n    if  then\n        change y by (-40)\n    end\n    change [yb v] by (-0.7)\n    change y by (YB)\n    if <<touching (地面 v)?> or <touching (ボムの煙 v)?>> then\n        change y by ((YB) - ((YB) * (2)))\n        set [yb v] to [0]\n    end\nend\n\nwhen I receive [再機能 v]\nset [hp v] to [500]\n\nwhen I receive [ガーディアン死んだ v]\nif <(背景) = [6]> then\n    broadcast (謎解きクリア v)\nend\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nwait (0.1) seconds\nset rotation style [all around v]\nswitch costume to (コスチューム1 v)\nset size to (50) %\nset [ghost v] effect to (0)\nset [brightness v] effect to (0)\nhide\nif <(背景) = [6]> then\n    go to x: (145) y: (-45)\n    show\n    point in direction (90)\n    wait (3) seconds\n    repeat until <(背景) = [7]>\n        broadcast (ビーム発射用意 v)\n        wait (9) seconds\n    end\nend\nif <(背景) = [10]> then\n    show\n    go to x: (-116) y: (75)\n    point in direction (-165)\n    wait (3) seconds\n    repeat until <(背景) = [11]>\n        broadcast (ビーム発射用意 v)\n        wait (9) seconds\n    end\nend\nif <(背景) = [11]> then\n    show\n    go to x: (-160) y: (75)\n    point in direction (-90)\n    wait (3) seconds\n    repeat until <(背景) = [12]>\n        broadcast (ビーム発射用意 v)\n        wait (9) seconds\n    end\nend\nif <(背景) = [12]> then\n    show\n    go to x: (78) y: (45)\n    point in direction (-84)\n    wait (3) seconds\n    repeat until <(背景) = [13]>\n        broadcast (ビーム発射用意 v)\n        wait (9) seconds\n    end\nend\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nhide\nset [hp v] to [500]\nforever\n    if <touching (矢 v)?> then\n        set [yb v] to [3]\n        change [hp v] by (-2)\n        set [brightness v] effect to (20)\n        wait (0.2) seconds\n        set [brightness v] effect to (0)\n        if <(HP) < [1]> then\n            stop [other scripts in sprite v]\n            set size to (0) %\n            switch costume to (コスチューム12 v)\n            repeat (15)\n                change size by (10)\n                change [ghost v] effect by (5)\n                change [brightness v] effect by (-10)\n            end\n            broadcast (ガーディアン死んだ v)\n            hide\n        end\n    end\n    if <touching (爆弾矢 v)?> then\n        set [yb v] to [3]\n        change [hp v] by (-2)\n        set [brightness v] effect to (20)\n        wait (0.2) seconds\n        set [brightness v] effect to (0)\n        if <(HP) < [1]> then\n            stop [other scripts in sprite v]\n            set size to (0) %\n            switch costume to (コスチューム12 v)\n            repeat (15)\n                change size by (10)\n                change [ghost v] effect by (5)\n                change [brightness v] effect by (-10)\n            end\n            broadcast (ガーディアン死んだ v)\n            hide\n        end\n    end\n    if <touching (ボム v)?> then\n        if <(ボム爆発) = [yes]> then\n            set [yb v] to [3]\n            change [hp v] by (-4)\n            set [brightness v] effect to (20)\n            wait (0.2) seconds\n            set [brightness v] effect to (0)\n            if <(HP) < [1]> then\n                stop [other scripts in sprite v]\n                set size to (0) %\n                switch costume to (コスチューム12 v)\n                repeat (15)\n                    change size by (10)\n                    change [ghost v] effect by (5)\n                    change [brightness v] effect by (-10)\n                end\n                broadcast (ガーディアン死んだ v)\n                hide\n            end\n        end\n    end\n    if <touching (マスターソード v)?> then\n        set [yb v] to [3]\n        change [hp v] by (-2)\n        set [brightness v] effect to (20)\n        wait (0.2) seconds\n        set [brightness v] effect to (0)\n        if <(HP) < [1]> then\n            stop [other scripts in sprite v]\n            set size to (0) %\n            switch costume to (コスチューム12 v)\n            repeat (15)\n                change size by (10)\n                change [ghost v] effect by (5)\n                change [brightness v] effect by (-10)\n            end\n            broadcast (ガーディアン死んだ v)\n            hide\n        end\n    end\nend\n\n@ガーディアンビーム\n\nwhen I receive [本当のビーム発射 v]\ngo to (ガーディアン v)\nset [ghost v] effect to (0)\nswitch costume to (コスチューム1 v)\nset [brightness v] effect to (0)\npoint towards (リンク v)\nshow\nset pen color to (#00ffff)\npen down\nset pen size to (15)\nrepeat until <<<not <[4] = ([costume # v] of [リンク v])>> and <touching (リンク v)?>> or <<touching (地面 v)?> or <touching (_edge_ v)?>>>\n    move (42) steps\n    stamp\n    if <<[4] = ([costume # v] of [リンク v])> and <touching (リンク v)?>> then\n        broadcast (ビーム反射 v)\n        stop [this script v]\n    end\nend\nswitch costume to (コスチューム2 v)\nset size to (0) %\nerase all\nrepeat (20)\n    change size by (3)\n    change [brightness v] effect by (-5)\n    change [ghost v] effect by (2)\nend\nerase all\npen up\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [ビーム反射 v]\ngo to (リンク v)\nset [ghost v] effect to (0)\npoint towards (ガーディアン v)\nshow\nset pen color to (#00ffff)\npen down\nset pen size to (15)\nrepeat (3)\n    move (10) steps\n    stamp\nend\nrepeat until <<touching (ガーディアン v)?> or <touching (_edge_ v)?>>\n    move (42) steps\n    stamp\nend\nswitch costume to (コスチューム2 v)\nset size to (0) %\nbroadcast (ガーディアンダメージ v)\nrepeat (20)\n    change size by (3)\n    change [brightness v] effect by (-5)\n    change [ghost v] effect by (2)\nend\nswitch costume to (コスチューム1 v)\nrepeat (3)\n    move (42) steps\n    stamp\nend\nerase all\npen up\nhide\n\n@灯\n\nwhen I receive [nxet2 v]\nwait (0.1) seconds\nif <(背景) = [7]> then\n    show\n    repeat until <(背景) = [8]>\n        switch costume to (コスチューム1 v)\n        wait until <touching (火の玉 v)?>\n        broadcast (謎解きクリア v)\n        repeat until <(背景) = [8]>\n            switch costume to (コスチューム2 v)\n            wait (0.1) seconds\n            switch costume to (コスチューム3 v)\n            set [fisheye v] effect to (3)\n            wait (0.1) seconds\n            set [fisheye v] effect to (0)\n        end\n    end\nend\nhide\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [死んだ v]\nif <(背景) = [7]> then\n    show\n    repeat until <(背景) = [8]>\n        switch costume to (コスチューム1 v)\n        wait until <touching (火の玉 v)?>\n        broadcast (謎解きクリア v)\n        repeat until <(背景) = [8]>\n            switch costume to (コスチューム2 v)\n            wait (0.1) seconds\n            switch costume to (コスチューム3 v)\n            set [fisheye v] effect to (3)\n            wait (0.1) seconds\n            set [fisheye v] effect to (0)\n        end\n    end\nend\nhide\n\n@火の玉\n\nwhen I receive [火の玉登場 v]\nwait (0.05) seconds\nif <(背景) = [7]> then\n    show\n    set [ghost v] effect to (0)\n    go to x: (127) y: (88)\n    switch costume to (コスチューム1 v)\n    repeat until <(背景) = [8]>\n        if <not <touching (火の玉の縄 v)?>> then\n            repeat until <touching (地面 v)?>\n                change y by (-20)\n            end\n            repeat (6)\n                next costume\n            end\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@火の玉の縄\n\nwhen I receive [火の玉登場 v]\nwait (0.01) seconds\nif <(背景) = [7]> then\n    show\n    set [ghost v] effect to (0)\n    go to x: (127) y: (87)\n    switch costume to (コスチューム1 v)\n    repeat until <(背景) = [8]>\n        if <touching (矢 v)?> then\n            switch costume to (コスチューム2 v)\n            wait (1) seconds\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@広告\n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch costume to (zelda v)\nshow\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\ngo to [front v] layer\n\n@感圧板\n\nwhen I receive [nxet2 v]\nwait (0.1) seconds\nif <[10] = (背景)> then\n    repeat until <[11] = (背景)>\n        point in direction (90)\n        set [ghost v] effect to (15)\n        go to [back v] layer\n        if <<touching (ボム v)?> or <touching (リンク v)?>> then\n            set [動く地形動いてもいい？ v] to [yes]\n            switch costume to (コスチューム3 v)\n        else\n            switch costume to (コスチューム2 v)\n            set [動く地形動いてもいい？ v] to [no]\n        end\n        go to x: (-10) y: (-100)\n        show\n    end\nend\nif <[12] = (背景)> then\n    repeat until <[13] = (背景)>\n        point in direction (90)\n        set [ghost v] effect to (15)\n        go to [back v] layer\n        if <<touching (ボム v)?> or <touching (リンク v)?>> then\n            set [弓スイッチ出現？ v] to [yes]\n            switch costume to (コスチューム3 v)\n        else\n            switch costume to (コスチューム2 v)\n            set [弓スイッチ出現？ v] to [no]\n        end\n        go to x: (10) y: (-86)\n        show\n    end\nend\nhide\n\nwhen flag clicked\nset [ghost v] effect to (15)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nhide\n\n@?\n\nwhen flag clicked\nset size to (110) %\ngo to x: (209) y: (150)\nswitch costume to (1 v)\nhide\nwait (0.01) seconds\nwait until <(背景) = [8]>\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <mouse down?> then\n            switch costume to ((背景) + (-6))\n            wait until <not <touching (mouse-pointer v)?>>\n            switch costume to (1 v)\n        end\n    else\n        change size by (((115) - (size)) / (3))\n    end\nend\n\n@ダークリンク\n\nwhen I receive [nxet2 v]\nset [hp v] to [6]\ngo to x: (-60) y: (-196)\nwait (0.1) seconds\nif <(背景) = [13]> then\n    set [ghost v] effect to (100)\n    go to x: (-60) y: (-196)\n    go to [back v] layer\n    wait until <[10] < ([x position v] of [リンクの動き v])>\n    point in direction (90)\n    go to x: (-60) y: (-196)\n    show\n    broadcast (ダークリンク v)\n    repeat (16)\n        switch costume to (right2 v)\n        change [ghost v] effect by (-6.5)\n        change y by (6)\n    end\n    wait (0.4) seconds\n    broadcast (ダークリンク機能 v)\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\npoint in direction (90)\nset [ダークリンクやられた？ v] to [no]\n\ndefine 技 (種類)\nif <(種類) = [1]> then\n    if <([x position v] of [リンク v]) < (x position)> then\n        point in direction (-90)\n    end\n    if <(x position) < ([x position v] of [リンク v])> then\n        point in direction (90)\n    end\n    repeat until <(distance to [リンク v]) < [125]>\n        if <([x position v] of [リンク v]) < (x position)> then\n            point in direction (-90)\n        end\n        if <(x position) < ([x position v] of [リンク v])> then\n            point in direction (90)\n        end\n        move (9) steps\n        switch costume to (right2 v)\n        wait (0.05) seconds\n        move (9) steps\n        switch costume to (right1 v)\n        wait (0.05) seconds\n    end\n    wait (0.2) seconds\n    if <([x position v] of [リンク v]) < (x position)> then\n        point in direction (-90)\n    end\n    if <(x position) < ([x position v] of [リンク v])> then\n        point in direction (90)\n    end\n    wait (0.3) seconds\n    set [brightness v] effect to (20)\n    wait (0.15) seconds\n    set [スキ v] to [40]\n    switch costume to (attackright1 v)\n    broadcast (剣ブラック v)\n    set [brightness v] effect to (0)\n    wait (1) seconds\n    repeat (2)\n        move (-10) steps\n        switch costume to (right2 v)\n        wait (0.05) seconds\n        move (-10) steps\n        switch costume to (right1 v)\n        wait (0.05) seconds\n    end\nend\nif <(種類) = [2]> then\n    set [ghost v] effect to (0)\n    set size to (310) %\n    repeat (4)\n        change size by (6)\n        change [ghost v] effect by (25)\n    end\n    hide\n    set x to ([x position v] of [リンク v])\n    point in direction ([direction v] of [リンク v])\n    move (-50) steps\n    wait (1) seconds\n    show\n    repeat (4)\n        change size by (-6)\n        change [ghost v] effect by (-25)\n    end\n    wait (0.8) seconds\n    set [brightness v] effect to (15)\n    wait (0.15) seconds\n    set [スキ v] to [40]\n    switch costume to (attackright1 v)\n    broadcast (剣ブラック v)\n    set [brightness v] effect to (0)\n    wait (0.4) seconds\n    move (-10) steps\n    switch costume to (right2 v)\n    wait (0.05) seconds\n    move (-10) steps\n    switch costume to (right1 v)\n    wait (0.05) seconds\nend\nif <(種類) = [3]> then\n    wait (0.8) seconds\n    set [brightness v] effect to (15)\n    wait (0.15) seconds\n    set [スキ v] to [45]\n    switch costume to (attackright1 v)\n    broadcast (剣ブラック v)\n    set [brightness v] effect to (0)\n    wait (0.4) seconds\n    repeat (2)\n        move (-10) steps\n        switch costume to (right2 v)\n        wait (0.05) seconds\n        move (-10) steps\n        switch costume to (right1 v)\n        wait (0.05) seconds\n    end\n    if <([x position v] of [リンク v]) < (x position)> then\n        point in direction (-90)\n    end\n    if <(x position) < ([x position v] of [リンク v])> then\n        point in direction (90)\n    end\n    repeat until <(distance to [リンク v]) < [125]>\n        if <([x position v] of [リンク v]) < (x position)> then\n            point in direction (-90)\n        end\n        if <(x position) < ([x position v] of [リンク v])> then\n            point in direction (90)\n        end\n        move (9) steps\n        switch costume to (right2 v)\n        wait (0.05) seconds\n        move (9) steps\n        switch costume to (right1 v)\n        wait (0.05) seconds\n    end\nend\n\nwhen I receive [ダークリンク機能 v]\nswitch costume to (right2 v)\nset [スキ v] to [0]\nset size to (310) %\nset [ghost v] effect to (0)\nshow\ngo to [back v] layer\nset [brightness v] effect to (0)\nset rotation style [left-right v]\nforever\n    技 (pick random (1) to (3))\nend\n\nwhen I receive [ダークリンク機能 v]\nforever\n    set [スキ v] to ([floor v] of ((0.95) * (スキ)) )\nend\n\nwhen I receive [ダークリンク機能 v]\nforever\n    if <touching (マスターソード v)?> then\n        if <(スキ) = [0]> then\n            stop [other scripts in sprite v]\n            if <([x position v] of [リンク v]) < (x position)> then\n                point in direction (-90)\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                point in direction (90)\n            end\n            move (-15) steps\n            set size to (310) %\n            switch costume to (right3 v)\n            set [ghost v] effect to (0)\n            show\n            go to [back v] layer\n            set [brightness v] effect to (0)\n            wait (0.5) seconds\n            broadcast (ダークリンク機能 v)\n        else\n            stop [other scripts in sprite v]\n            set rotation style [all around v]\n            repeat (2)\n                change y by (4)\n            end\n            repeat (6)\n                change y by (-10)\n                turn right (5) degrees\n                change [brightness v] effect by (10)\n            end\n            set rotation style [left-right v]\n            hide\n            set [ghost v] effect to (100)\n            change [hp v] by (-1)\n            if <[0] < (HP)> then\n                wait (0.7) seconds\n                if <([x position v] of [リンク v]) < (x position)> then\n                    point in direction (-90)\n                end\n                if <(x position) < ([x position v] of [リンク v])> then\n                    point in direction (90)\n                end\n                move (pick random (-60) to (50)) steps\n                set y to (-90)\n                show\n                set [brightness v] effect to (0)\n                repeat (4)\n                    change size by (-6)\n                    change [ghost v] effect by (-25)\n                end\n                broadcast (ダークリンク機能 v)\n            else\n                set [ダークリンクやられた？ v] to [yes]\n            end\n        end\n    end\nend\n\nwhen I receive [剣ブラック v]\nwait (0.05) seconds\nstart sound [MC_Link_Sword1 v]\n\nwhen I receive [再機能 v]\nset [hp v] to [6]\nset rotation style [left-right v]\npoint in direction (-90)\nset x to (100)\n\nwhen I receive [ダークリンク機能 v]\nforever\n    set [color v] effect to (スキ)\nend\n\nwhen I receive [ダークリンク機能 v]\nforever\n    if <(HP) = [3]> then\n        broadcast (煙幕 v)\n    end\nend\n\nwhen I receive [ダークリンク機能 v]\nforever\n    if <<touching (矢 v)?> or <touching (爆弾矢 v)?>> then\n        stop [other scripts in sprite v]\n        if <([x position v] of [リンク v]) < (x position)> then\n            point in direction (-90)\n        end\n        if <(x position) < ([x position v] of [リンク v])> then\n            point in direction (90)\n        end\n        move (-15) steps\n        set size to (310) %\n        switch costume to (right3 v)\n        set [ghost v] effect to (0)\n        show\n        go to [back v] layer\n        set [brightness v] effect to (0)\n        wait (0.5) seconds\n        broadcast (ダークリンク機能 v)\n    end\nend\n\n@マスターソードブラック\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\nforever\n    point in direction ([direction v] of [ダークリンク v])\n    go to (ダークリンク v)\nend\n\nwhen I receive [剣ブラック v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nrepeat (6)\n    move (11) steps\n    if <touching (マスターソード v)?> then\n        wait (0.1) seconds\n        delete this clone\n    end\n    if <<touching (リンク v)?> and <[4] = ([costume # v] of [リンク v])>> then\n        change [スキ v] by (55)\n        delete this clone\n    end\nend\ndelete this clone\n\n@敵2\n\nwhen I receive [nxet2 v]\nset [pixelate v] effect to (0)\nset [yb v] to [0]\nset [xb v] to [0]\nwait (0.1) seconds\nset rotation style [left-right v]\nif <<(背景) = [9]> or <(背景) = [12]>> then\n    repeat until <<[1] > (HP)> or <<(背景) = [10]> or <(背景) = [13]>>>\n        set [xb v] to [0]\n        if <(distance to [リンクの動き v]) < [93]> then\n            set [xb v] to [0]\n            if <([x position v] of [リンク v]) < (x position)> then\n                point in direction (90)\n                set [yb v] to [7]\n                wait (1) seconds\n                point in direction (90)\n                set [チュチュ攻撃してる？ v] to [yes]\n                repeat (4)\n                    if <<touching (リンク v)?> and <([costume # v] of [リンク v]) = [4]>> then\n                        repeat (2)\n                            change [xb v] by (15)\n                        end\n                    else\n                        set [yb v] to [3]\n                        wait (0.2) seconds\n                        change [xb v] by (-5)\n                        change [xb v] by (-7)\n                    end\n                end\n                set [チュチュ攻撃してる？ v] to [no]\n                wait (1) seconds\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                point in direction (-90)\n                set [yb v] to [7]\n                wait (1) seconds\n                point in direction (-90)\n                set [チュチュ攻撃してる？ v] to [yes]\n                repeat (4)\n                    if <<touching (リンク v)?> and <([costume # v] of [リンク v]) = [4]>> then\n                        repeat (2)\n                            change [xb v] by (-15)\n                        end\n                    else\n                        set [yb v] to [3]\n                        wait (0.2) seconds\n                        change [xb v] by (5)\n                        change [xb v] by (7)\n                    end\n                end\n                set [チュチュ攻撃してる？ v] to [no]\n                wait (1) seconds\n            end\n        else\n            if <([x position v] of [リンク v]) < (x position)> then\n                point in direction (90)\n                change [xb v] by (-5)\n                wait (0.2) seconds\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                point in direction (-90)\n                change [xb v] by (5)\n                wait (0.2) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [nxet2 v]\nset [yb v] to [0]\nset [xb v] to [0]\nwait (0.1) seconds\nset rotation style [left-right v]\nif <not <<(背景) = [9]> or <(背景) = [12]>>> then\n    stop [other scripts in sprite v]\n    hide\nend\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nset [xb v] to [0]\nset [hp v] to [28]\nif <<(背景) = [12]> or <(背景) = [9]>> then\n    forever\n        if <touching (矢 v)?> then\n            set [yb v] to [7]\n            change [hp v] by (-2)\n            set [brightness v] effect to (20)\n            set [xb v] to [0]\n            if <([x position v] of [リンク v]) < (x position)> then\n                repeat (2)\n                    change [xb v] by (12)\n                end\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                repeat (2)\n                    change [xb v] by (-12)\n                end\n            end\n            set [brightness v] effect to (0)\n            if <(HP) < [1]> then\n                repeat (20)\n                    change [ghost v] effect by (-5)\n                    hide\n                end\n            end\n            wait (0.2) seconds\n        end\n        if <touching (爆弾矢 v)?> then\n            set [yb v] to [8]\n            change [hp v] by (-2)\n            set [brightness v] effect to (20)\n            set [xb v] to [0]\n            if <([x position v] of [リンク v]) < (x position)> then\n                repeat (3)\n                    change [xb v] by (4)\n                end\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                repeat (3)\n                    change [xb v] by (-4)\n                end\n            end\n            set [brightness v] effect to (0)\n            if <(HP) < [1]> then\n                repeat (20)\n                    change [ghost v] effect by (-5)\n                    hide\n                end\n            end\n            wait (0.2) seconds\n        end\n        if <touching (ボム v)?> then\n            if <(ボム爆発) = [yes]> then\n                set [yb v] to [7]\n                change [hp v] by (-4)\n                set [brightness v] effect to (20)\n                set [xb v] to [0]\n                if <([x position v] of [ボム v]) < (x position)> then\n                    repeat (4)\n                        change [xb v] by (8)\n                    end\n                end\n                if <(x position) < ([x position v] of [ボム v])> then\n                    repeat (4)\n                        change [xb v] by (-8)\n                    end\n                end\n                set [brightness v] effect to (0)\n                if <(HP) < [1]> then\n                    repeat (20)\n                        change [ghost v] effect by (-5)\n                        hide\n                    end\n                end\n                wait (0.2) seconds\n            end\n        end\n        if <touching (マスターソード v)?> then\n            set [yb v] to [7]\n            change [hp v] by (-2)\n            set [brightness v] effect to (20)\n            set [xb v] to [0]\n            if <([x position v] of [リンク v]) < (x position)> then\n                repeat (10)\n                    change [xb v] by (3)\n                end\n            end\n            if <(x position) < ([x position v] of [リンク v])> then\n                repeat (10)\n                    change [xb v] by (-3)\n                end\n            end\n            set [brightness v] effect to (0)\n            if <(HP) < [1]> then\n                repeat (20)\n                    change [ghost v] effect by (-5)\n                    hide\n                end\n            end\n            wait (0.2) seconds\n        end\n        if <touching (トゲ v)?> then\n            set [yb v] to [7]\n            change [hp v] by (-6)\n            set [brightness v] effect to (20)\n            set [xb v] to [0]\n            set [brightness v] effect to (0)\n            if <(HP) < [1]> then\n                repeat (20)\n                    change [ghost v] effect by (-5)\n                    hide\n                end\n            end\n            wait (0.2) seconds\n        end\n    end\nend\n\nwhen I receive [nxet2 v]\nset [yb v] to [0]\nset [xb v] to [0]\nforever\n    set [xb v] to ((XB) * (0.7))\n    change x by (XB)\n    if <<touching (地面 v)?> or <touching (動く地形 v)?>> then\n        change y by (10)\n    end\n    if <<touching (地面 v)?> or <touching (動く地形 v)?>> then\n        change y by (10)\n    end\n    if <<touching (地面 v)?> or <touching (動く地形 v)?>> then\n        change y by (10)\n    end\n    if <<touching (地面 v)?> or <touching (動く地形 v)?>> then\n        change y by (10)\n    end\n    if <<touching (地面 v)?> or <touching (動く地形 v)?>> then\n        change y by (-40)\n        set [xb v] to ((XB) * (-2))\n        set [yb v] to [20]\n    end\n    change [yb v] by (-0.7)\n    change y by (YB)\n    if <<touching (地面 v)?> or <touching (動く地形 v)?>> then\n        change y by ((YB) - ((YB) * (2)))\n        set [yb v] to [0]\n    end\n    change y by (9)\n    change y by (-9)\nend\n\nwhen I receive [再機能 v]\nset [yb v] to [0]\nset [xb v] to [0]\nset [hp v] to [28]\nif <(背景) = [12]> then\n    show\n    point in direction (-90)\n    go to x: (120) y: (0)\n    point in direction (-90)\n    set [hp v] to [13]\nend\nif <(背景) = [9]> then\n    show\n    point in direction (-90)\n    go to x: (-10) y: (0)\n    point in direction (-90)\n    set [hp v] to [13]\nend\n\nwhen I receive [再機能 v]\nset size to (100) %\nset [fisheye v] effect to (0)\nforever\n    repeat (5)\n        change size by (0.3)\n        change [fisheye v] effect by (1)\n    end\n    repeat (3)\n        change size by (0.5)\n    end\n    wait (0.2) seconds\n    repeat (5)\n        change size by (-0.3)\n        change [fisheye v] effect by (-1)\n    end\n    repeat (3)\n        change size by (-0.5)\n    end\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nhide\n\n@スプライト1\n\n
下に日本語がないとでも思った？(ﾟ∀ﾟ) ((煽\n[English]\nhello\n\nThis time, I tried to make a pseudo-production of The Legend of Zelda. Please try playing.\n【←→】・・・Run\n【 ↑ 】・・・jump\n【 ↓ 】・・・guard\n【N】・・・arrow\n【M】・・・bomb arrow\n【Space】・・・sword\n\n[日本語]\nこんにちは\n\n今回はゼルダの伝説の疑似制作をしてみました。ぜひ遊んでみてください。\n\n【←→】・・・走る\n【 ↑ 】・・・ジャンプ\n【 ↓ 】・・・ガード\n【B】・・・爆弾\n【N】・・・矢\n【M】・・・爆弾矢\n【スペース】・・・剣\n\n\n\n\n\n\n❤と⭐を押してー＼(^o^)／(ﾟ∀ﾟ)ﾀﾉﾑ