3D Scratch Platformer [100K VIEWS]

Instructions: HELLO GUYS\nTHIS IS A ONE GREAT PLATFORMER THAT U RLY WANNA TRY\n (MADE BY OUR TEAM)\n•EGG PLATFORMER v2.0-\n https://scratch.mit.edu/projects/468974116/\n\n•ON  TOP TRENDING #26  2020/12/29\n•ON TOP TRENDING #6     2020/12/30\n•ON WHAT COMMUNITY LOVING /REMIXING \n 2021/01/02\n•#1 ON THE WHAT COMMUNITY IS LOVEING - \n 2021/01/02\n•#2 ON THE WHAT COMMUNITY IS LOVEING - \n 2021/01/07\n\nCONTROLLES - ARROWS\nTRY TO BEAT THE BEST TIME\nCOMMENT YOUR TIME =D\nMY TIME IS -22 Seconds\n\nTHIS IS A 24 HOUR CHALLENGE \nWE DONE THIS IN 24 HOURS THIS IS NOT OUR BEST BUT LIKE/FAV/COMMENT/REMIX/FOLLOW\n\nTRUST ME THIS GAME IS POSSIBLE\n\nFIRST REMIX BY - @dieccaww\nFIRST COMMENT BY - @PRINCESS_SENU\nFIRST LIKE/FAV BY - @LLTech99\n\nTHIS IS FOR A COMPITION SO MAKE SURE TO *LIKE/FAV/COMMENT/REMIX/FOLLOW PLS*\n\nOUR CARTOON -\n              https://scratch.mit.edu/projects/467975350/ \nOUR OS SMIULATOR-\n              https://scratch.mit.edu/projects/467995683/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#EGG #EGG #PLATFORMER #GAMES #WINERS #WIN #ARTS #PROJECTS #GAMERS #FONTS #COOL #AWSOME #CRAZY #TRAPS #TIMERS #V1.0 #PROJECTS #ANIMATIONS #TEAMS #SOUNDS #SHOW #HIDE #CODES #BLA #BLA #BLA #BEST #REAL #GREAT #TEXT #THUMBNAIL #INSTRUCTIONS #SHOP #TRENDING #CLOUD #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #EGG #EGG #PLATFORMER #GAMES #WINERS #WIN #ARTS #PROJECTS #GAMERS #FONTS #COOL #AWSOME #CRAZY #TRAPS #TIMERS #V1.0 #PROJECTS #ANIMATIONS #TEAMS #SOUNDS #SHOW #HIDE #CODES #BLA #BLA #BLA #BEST #REAL #GREAT #TEXT #THUMBNAIL #INSTRUCTIONS #SHOP #TRENDING #CLOUD #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #Tutorial #GAME #GAMES #26 #TRENDING26 #TRENDING 

@Stage\n\nwhen flag clicked\nswitch backdrop to (2 v)\nset [...bgm オンオフ v] to [1]\nset [...効果音　オンオフ v] to [1]\nwait until <([costume # v] of [壁 v]) = [6]>\nswitch backdrop to (3 v)\nwait until <([costume # v] of [壁 v]) = [15]>\nswitch backdrop to (2 v)\n\nwhen flag clicked\nforever\n    play sound [１ v] until done\n    play sound [２ v] until done\nend\n\nwhen flag clicked\nforever\n    if <(...BGM オンオフ) = [0]> then\n        set volume to (0) %\n    else\n        set volume to (100) %\n    end\nend\n\n@軽量化\n\nwhen I receive [無敵 v]\nadd [プレイヤーが無敵になりました] to [1 v]\nset [無敵 v] to [1]\nwait ((無敵団) + (1)) seconds\nset [無敵 v] to [0]\n\nset [持ち物 v] to [13]\nadd [剣がMAXになりました] to [1 v]\n\nwhen flag clicked\nchange [☁ aaaa v] by (1)\n\nset [☁ aaaa v] to [0]\n\n@1\n\ndefine クローン ()\nswitch costume to ()\nif <[0] = ()> then\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (0)\n    show\n    set size to (100) %\n    wait (1) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    add [0] to [0 v]\n    delete this clone\nend\nif <[遊ぶ] = ()> then\n    create clone of (_myself_ v)\nend\nif <[設定] = ()> then\n    create clone of (_myself_ v)\nend\nif <[スキン] = ()> then\n    create clone of (_myself_ v)\nend\nif <[サムネイル] = ()> then\n    add [プロジェクトが停止] to [1 v]\n    add [サムネイル作成] to [1 v]\n    set [サムネ変数 v] to [0]\n    set size to (100) %\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (500)\n    show\n    repeat (25)\n        change [サムネ変数 v] by (-1)\n        change y by (サムネ変数)\n    end\n    set y to (0)\n    stop [all v]\nend\n\nwhen [timer v] > (0.01)\nクローン [サムネイル]\nbroadcast (サムネ　ステージ作成 v)\ndelete all of [0 v]\nadd [000] to [0 v]\n\nwhen I start as a clone\ngo to [front v] layer\nif <(clone数) = [1]> then\n    add [あそぶのクローンを作成] to [1 v]\n    set size to (5) %\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (0)\n    show\n    add [遊ぶ] to [0 v]\n    forever\n        if <(どこの画面？) = [0]> then\n            show\n            if <touching (mouse-pointer v)?> then\n                change size by ((0.2) * ((115) - (size)))\n                if <mouse down?> then\n                    set [どこの画面？ v] to [ゲーム]\n                    add [ゲームを開始] to [1 v]\n                    broadcast (スタート v)\n                    if <[1] = (...効果音　オンオフ)> then\n                        start sound [Click v]\n                    end\n                end\n            else\n                change size by ((0.2) * ((100) - (size)))\n            end\n        else\n            hide\n        end\n    end\nend\nif <(clone数) = [2]> then\n    add [設定のクローンを作成] to [1 v]\n    set size to (5) %\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (-50)\n    show\n    add [設定] to [0 v]\n    forever\n        if <(どこの画面？) = [0]> then\n            show\n            if <touching (mouse-pointer v)?> then\n                change size by ((0.2) * ((115) - (size)))\n                if <mouse down?> then\n                    add [設定画面] to [1 v]\n                    set [どこの画面？ v] to [設定]\n                    if <[1] = (...効果音　オンオフ)> then\n                        start sound [Click v]\n                    end\n                end\n            else\n                change size by ((0.2) * ((100) - (size)))\n            end\n        else\n            hide\n        end\n    end\nend\nif <(clone数) = [3]> then\n    add [スキンのクローンを作成] to [1 v]\n    set size to (5) %\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (-100)\n    show\n    add [スキン] to [0 v]\n    forever\n        if <(どこの画面？) = [0]> then\n            show\n            if <touching (mouse-pointer v)?> then\n                change size by ((0.2) * ((115) - (size)))\n                if <mouse down?> then\n                    if <[1] = (...効果音　オンオフ)> then\n                        set [どこの画面？ v] to [スキン]\n                        add [スキン画面] to [1 v]\n                        start sound [Click v]\n                        broadcast (スキン　☺ v)\n                    end\n                end\n            else\n                change size by ((0.2) * ((100) - (size)))\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\ndelete all of [1 v]\nadd [旗を押した] to [1 v]\nset [clone数 v] to [0]\nset [確認 v] to [0]\nhide\ndelete all of [0 v]\nクローン [0]\nwait until <(0) = [0]>\nクローン [遊ぶ]\nchange [clone数 v] by (1)\nwait until <[0 v] contains [遊ぶ]?>\nchange [clone数 v] by (1)\nクローン [設定]\nwait until <[0 v] contains [設定]?>\nchange [clone数 v] by (1)\nクローン [スキン]\n\n@2\n\ndefine 常時実行\ngo to x: (0) y: (0)\ngo to [front v] layer\nchange [三角関数用 v] by (5)\nreset timer\nif <[Nan％] = (join ((☁ 世界のclear数) / (☁ 世界の旗が押された回数)) [％])> then\n    set [クリア率 v] to [不明...]\nelse\n    set [クリア率 v] to (round (((☁ 世界のclear数) / (☁ 世界の旗が押された回数)) * (100)))\nend\nif <(どこの画面？) = [0]> then\n    show\nelse\n    hide\nend\n\nwhen I receive [音を鳴らして v]\nif <[1] = (...効果音　オンオフ)> then\n    start sound [Click v]\nend\n\nwhen flag clicked\nchange [☁ 世界の旗が押された回数 v] by (1)\nset [どこの画面？ v] to [0]\nforever\n    常時実行\nend\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nswitch costume to ( v)\nhide\nwait (1) seconds\nshow\nset [世界記録保存の許可 v] to [0]\nset [...bgm オンオフ v] to [1]\nset [...効果音　オンオフ v] to [1]\n\nwhen [timer v] > (0.01)\nhide\n\nwhen I start as a clone\nset [三角関数用 v] to [0]\nadd [エフェクト/太陽] to [1 v]\ngo to x: (177) y: (124)\nset size to (100) %\nshow\nswitch costume to (2 v)\nforever\n    change [▶︎ v] by (5)\n    go to [back v] layer\n    change size by ([sin v] of (三角関数用) )\nend\n\n@プレイヤー\n\nwhen I receive [スタート v]\nset [無敵 v] to [0]\nset [動いてよろしい? v] to [1]\ngo to [front v] layer\nshow\nset size to (100) %\nswitch costume to (usually v)\nset drag mode [not draggable v]\ngo to x: (-201) y: (60)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [now v] to [1]\nforever\n    if <touching (ゾンビ v)?> then\n        if <[90] = (direction)> then\n            broadcast (damezi v)\n            change [ライフ v] by (-1)\n            set [xv v] to [-10]\n            set [yv v] to [5]\n            無敵判定 [0.2] 秒\n        else\n            broadcast (damezi v)\n            change [ライフ v] by (-1)\n            set [xv v] to [10]\n            set [yv v] to [5]\n            無敵判定 [0.2] 秒\n        end\n    end\n    if <touching (クモ v)?> then\n        if <[90] = (direction)> then\n            broadcast (damezi v)\n            change [ライフ v] by (-1)\n            set [xv v] to [-10]\n            set [yv v] to [5]\n            無敵判定 [0.2] 秒\n        else\n            broadcast (damezi v)\n            change [ライフ v] by (-1)\n            set [xv v] to [10]\n            set [yv v] to [5]\n            無敵判定 [0.2] 秒\n        end\n    end\n    if <touching (爆発 v)?> then\n        if <(無敵) = [0]> then\n            change [ライフ v] by (-2.5)\n            broadcast (damezi v)\n            無敵判定 [0.3] 秒\n        end\n    end\n    if <(timer) = [0]> then\n        if <(動いてよろしい?) = [1]> then\n            set size to (100) %\n            set rotation style [left-right v]\n            if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n                if <touching (水 v)?> then\n                    change [xv v] by (-0.6)\n                    point in direction (-90)\n                else\n                    change [xv v] by (-1)\n                    point in direction (-90)\n                end\n            end\n            if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n                if <touching (水 v)?> then\n                    change [xv v] by (0.6)\n                    point in direction (90)\n                else\n                    change [xv v] by (1)\n                    point in direction (90)\n                end\n            end\n            if <<<mouse down?> and <(mouse y) < (y position)>> or <key (down arrow v) pressed?>> then\n                set [xv v] to ((Xv) * (1.02))\n            end\n            set [xv v] to ((Xv) * (0.9))\n            change x by (Xv)\n            if <touching (壁 v)?> then\n                change y by (1)\n                if <touching (壁 v)?> then\n                    change y by (1)\n                    if <touching (壁 v)?> then\n                        change y by (1)\n                        if <touching (壁 v)?> then\n                            change y by (1)\n                            if <touching (壁 v)?> then\n                                change y by (1)\n                                if <touching (壁 v)?> then\n                                    change x by ((Xv) * (-1))\n                                    change y by (-5)\n                                    if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            if <<<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> and <touching (水 v)?>> then\n                set [yv v] to [10]\n                if <[1] = (世界記録保存の許可)> then\n                    change [☁ 世界のジャンプ数 v] by (1)\n                end\n            end\n            if <touching (水 v)?> then\n                change y by (-0.7)\n            else\n                change y by (-1)\n            end\n            if <touching (壁 v)?> then\n                if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                    if <touching (水 v)?> then\n                end\n            end\n            if <touching (水 v)?> then\n                change [yv v] by (-0.5)\n            else\n                change [yv v] by (-1)\n            end\n            change y by (1)\n            change y by (Yv)\n            if <touching (壁 v)?> then\n                change y by ((Yv) * (-1))\n                set [yv v] to [0]\n            end\n            hide variable [xv v]\n            if <(x position) > [230]> then\n                broadcast (位置リセット v)\n                change [stage v] by (1)\n                go to x: (-201) y: (60)\n                set [動いてよろしい? v] to [1]\n                set [clone削除して v] to [1]\n                wait (0.2) seconds\n                set [clone削除して v] to [0]\n                broadcast (next level v)\n                change [now v] by (1)\n                set [yv v] to [0]\n                set [xv v] to [0]\n            end\n            if <<(y position) < [-170]> or <(ライフ) < [0.5]>> then\n                broadcast (位置リセット v)\n                set [円ダメ v] to [0]\n                if <[1] = (世界記録保存の許可)> then\n                    change [☁ 世界の死亡数 v] by (1)\n                end\n                set [ライフ v] to [0]\n                broadcast (死 v)\n                repeat (10)\n                    change [brightness v] effect by (-10)\n                    change [ghost v] effect by (5)\n                end\n                clear graphic effects\n                go to x: (-201) y: (60)\n                set [ライフ v] to [20]\n            end\n        end\n    end\n    if <(無敵) = [0]> then\n        if <touching (マグマ v)?> then\n            if <(direction) = [-90]> then\n                broadcast (円ダメ v)\n                broadcast (damezi v)\n                change [ライフ v] by (-2)\n                set [xv v] to [3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            else\n                broadcast (円ダメ v)\n                broadcast (damezi v)\n                change [ライフ v] by (-2)\n                set [xv v] to [-3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            end\n        end\n        if <touching (スケルトン v)?> then\n            change [ライフ v] by (-0.5)\n            if <(direction) = [-90]> then\n                broadcast (damezi v)\n                set [xv v] to [3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            else\n                broadcast (damezi v)\n                set [xv v] to [-3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            end\n        end\n        if <touching (ちび助 v)?> then\n            change [ライフ v] by (-1)\n            if <(direction) = [-90]> then\n                broadcast (damezi v)\n                set [xv v] to [3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            else\n                broadcast (damezi v)\n                set [xv v] to [-3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            end\n        end\n        if <touching (ちび弓 v)?> then\n            change [ライフ v] by (-0.5)\n            if <(direction) = [-90]> then\n                broadcast (damezi v)\n                set [xv v] to [3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            else\n                broadcast (damezi v)\n                set [xv v] to [-3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            end\n        end\n        if <touching (弓 v)?> then\n            change [ライフ v] by (-1)\n            if <(direction) = [-90]> then\n                broadcast (damezi v)\n                set [xv v] to [3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            else\n                broadcast (damezi v)\n                set [xv v] to [-3]\n                set [yv v] to [5]\n                無敵判定 [0.2] 秒\n            end\n        end\n    end\nend\n\n\n    set [yv v] to [0]\n    broadcast (死 v)\n    start sound [ oof v]\n    switch costume to (コスチューム12 v)\n    set rotation style [all around v]\n    set [y v] to [20]\n    change y by (20)\n    repeat until <(y position) < [-178]>\n        turn right (15) degrees\n        change y by (y)\n        change [y v] by (-2)\n    end\n    set rotation style [left-right v]\n    switch costume to (コスチューム3 v)\nend\n\nwhen flag clicked\nset [clone削除して v] to [0]\nhide\nswitch costume to (スティーブ1 v)\nif <[1] = (pick random (1) to (2))> then\n    set [スキン v] to [スティーブ]\nelse\n    set [スキン v] to [アレックス]\nend\nadd [プレイヤーが正常に動作] to [1 v]\nforever\n    if <[スティーブ] = (スキン)> then\n        switch costume to (スティーブ1 v)\n        wait (0.5) seconds\n        switch costume to (スティーブ2 v)\n        wait (0.5) seconds\n    else\n        switch costume to (alex v)\n        wait (0.5) seconds\n        switch costume to (alex2 v)\n        wait (0.5) seconds\n    end\nend\n\nwhen I receive [damezi v]\nswitch costume to (damezi v)\n\nwhen [timer v] > (0.01)\nhide\n\nwhen I receive [位置リセット v]\nset [位置リセット v] to [1]\nwait (1) seconds\nset [位置リセット v] to [0]\n\nwhen I receive [damezi v]\nif <[1] = (...効果音　オンオフ)> then\n    play sound [ダメージ v] until done\nend\n\nwhen I receive [円ダメ v]\nset [円ダメ v] to [5]\nrepeat until <(円ダメ) < [1]>\n    wait (1) seconds\n    broadcast (damezi v)\n    change [円ダメ v] by (-1)\n    change [ライフ v] by (-1)\nend\nset [円ダメ v] to [0]\n\ndefine 無敵判定 (何) 秒\nset [無敵団 v] to (何)\nbroadcast (無敵 v)\n\n@saisyo\n\nwhen I receive [スタート v]\nhide\n\nwhen [timer v] > (0.01)\nhide\n\nwhen flag clicked\nshow\nforever\n    go to x: (0) y: (0)\n    go [forward v] (1) layers\n    go [backward v] (6) layers\nend\n\n@Weather\n\nwhen I receive [layer sort v]\nif <(cloud_num) = [-1]> then\n    Z-index Sprite by [999]\nend\nif <(cloud_num) > [0]> then\n    Z-index Sprite by [998]\nend\n\ndefine Z-index Sprite by (z-index)\nset [i v] to [1]\nrepeat until <not <(z-index) < (item (i) of [z-index v])>>\n    change [i v] by (1)\nend\ninsert (z-index) at (i) of [z-index v] \ngo [forward v] ((i) - (1)) layers\n\nwhen I start as a clone\nif <(cloud_num) = [-1]> then\n    show\n    forever\n        go to [back v] layer\n        go [backward v] (1) layers\n        if <(#Daylight cycle) = [Day]> then\n            switch costume to (sun v)\n            go to x: ((140) + ((4) * ([cos v] of (#Frame) ))) y: ((100) + ((4) * ([sin v] of (#Frame) )))\n        end\n        if <(#Daylight cycle) = [Sunset]> then\n            switch costume to (sunset v)\n            go to x: ((140) + ((4) * ([cos v] of (#Frame) ))) y: ((100) + ((4) * ([sin v] of (#Frame) )))\n        end\n        if <(#Daylight cycle) = [Night]> then\n            switch costume to (moon v)\n            go to x: ((0) + ((220) * ([cos v] of (((#Frame) / (30)) + (180)) ))) y: ((-250) + ((380) * ([sin v] of ((#Frame) / (30)) )))\n        end\n    end\nend\nif <(cloud_num) > [0]> then\n    set [cloud y v] to (pick random (100) to (170))\n    if <(#Biome) = [2]> then\n        go [backward v] (5) layers\n        set [cloud y v] to (pick random (-80) to (0))\n        set [ghost v] effect to (50)\n    end\n    switch costume to ((1) + (pick random (1) to (11)))\n    set y to (cloud y)\n    repeat until <(cloud x) < [-400]>\n        show\n        set x to (cloud x)\n        if <(#Daylight cycle) = [Night]> then\n            set [ghost v] effect to (90)\n        else\n            set [ghost v] effect to (20)\n        end\n        if <(#Gamemode) = (item (1) of [#gamemode v])> then\n    end\n    change [cloud_num v] by (-1)\n    delete this clone\nend\n\nwhen flag clicked\nhide\nset [cloud_num v] to [-1]\ncreate clone of (_myself_ v)\nadd [雲のクローンを作成] to [1 v]\nset [cloud_num v] to [1]\nset [cloud x v] to [-100]\ncreate clone of (_myself_ v)\nadd [雲のクローンを作成] to [1 v]\nchange [cloud_num v] by (1)\nset [cloud x v] to [100]\ncreate clone of (_myself_ v)\nadd [雲のクローンを作成] to [1 v]\nchange [cloud_num v] by (1)\nforever\n    if <(cloud_num) < [10]> then\n        if <(pick random (1) to (5)) = [1]> then\n            set [cloud x v] to [300]\n            change [cloud_num v] by (1)\n            create clone of (_myself_ v)\n            add [雲のクローンを作成] to [1 v]\n        end\n        wait (3) seconds\n    end\nend\n\n@オンオフ1\n\nwhen this sprite clicked\nadd [オンオフが押された] to [1 v]\nif <(...BGM オンオフ) = [0]> then\n    broadcast (音を鳴らして v)\n    repeat until <(costume [number v]) = [5]>\n        next costume\n    end\n    set [...bgm オンオフ v] to [1]\nelse\n    broadcast (音を鳴らして v)\n    repeat until <(costume [number v]) = [1]>\n        switch costume to ((costume [number v]) - (1))\n    end\n    set [...bgm オンオフ v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <[設定] = (どこの画面？)> then\n        show\n    else\n        hide\n    end\nend\n\nset [世界記録保存の許可 v] to [0]\n\n@オンオフ2\n\nwhen this sprite clicked\nadd [オンオフ2が押された] to [1 v]\nif <(...効果音　オンオフ) = [0]> then\n    broadcast (音を鳴らして v)\n    repeat until <(costume [number v]) = [5]>\n        next costume\n    end\n    set [...効果音　オンオフ v] to [1]\nelse\n    broadcast (音を鳴らして v)\n    repeat until <(costume [number v]) = [1]>\n        switch costume to ((costume [number v]) - (1))\n    end\n    set [...効果音　オンオフ v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <[設定] = (どこの画面？)> then\n        show\n    else\n        hide\n    end\nend\n\n@オンオフ3\n\nwhen this sprite clicked\nadd [オンオフ3が押された] to [1 v]\nif <not <(username) = []>> then\n    if <(世界記録保存の許可) = [0]> then\n        broadcast (音を鳴らして v)\n        repeat until <(costume [number v]) = [5]>\n            next costume\n        end\n        set [世界記録保存の許可 v] to [1]\n    else\n        broadcast (音を鳴らして v)\n        repeat until <(costume [number v]) = [1]>\n            switch costume to ((costume [number v]) - (1))\n        end\n        set [世界記録保存の許可 v] to [0]\n    end\nelse\n    switch costume to (6 v)\nend\n\nwhen flag clicked\nforever\n    if <[設定] = (どこの画面？)> then\n        show\n    else\n        hide\n    end\n    if <not <(username) = []>> then\n        go to x: (174) y: (-80)\n    else\n        go to x: (96) y: (-110)\n        switch costume to (6 v)\n    end\nend\n\n@設定画面\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(どこの画面？) = [設定]> then\n        show\n    else\n        hide\n    end\nend\n\n@戻る\n\nwhen flag clicked\ngo to x: (-154) y: (-154)\nhide\nforever\n    if <<(どこの画面？) = [設定]> or <(どこの画面？) = [スキン]>> then\n        show\n        if <touching (mouse-pointer v)?> then\n            change size by ((0.2) * ((115) - (size)))\n        else\n            change size by ((0.2) * ((100) - (size)))\n        end\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nadd [戻が押された] to [1 v]\nset [どこの画面？ v] to [0]\nbroadcast (音を鳴らして v)\n\nwhen I receive [スキン　☺ v]\nshow\n\n@ボール\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [ball x v] to [0]\nset [ball y v] to [0]\nshow\nforever\n    set [ball x v] to ((ball x) * (0.95))\n    change x by (ball x)\n    if <touching (壁 v)?> then\n        change y by (1)\n        if <touching (壁 v)?> then\n            change y by (1)\n            if <touching (壁 v)?> then\n                change y by (1)\n                if <touching (壁 v)?> then\n                    change y by (1)\n                    if <touching (壁 v)?> then\n                        change y by (1)\n                        if <touching (壁 v)?> then\n                            change y by (1)\n                            if <touching (壁 v)?> then\n                                change x by ((0) - (ball x))\n                                change y by (-5)\n                                set [ball x v] to ((-0.8) * (ball x))\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [ball y v] by (-0.5)\n    change y by (ball y)\n    if <touching (壁 v)?> then\n        change y by ((0) - (ball y))\n        set [ball y v] to ((-0.9) * (ball y))\n    end\n    change y by (-2)\n    if <touching (跳ね返す v)?> then\n        start sound [ v]\n        set [ball x v] to ((2) * (プレイヤー移動))\n        set [ball y v] to [15]\n    end\n    if <touching (ボール抹消ライン v)?> then\n        set y to (-47)\n        if <[0] < (ポイント)> then\n            broadcast (ボール消滅 v)\n        end\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ボールが存在するか v] to [0]\n        delete this clone\n    end\n    if <touching (列の底 v)?> then\n        set [ball y v] to [0]\n        set y to (-155)\n        change [自分が入った場所 v] by (5)\n        if <[3] < (x position)> then\n            if <(x position) < [47]> then\n                change [自分が入った場所 v] by (10)\n                set x to (24)\n            else\n                if <(x position) < [91]> then\n                    change [自分が入った場所 v] by (20)\n                    set x to (69)\n                else\n                    if <(x position) < [135]> then\n                        change [自分が入った場所 v] by (30)\n                        set x to (113)\n                    else\n                        if <(x position) < [179]> then\n                            change [自分が入った場所 v] by (40)\n                            set x to (157)\n                        else\n                            change [自分が入った場所 v] by (50)\n                            set x to (201)\n                        end\n                    end\n                end\n            end\n        end\n        add (自分が入った場所) to [ボール埋まった番号 v]\n        add (x position) to [未偽装 v]\n        add (y position) to [未偽装 v]\n        replace item (自分が入った場所) of [ボール埋まり v] with (costume [number v])\n        wait (0.1) seconds\n        broadcast (ボールに動きが.. v)\n        delete this clone\n    end\n    if <touching (偽ボール v)?> then\n        set [ball y v] to [0]\n        if <[3] < (x position)> then\n            if <(x position) < [47]> then\n                change [自分が入った場所 v] by (10)\n                set x to (24)\n            else\n                if <(x position) < [91]> then\n                    change [自分が入った場所 v] by (20)\n                    set x to (69)\n                else\n                    if <(x position) < [135]> then\n                        change [自分が入った場所 v] by (30)\n                        set x to (113)\n                    else\n                        if <(x position) < [179]> then\n                            change [自分が入った場所 v] by (40)\n                            set x to (157)\n                        else\n                            change [自分が入った場所 v] by (50)\n                            set x to (201)\n                        end\n                    end\n                end\n            end\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (1))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (2))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (3))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (4))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (5))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        change [自分が入った場所 v] by ((5) - (この列がどこまで埋まってるか取得))\n        set y to ((-155) + ((30) * ((5) - (letter (length of (自分が入った場所)) of (自分が入った場所)))))\n        if <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [0]> or <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [6]> or <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [7]> or <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [8]> or <(letter (length of (自分が入った場所)) of (自分が入った場所)) = [9]>>>>> then\n            if <[0] < (ポイント)> then\n                broadcast (ボール消滅 v)\n            end\n            set [ボールが存在するか v] to [0]\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n        add (自分が入った場所) to [ボール埋まった番号 v]\n        add (x position) to [未偽装 v]\n        add (y position) to [未偽装 v]\n        replace item (自分が入った場所) of [ボール埋まり v] with (costume [number v])\n        wait (0.1) seconds\n        broadcast (ボールに動きが.. v)\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait until <<[3] < (x position)> and <(y position) < [-30]>>\nset [ボールが存在するか v] to [0]\n\nwhen I receive [スタート v]\ndelete all of [ボール埋まった番号 v]\ndelete all of [ボール埋まり v]\nrepeat (5)\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\nend\nclear graphic effects\nset size to (65) %\nset rotation style [left-right v]\npoint in direction (90)\ngo to [front v] layer\ngo to x: (-100) y: (200)\ndelete all of [未偽装 v]\n\nwhen I receive [終わり v]\nstop [other scripts in sprite v]\n\ndefine クローン (x) (y) (k) (n)\ngo to x: (x) y: (y)\nswitch costume to (k)\nrepeat (n)\n    create clone of (_myself_ v)\nend\n\n@壁\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [スタート v]\nset [stage v] to [1]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Stage)\nend\n\n@Health2\n\nwhen flag clicked\ngo to x: (0) y: (-160)\nset [ライフ v] to [20]\ngo to [front v] layer\nhide\nforever\n    switch costume to ((ライフ) + (1))\nend\n\nwhen flag clicked\nforever\n    set [前ライフ v] to (ライフ)\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nforever\n    if <(ライフ) < [4]> then\n        change y by (3)\n        wait (0.07) seconds\n        change y by (-3)\n    end\nend\n\nwhen [timer v] > (1)\nhide\n\nwhen I receive [スタート v]\nshow\n\n@ゾンビ\n\nwhen I start as a clone\nadd [ゾンビ/クローン] to [1 v]\nclear graphic effects\nset size to (100) %\nwait (0.2) seconds\npoint in direction (90)\nset [ゾンビx v] to [0]\nset [ゾンビy v] to [0]\nclear graphic effects\nshow\nforever\n    show\n    if <(位置リセット) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    if <([x position v] of [プレイヤー v]) < (x position)> then\n        point in direction (-90)\n        if <touching (水 v)?> then\n            change [ゾンビx v] by (-0.14)\n        else\n            change [ゾンビx v] by (-0.2)\n        end\n    end\n    if <(x position) < ([x position v] of [プレイヤー v])> then\n        point in direction (90)\n        if <touching (水 v)?> then\n            change [ゾンビx v] by (0.14)\n        else\n            change [ゾンビx v] by (0.2)\n        end\n    end\n    set [ゾンビx v] to ((ゾンビx) * (0.9))\n    change x by (ゾンビx)\n    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n        change y by (1)\n        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n            change y by (1)\n            if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                change y by (1)\n                if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                    change y by (1)\n                    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                        change y by (1)\n                        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                            change y by (1)\n                            if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                                change x by ((0) - (ゾンビx))\n                                change y by (-5)\n                                if <not <(y position) < ([y position v] of [プレイヤー v])>> then\n                                    set [ゾンビx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [ゾンビy v] by (-0.9)\n    if <<touching (水 v)?> and <(ゾンビy) < [-2]>> then\n        set [ゾンビy v] to [-2]\n    end\n    change y by (ゾンビy)\n    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n        change y by ((0) - (ゾンビy))\n        set [ゾンビy v] to [0]\n    end\n    change y by (-2)\n    if <<touching (水 v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [ゾンビy v] to [4]\n    else\n        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n            if <(y position) < ([y position v] of [プレイヤー v])> then\n                if <[1] = (pick random (1) to (15))> then\n                    set [ゾンビy v] to [12]\n                end\n            end\n        end\n    end\n    change y by (1)\nend\n\nwhen I start as a clone\nforever\n    set [モブの位置x v] to (x position)\n    set [モブの位置y v] to (y position)\nend\n\nwhen I receive [やられた v]\ndelete this clone\n\nwhen I start as a clone\nif <(item (2) of [#gamemode v]) = [12]> then\n    set [hp v] to [18]\nelse\n    set [hp v] to [22]\nend\nswitch costume to (player v)\nforever\n    if <touching (マグマ v)?> then\n        ダメージ [-4]\n        wait (0.25) seconds\n        switch costume to (player v)\n    end\n    if <touching (サボテン v)?> then\n        ダメージ [-4]\n        wait (0.25) seconds\n        switch costume to (player v)\n    end\n    if <<touching (剣 v)?> and <(攻撃) = [1]>> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        if <(結果) = [クリティカル攻撃可能]> then\n            ダメージ ([floor v] of (([costume name v] of [剣 v]) * (1.5)) )\n            set [攻撃位置x v] to (x position)\n            set [攻撃位置y v] to (y position)\n            broadcast (クリティカル v)\n        else\n            ダメージ ([costume name v] of [剣 v])\n        end\n        wait until <(攻撃) = [0]>\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <touching (爆発 v)?> then\n        ダメージ [-15]\n        if <(item (4) of [適用 v]) < (x position)> then\n            ノックバック [15] [12]\n        else\n            ノックバック [-15] [12]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <touching (ソニックブーム補完用4 v)?> then\n        ダメージ [-16]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n        wait (1) seconds\n    end\n    if <touching (爆発2 v)?> then\n        ダメージ [-16]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [14] [12]\n        else\n            ノックバック [-14] [12]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <(y position) < [-160]> then\n        ダメージ [-100]\n        wait (0.3) seconds\n    end\nend\n\ndefine ダメージ (ダメージ量)\nchange [hp v] by (ダメージ量)\nif <(pick random (1) to (2)) = [1]> then\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [攻撃 v]\n    end\n    switch costume to (player2 v)\nelse\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [攻撃2 v]\n    end\n    switch costume to (player2 v)\nend\nif <(HP) < [0.01]> then\n    switch costume to (player2 v)\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [倒した v]\n    end\n    set [ウィ v] to (x position)\n    set [ウィ２ v] to (y position)\n    repeat (4)\n        change [ghost v] effect by (25)\n    end\n    broadcast (ゾンビ v)\n    delete this clone\nend\n\nwhen I receive [スタート v]\ngo to x: (250) y: (0)\ngo to [front v] layer\nhide\nwait (0.1) seconds\nwait until <(Stage) = [1]>\nゾンビ召喚魔法 [1] [200] [0] [0.1] 秒待つ [1] 回繰り返す\nwait until <(Stage) = [2]>\nゾンビ召喚魔法 [2] [200] [0] [0.1] 秒待つ [2] 回繰り返す\nwait until <(Stage) = [9]>\nゾンビ召喚魔法 [2] [-100] [0] [0.3] 秒待つ [5] 回繰り返す\n\ndefine ノックバック (x) (y)\nset [ゾンビx v] to (x)\nset [ゾンビy v] to (y)\n\ndefine ゾンビ召喚魔法 (ステージ) (x) (y) (n) 秒待つ (a) 回繰り返す\nrepeat (a)\n    wait (n) seconds\n    go to x: (x) y: (y)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next v]\ndelete this clone\n\n@剣\n\nwhen flag clicked\nhide\nforever\n    if <[100] < (direction)> then\n        point in direction (100)\n    end\n    if <(direction) < [-100]> then\n        point in direction (-100)\n    end\nend\n\nwhen I receive [スタート v]\nset [攻撃 v] to [0]\nforever\n    switch costume to (持ち物)\n    if <[0] < ([direction v] of [プレイヤー v])> then\n        set [右左 v] to [右]\n        go to x: (([x position v] of [プレイヤー v]) + (30)) y: (([y position v] of [プレイヤー v]) + (-5))\n        if <(攻撃) = [0]> then\n            point in direction (-100)\n        end\n    else\n        set [右左 v] to [左]\n        go to x: (([x position v] of [プレイヤー v]) + (-30)) y: (([y position v] of [プレイヤー v]) + (-5))\n        if <(攻撃) = [0]> then\n            point in direction (100)\n        end\n    end\nend\n\nwhen I receive [スタート v]\nset [持ち物 v] to [1]\nif <(item (1) of [#gamemode v]) = [16]> then\n    set [持ち物 v] to [11]\nend\nshow\nforever\n    set size to (120) %\n    if <(item (1) of [#gamemode v]) = [10]> then\n        hide\n    end\n    if <(右左) = [右]> then\n        switch costume to ((持ち物) + (1))\n    else\n        switch costume to (持ち物)\n    end\nend\n\nwhen I receive [attack v]\nif <[0] < ([direction v] of [プレイヤー v])> then\n    point in direction (-100)\nelse\n    point in direction (100)\nend\nset [攻撃 v] to [1]\nif <(右左) = [右]> then\n    repeat (4)\n        turn right (15) degrees\n    end\nelse\n    repeat (4)\n        turn left (15) degrees\n    end\nend\nset [攻撃 v] to [0]\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>> then\n        broadcast (attack v)\n        if <(item (1) of [#gamemode v]) = [15]> then\n            broadcast (爆発剣 v)\n        end\n    end\n    wait until <not <<key (space v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>>>\nend\n\nwhen I receive [リスポーン v]\nwait () seconds\nshow\n\nwhen I receive [やられた v]\nhide\n\n@経験値\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [出現してから v] to [0]\nset [ball x v] to [0]\nset [ball y v] to [0]\nshow\nrepeat until <(clone削除して) = [1]>\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\n    if <(distance to [プレイヤー v]) < [70]> then\n        repeat (5)\n            point towards (プレイヤー v)\n            glide (0.01) secs to (プレイヤー v)\n        end\n        repeat (10)\n            change size by (-10)\n            change [ghost v] effect by (5)\n        end\n        change [経験値 v] by (1)\n        delete this clone\n    end\n    change [出現してから v] by (1)\n    set [ball x v] to ((ball x) * (0.95))\n    change x by (ball x)\n    if <touching (壁 v)?> then\n        change y by (1)\n        if <touching (壁 v)?> then\n            change y by (1)\n            if <touching (壁 v)?> then\n                change y by (1)\n                if <touching (壁 v)?> then\n                    change y by (1)\n                    if <touching (壁 v)?> then\n                        change y by (1)\n                        if <touching (壁 v)?> then\n                            change y by (1)\n                            if <touching (壁 v)?> then\n                                change x by ((0) - (ball x))\n                                change y by (-5)\n                                set [ball x v] to ((-0.8) * (ball x))\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [ball y v] by (-5)\n    change y by ((ball y) / (1.1))\n    if <touching (壁 v)?> then\n        change y by ((0) - (ball y))\n        set [ball y v] to ((-0.9) * (ball y))\n    end\n    change y by (-2)\n    if <touching (跳ね返す v)?> then\n        start sound [ v]\n        set [ball x v] to ((2) * (プレイヤー移動))\n        set [ball y v] to [15]\n    end\n    if <touching (ボール抹消ライン v)?> then\n        set y to (-47)\n        if <[0] < (ポイント)> then\n            broadcast (ボール消滅 v)\n        end\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ボールが存在するか v] to [0]\n        delete this clone\n    end\n    if <touching (列の底 v)?> then\n        set [ball y v] to [0]\n        set y to (-155)\n        change [自分が入った場所 v] by (5)\n        if <[3] < (x position)> then\n            if <(x position) < [47]> then\n                change [自分が入った場所 v] by (10)\n                set x to (24)\n            else\n                if <(x position) < [91]> then\n                    change [自分が入った場所 v] by (20)\n                    set x to (69)\n                else\n                    if <(x position) < [135]> then\n                        change [自分が入った場所 v] by (30)\n                        set x to (113)\n                    else\n                        if <(x position) < [179]> then\n                            change [自分が入った場所 v] by (40)\n                            set x to (157)\n                        else\n                            change [自分が入った場所 v] by (50)\n                            set x to (201)\n                        end\n                    end\n                end\n            end\n        end\n        add (自分が入った場所) to [ボール埋まった番号 v]\n        add (x position) to [未偽装 v]\n        add (y position) to [未偽装 v]\n        replace item (自分が入った場所) of [ボール埋まり v] with (costume [number v])\n        wait (0.1) seconds\n        broadcast (ボールに動きが.. v)\n        delete this clone\n    end\n    if <touching (偽ボール v)?> then\n        set [ball y v] to [0]\n        if <[3] < (x position)> then\n            if <(x position) < [47]> then\n                change [自分が入った場所 v] by (10)\n                set x to (24)\n            else\n                if <(x position) < [91]> then\n                    change [自分が入った場所 v] by (20)\n                    set x to (69)\n                else\n                    if <(x position) < [135]> then\n                        change [自分が入った場所 v] by (30)\n                        set x to (113)\n                    else\n                        if <(x position) < [179]> then\n                            change [自分が入った場所 v] by (40)\n                            set x to (157)\n                        else\n                            change [自分が入った場所 v] by (50)\n                            set x to (201)\n                        end\n                    end\n                end\n            end\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (1))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (2))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (3))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (4))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        if <[ボール埋まった番号 v] contains ((自分が入った場所) + (5))?> then\n            change [この列がどこまで埋まってるか取得 v] by (1)\n        end\n        change [自分が入った場所 v] by ((5) - (この列がどこまで埋まってるか取得))\n        set y to ((-155) + ((30) * ((5) - (letter (length of (自分が入った場所)) of (自分が入った場所)))))\n        if <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [0]> or <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [6]> or <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [7]> or <<(letter (length of (自分が入った場所)) of (自分が入った場所)) = [8]> or <(letter (length of (自分が入った場所)) of (自分が入った場所)) = [9]>>>>> then\n            if <[0] < (ポイント)> then\n                broadcast (ボール消滅 v)\n            end\n            set [ボールが存在するか v] to [0]\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n        add (自分が入った場所) to [ボール埋まった番号 v]\n        add (x position) to [未偽装 v]\n        add (y position) to [未偽装 v]\n        replace item (自分が入った場所) of [ボール埋まり v] with (costume [number v])\n        wait (0.1) seconds\n        broadcast (ボールに動きが.. v)\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nwait until <<[3] < (x position)> and <(y position) < [-30]>>\nset [ボールが存在するか v] to [0]\n\nwhen I receive [スタート v]\ndelete all of [ボール埋まった番号 v]\ndelete all of [ボール埋まり v]\nrepeat (5)\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\n    add [0] to [ボール埋まり v]\nend\nclear graphic effects\nset size to (65) %\nset rotation style [left-right v]\npoint in direction (90)\ngo to [front v] layer\ngo to x: (-100) y: (200)\ndelete all of [未偽装 v]\n\nwhen I receive [終わり v]\nstop [other scripts in sprite v]\n\ndefine クローン (x) (y) (k) (n)\ngo to x: (x) y: (y)\nswitch costume to (k)\nrepeat (n)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [ゾンビ v]\nadd [ゾンビ/経験値作成] to [1 v]\nクローン ((ウィ) + (pick random (-5) to (5))) (ウィ２) [1] [5]\n\nwhen I receive [スケルトン v]\nadd [スケルトン/経験値作成] to [1 v]\nクローン ((sukeruton keikenti) + (pick random (-5) to (5))) (sukeruton keikenti2) [1] [5]\n\nwhen I receive [チビ助 v]\nadd [スケルトン/経験値作成] to [1 v]\nクローン ((tibisuke keikenti) + (pick random (-5) to (5))) (tibisuke keikenti 2) [1] [5]\n\nwhen I receive [ウィザー v]\nクローン ((ウィ) + (pick random (-7) to (7))) (ウィ２) [1] [20]\n\nwhen I start as a clone\nforever\n    change [brightness v] effect by ([sin v] of (▶︎) )\nend\n\n@弓\n\nwhen flag clicked\nset size to (80) %\ngo to [front v] layer\nswitch costume to (1 v)\n\nwhen I start as a clone\nif <(costume [name v]) = [4]> then\n    go to [front v] layer\n    set [ghost v] effect to (0)\n    set rotation style [all around v]\n    show\n    repeat (2)\n        if <(スケルトンの方向) = [90]> then\n            change x by (20)\n        end\n        if <(スケルトンの方向) = [-90]> then\n            change x by (-20)\n        end\n    end\n    repeat until <<<<touching (_edge_ v)?> or <touching (プレイヤー v)?>> or <<touching (サボテン v)?> or <<touching (マグマ v)?> or <<touching (壁 v)?> or <<touching (地面ー石 v)?> or <touching (地面ー砂 v)?>>>>>> or <<touching (剣 v)?> and <(攻撃) = [1]>>>\n        if <(スケルトンの方向) = [90]> then\n            change x by (22)\n        end\n        if <(スケルトンの方向) = [-90]> then\n            change x by (-22)\n        end\n        change [ghost v] effect by (2)\n        change y by (-1.5)\n        turn left (0.5) degrees\n    end\n    repeat (2)\n        change [ghost v] effect by (50)\n    end\n    delete this clone\nend\nset rotation style [all around v]\n\nwhen I start as a clone\nforever\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    if <not <(costume [name v]) = [4]>> then\n        if <(スケルトンの存在) = [0]> then\n            delete this clone\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nif <(costume [name v]) = [4]> then\n    add [矢] to [1 v]\n    if <(...効果音　オンオフ) = [1]> then\n        start sound [弓矢射撃音 v]\n    end\n    wait until <touching (プレイヤー v)?>\n    broadcast (弓矢 v)\nend\n\nwhen I start as a clone\nshow\nif <not <(costume [name v]) = [4]>> then\n    forever\n        switch costume to (1 v)\n        wait (1.5) seconds\n        switch costume to (2 v)\n        wait (1) seconds\n        switch costume to (3 v)\n        wait (1) seconds\n        switch costume to (4 v)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <not <(costume [name v]) = [4]>> then\n    forever\n        if <(スケルトンの方向) = [90]> then\n            point in direction (-135)\n            go to x: ((スケルトン位置x) + (20)) y: ((スケルトン位置y) + (-2))\n        end\n        if <(スケルトンの方向) = [-90]> then\n            point in direction (45)\n            go to x: ((スケルトン位置x) + (-20)) y: ((スケルトン位置y) + (-2))\n        end\n    end\nend\n\n@スケルトン\n\nwhen I receive [スタート v]\ngo to x: (250) y: (0)\ngo to [front v] layer\nhide\nwait (0.01) seconds\nスケルトン召喚魔法 [1] [200] [0] [1] 秒待つ\n\nwhen I receive [スタート v]\nforever\n    set [スケルトン v] to ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))\nend\n\nwhen I receive [next v]\nset [スケルトンの存在 v] to [0]\ndelete this clone\n\nwhen I start as a clone\nadd [スケルトン/クローン] to [1 v]\nswitch costume to (スケルトン v)\nset [スケルトンの存在 v] to [1]\nclear graphic effects\nset size to (65) %\nwait (0.01) seconds\npoint in direction (-90)\nset [スケルトンx v] to [0]\nset [スケルトンy v] to [0]\nclear graphic effects\nshow\nforever\n    if <(位置リセット) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <([x position v] of [プレイヤー v]) < (スケルトン位置x)> then\n        set [スケルトンの方向 v] to [-90]\n        point in direction (-90)\n    else\n        set [スケルトンの方向 v] to [90]\n        point in direction (90)\n    end\n    set size to (100) %\n    set [スケルトン位置x v] to (x position)\n    set [スケルトン位置y v] to (y position)\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    if <<((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [-200]> and <((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [0]>> then\n        if <touching (水 v)?> then\n            change [スケルトンx v] by (-0.2)\n        else\n            change [スケルトンx v] by (-0.3)\n        end\n    end\n    if <<[-170] < ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))> and <((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [0]>> then\n        if <touching (水 v)?> then\n            change [スケルトンx v] by (0.2)\n        else\n            change [スケルトンx v] by (0.3)\n        end\n    end\n    if <<[0] < ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))> and <((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [170]>> then\n        if <touching (水 v)?> then\n            change [スケルトンx v] by (-0.2)\n        else\n            change [スケルトンx v] by (-0.3)\n        end\n    end\n    if <[200] < ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))> then\n        if <touching (水 v)?> then\n            change [スケルトンx v] by (0.2)\n        else\n            change [スケルトンx v] by (0.3)\n        end\n    end\n    set [スケルトンx v] to ((スケルトンx) * (0.9))\n    change x by (スケルトンx)\n    if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n        change y by (1)\n        if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n            change y by (1)\n            if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                change y by (1)\n                if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                    change y by (1)\n                    if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                        change y by (1)\n                        if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                            change y by (1)\n                            if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                                change x by ((0) - (スケルトンx))\n                                change y by (-5)\n                                if <not <(y position) < ([y position v] of [プレイヤー v])>> then\n                                    set [スケルトンx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [スケルトンy v] by (-0.9)\n    if <<touching (水 v)?> and <(スケルトンy) < [-2]>> then\n        set [スケルトンy v] to [-2]\n    end\n    change y by (スケルトンy)\n    if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n        change y by ((0) - (スケルトンy))\n        set [スケルトンy v] to [0]\n    end\n    change y by (-2)\n    if <<touching (水 v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [スケルトンy v] to [4]\n    else\n        if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n            if <(y position) < ([y position v] of [プレイヤー v])> then\n                if <[1] = (pick random (1) to (15))> then\n                    set [スケルトンy v] to [12]\n                end\n            end\n        end\n    end\n    change y by (1)\nend\n\nwhen I start as a clone\nforever\n    set [モブの位置x v] to (x position)\n    set [モブの位置y v] to (y position)\nend\n\ndefine ダメージ (ダメージ量)\nswitch costume to (スケルトン2 v)\nchange [hp v] by (ダメージ量)\nif <(HP) < [0.01]> then\n    replace item (12) of [適用 v] with ((item (12) of [適用 v]) + (1))\n    replace item (9) of [適用 v] with [0]\n    replace item (4) of [適用 v] with (x position)\n    replace item (5) of [適用 v] with (y position)\n    if <(...効果音　オンオフ) = [1]> then\n        start sound [Skeleton_death v]\n    end\n    set [sukeruton keikenti v] to (x position)\n    set [sukeruton keikenti2 v] to (y position)\n    broadcast (スケルトン v)\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    set [スケルトンの存在 v] to [0]\n    delete this clone\nelse\n    if <(...効果音　オンオフ) = [1]> then\n        if <(pick random (1) to (2)) = [1]> then\n            start sound [skeletonhurt2 v]\n        else\n            start sound [skeletondeath v]\n        end\n    end\nend\nwait (0.25) seconds\nswitch costume to (スケルトン v)\n\ndefine ノックバック (x) (y)\nset [スケルトンx v] to (x)\nset [スケルトンy v] to (y)\n\nwhen I start as a clone\nif <(item (2) of [#gamemode v]) = [12]> then\n    set [hp v] to [18]\nelse\n    set [hp v] to [22]\nend\nforever\n    if <touching (マグマ v)?> then\n        ダメージ [-4]\n        wait (0.25) seconds\n    end\n    if <touching (サボテン v)?> then\n        ダメージ [-3]\n        wait (0.3) seconds\n    end\n    if <<touching (剣 v)?> and <(攻撃) = [1]>> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        if <(結果) = [クリティカル攻撃可能]> then\n            ダメージ ([floor v] of (([costume name v] of [剣 v]) * (1.5)) )\n            set [攻撃位置x v] to (x position)\n            set [攻撃位置y v] to (y position)\n            broadcast (クリティカル v)\n        else\n            ダメージ ([costume name v] of [剣 v])\n        end\n        wait until <(攻撃) = [0]>\n        wait (0.3) seconds\n        switch costume to (スケルトン v)\n    end\n    if <touching (ソニックブーム補完用4 v)?> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        ダメージ [-16]\n        wait (0.3) seconds\n        switch costume to (スケルトン v)\n        wait (1) seconds\n    end\n    if <touching (爆発 v)?> then\n        ダメージ [-16]\n        if <(item (4) of [適用 v]) < (x position)> then\n            ノックバック [15] [12]\n        else\n            ノックバック [-15] [12]\n        end\n        wait (0.3) seconds\n    end\n    if <touching (爆発2 v)?> then\n        ダメージ [-14]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [14] [12]\n        else\n            ノックバック [-14] [12]\n        end\n        wait (0.3) seconds\n        switch costume to (スケルトン v)\n    end\n    if <(y position) < [-160]> then\n        ダメージ [-100]\n        wait (0.3) seconds\n    end\nend\n\ndefine スケルトン召喚魔法 (ステージ) (x) (y) (n) 秒待つ\nwait (n) seconds\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nadd [弓] to [1 v]\ncreate clone of (弓 v)\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [やられた v]\nset [スケルトンの存在 v] to [0]\ndelete this clone\n\n@ちび助\n\nwhen I receive [スタート v]\ngo to x: (250) y: (0)\ngo to [front v] layer\nhide\nwait (3) seconds\nwait until <[5] = (Stage)>\nrepeat (4)\n    スケルトン召喚魔法 [1] [200] [100] [0.2] 秒待つ\nend\nwait until <[7] = (Stage)>\nrepeat (2)\n    スケルトン召喚魔法 [1] [200] [100] [0.2] 秒待つ\nend\n\nwhen I receive [スタート v]\nforever\n    set [スケルトン v] to ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))\nend\n\nwhen I receive [next v]\nset [スケルトンの存在 v] to [0]\ndelete this clone\n\nwhen I start as a clone\nadd [スケルトン/クローン] to [1 v]\nswitch costume to (スケルトン v)\nset [スケルトンの存在 v] to [1]\nclear graphic effects\nset size to (65) %\nwait (0.01) seconds\npoint in direction (-90)\nset [ちびx v] to [0]\nset [ちびy v] to [0]\nclear graphic effects\nshow\nforever\n    if <(位置リセット) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <([x position v] of [プレイヤー v]) < (スケルトン位置x)> then\n        set [スケルトンの方向 v] to [-90]\n        point in direction (-90)\n    else\n        set [スケルトンの方向 v] to [90]\n        point in direction (90)\n    end\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    set [スケルトン位置x v] to (x position)\n    set [スケルトン位置y v] to (y position)\n    if <<((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [-200]> and <((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [0]>> then\n        if <touching (水 v)?> then\n            change [ちびx v] by (-0.2)\n        else\n            change [ちびx v] by (-1)\n        end\n    end\n    if <<[-170] < ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))> and <((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [0]>> then\n        if <touching (水 v)?> then\n            change [ちびx v] by (0.2)\n        else\n            change [ちびx v] by (1)\n        end\n    end\n    if <<[0] < ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))> and <((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x))) < [170]>> then\n        if <touching (水 v)?> then\n            change [ちびx v] by (-0.2)\n        else\n            change [ちびx v] by (-1)\n        end\n    end\n    if <[200] < ((round ([x position v] of [プレイヤー v])) - (round (スケルトン位置x)))> then\n        if <touching (水 v)?> then\n            change [ちびx v] by (0.2)\n        else\n            change [ちびx v] by (1)\n        end\n    end\n    set [ちびx v] to ((ちびx) * (0.9))\n    change x by (ちびx)\n    if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n        change y by (1)\n        if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n            change y by (1)\n            if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                change y by (1)\n                if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                    change y by (1)\n                    if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                        change y by (1)\n                        if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                            change y by (1)\n                            if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n                                change x by ((0) - (ちびx))\n                                change y by (-5)\n                                if <not <(y position) < ([y position v] of [プレイヤー v])>> then\n                                    set [ちびx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [ちびy v] by (-0.9)\n    if <<touching (水 v)?> and <(ちびy) < [-2]>> then\n        set [ちびy v] to [-2]\n    end\n    change y by (ちびy)\n    if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n        change y by ((0) - (ちびy))\n        set [ちびy v] to [0]\n    end\n    change y by (-2)\n    if <<touching (水 v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [ちびy v] to [4]\n    else\n        if <<touching (壁 v)?> or <<touching (地面ー砂 v)?> or <touching (地面ー石 v)?>>> then\n            if <(y position) < ([y position v] of [プレイヤー v])> then\n                if <[1] = (pick random (1) to (15))> then\n                    set [ちびy v] to [9]\n                end\n            end\n        end\n    end\n    change y by (1)\nend\n\nwhen I start as a clone\nforever\n    set [モブの位置x v] to (x position)\n    set [モブの位置y v] to (y position)\nend\n\ndefine ダメージ (ダメージ量)\nswitch costume to (スケルトン2 v)\nchange [hp v] by (ダメージ量)\nif <(HP) < [0.01]> then\n    replace item (12) of [適用 v] with ((item (12) of [適用 v]) + (1))\n    replace item (9) of [適用 v] with [0]\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [Skeleton_death v]\n    end\n    replace item (4) of [適用 v] with (x position)\n    replace item (5) of [適用 v] with (y position)\n    set [tibisuke keikenti v] to (x position)\n    set [tibisuke keikenti 2 v] to (y position)\n    broadcast (チビ助 v)\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    set [スケルトンの存在 v] to [0]\n    delete this clone\nelse\n    if <(...効果音　オンオフ) = [1]> then\n        if <(pick random (1) to (2)) = [1]> then\n            start sound [skeletonhurt2 v]\n        else\n            start sound [skeletondeath v]\n        end\n    end\nend\nwait (0.25) seconds\nswitch costume to (スケルトン v)\n\ndefine ノックバック (x) (y)\nset [ちびx v] to (x)\nset [ちびy v] to (y)\n\nwhen I start as a clone\nif <(item (2) of [設定 v]) = [12]> then\n    set [hp v] to [18]\nelse\n    set [hp v] to [22]\nend\nforever\n    if <touching (マグマ v)?> then\n        ダメージ [-4]\n        wait (0.25) seconds\n    end\n    if <touching (サボテン v)?> then\n        ダメージ [-3]\n        wait (0.3) seconds\n    end\n    if <<touching (剣 v)?> and <(攻撃) = [1]>> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        if <(結果) = [クリティカル攻撃可能]> then\n            ダメージ ([floor v] of (([costume name v] of [剣 v]) * (1.5)) )\n            set [攻撃位置x v] to (x position)\n            set [攻撃位置y v] to (y position)\n            broadcast (クリティカル v)\n        else\n            ダメージ ([costume name v] of [剣 v])\n        end\n        wait until <(攻撃) = [0]>\n        wait (0.3) seconds\n        switch costume to (スケルトン v)\n    end\n    if <touching (ソニックブーム補完用4 v)?> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        ダメージ [-16]\n        wait (0.3) seconds\n        switch costume to (スケルトン v)\n        wait (1) seconds\n    end\n    if <touching (爆発 v)?> then\n        ダメージ [-16]\n        if <(item (4) of [適用 v]) < (x position)> then\n            ノックバック [15] [12]\n        else\n            ノックバック [-15] [12]\n        end\n        wait (0.3) seconds\n    end\n    if <touching (爆発2 v)?> then\n        ダメージ [-14]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [14] [12]\n        else\n            ノックバック [-14] [12]\n        end\n        wait (0.3) seconds\n        switch costume to (スケルトン v)\n    end\n    if <(y position) < [-160]> then\n        ダメージ [-100]\n        wait (0.3) seconds\n    end\nend\n\ndefine スケルトン召喚魔法 (ステージ) (x) (y) (n) 秒待つ\nwait (n) seconds\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nadd [弓] to [1 v]\ncreate clone of (弓 v)\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [やられた v]\nset [スケルトンの存在 v] to [0]\ndelete this clone\n\n@ちび弓\n\nwhen flag clicked\nset size to (80) %\ngo to [front v] layer\nswitch costume to (1 v)\n\nwhen I start as a clone\nif <(costume [name v]) = [4]> then\n    go to [front v] layer\n    set [ghost v] effect to (0)\n    set rotation style [all around v]\n    show\n    repeat (2)\n        if <(スケルトンの方向) = [90]> then\n            change x by (20)\n        end\n        if <(スケルトンの方向) = [-90]> then\n            change x by (-20)\n        end\n    end\n    repeat until <<<<touching (_edge_ v)?> or <touching (プレイヤー v)?>> or <<touching (サボテン v)?> or <<touching (マグマ v)?> or <<touching (壁 v)?> or <<touching (地面ー石 v)?> or <touching (地面ー砂 v)?>>>>>> or <<touching (剣 v)?> and <(攻撃) = [1]>>>\n        if <(スケルトンの方向) = [90]> then\n            change x by (22)\n        end\n        if <(スケルトンの方向) = [-90]> then\n            change x by (-22)\n        end\n        change [ghost v] effect by (2)\n        change y by (-1.5)\n        turn left (0.5) degrees\n    end\n    repeat (2)\n        change [ghost v] effect by (50)\n    end\n    delete this clone\nend\nset rotation style [all around v]\n\nwhen I start as a clone\nforever\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    if <not <(costume [name v]) = [4]>> then\n        if <(スケルトンの存在) = [0]> then\n            delete this clone\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nif <(costume [name v]) = [4]> then\n    add [矢] to [1 v]\n    if <(...効果音　オンオフ) = [1]> then\n        start sound [弓矢射撃音 v]\n    end\n    wait until <touching (プレイヤー v)?>\n    broadcast (弓矢 v)\nend\n\nwhen I start as a clone\nshow\nif <not <(costume [name v]) = [4]>> then\n    forever\n        switch costume to (1 v)\n        wait (1.5) seconds\n        switch costume to (2 v)\n        wait (1) seconds\n        switch costume to (3 v)\n        wait (1) seconds\n        switch costume to (4 v)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <not <(costume [name v]) = [4]>> then\n    forever\n        if <(スケルトンの方向) = [90]> then\n            point in direction (-135)\n            go to x: ((スケルトン位置x) + (20)) y: ((スケルトン位置y) + (-2))\n        end\n        if <(スケルトンの方向) = [-90]> then\n            point in direction (45)\n            go to x: ((スケルトン位置x) + (-20)) y: ((スケルトン位置y) + (-2))\n        end\n    end\nend\n\n@エフェクト　ゾンビ\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nrepeat (20)\n    change x by (xspeed)\n    go to [front v] layer\n    change y by (vel)\n    change [ghost v] effect by (5)\n    change [vel v] by (-2)\n    turn right ((xspeed) / (3)) degrees\nend\ndelete this clone\n\nwhen I receive [ゾンビ v]\nadd [ゾンビのエフェクト] to [1 v]\nparticles\n\ndefine particles\ngo to x: (ウィ) y: (ウィ２)\nswitch costume to (costume1 v)\nrepeat (20)\n    set [vel v] to (pick random (10) to (20))\n    set [xspeed v] to (pick random (-8) to (8))\n    show\n    set size to (pick random (40) to (86)) %\n    create clone of (_myself_ v)\nend\nhide\n\n@ウィザー\n\nwhen I start as a clone\nadd [ウィザー] to [1 v]\nclear graphic effects\nset size to (100) %\nwait (0.2) seconds\npoint in direction (90)\nset [ウィザーx v] to [0]\nset [ウィザーy v] to [0]\nset [ウィザー攻撃方 v] to [0]\nclear graphic effects\nshow\nchange [brightness v] effect by (100)\nwait (3) seconds\nset [brightness v] effect to (0)\nset [ウィザードこx v] to (x position)\nset [ウィザードこ2 v] to (y position)\ncreate clone of (爆発！ v)\nforever\n    if <<[1] = (pick random (1) to (10))> and <(distance to [プレイヤー v]) < [150]>> then\n        set [ウィザー攻撃方 v] to [0]\n        change [ウィザーx v] by (5)\n        if <[270] < (x position)> then\n            change [ウィザーx v] by (-50)\n        end\n        set [ウィザードこx v] to (x position)\n        set [ウィザードこ2 v] to (y position)\n        create clone of (爆発！ v)\n    end\n    if <<[1] = (pick random (1) to (10))> and <not <(distance to [プレイヤー v]) < [150]>>> then\n        set [ウィザー攻撃方 v] to [1]\n        change [ウィザーx v] by (5)\n        if <[270] < (x position)> then\n            change [ウィザーx v] by (-30)\n        end\n        set [ウィザードこx v] to (x position)\n        set [ウィザードこ2 v] to (y position)\n        create clone of (爆発！ v)\n    end\n    set [ウィザー v] to (HP)\n    if <(位置リセット) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    if <([x position v] of [プレイヤー v]) < (x position)> then\n        point in direction (-90)\n        if <touching (水 v)?> then\n            change [ウィザーx v] by (-0.14)\n        else\n            change [ウィザーx v] by (-0.2)\n        end\n    end\n    if <(x position) < ([x position v] of [プレイヤー v])> then\n        point in direction (90)\n        if <touching (水 v)?> then\n            change [ウィザーx v] by (0.14)\n        else\n            change [ウィザーx v] by (0.2)\n        end\n    end\n    set [ウィザーx v] to ((ウィザーx) * (0.9))\n    change x by (ウィザーx)\n    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n        change y by (1)\n        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n            change y by (1)\n            if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                change y by (1)\n                if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                    change y by (1)\n                    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                        change y by (1)\n                        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                            change y by (1)\n                            if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                                change x by ((0) - (ウィザーx))\n                                change y by (-5)\n                                if <not <(y position) < ([y position v] of [プレイヤー v])>> then\n                                    set [ウィザーx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [ウィザーy v] by (-0.9)\n    if <<touching (水 v)?> and <(ウィザーy) < [-2]>> then\n        set [ウィザーy v] to [-2]\n    end\n    change y by (ウィザーy)\n    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n        change y by ((0) - (ウィザーy))\n        set [ウィザーy v] to [0]\n    end\n    change y by (-2)\n    if <<touching (水 v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [ウィザーy v] to [4]\n    else\n        set y to (120)\n    end\n    change y by (1)\nend\n\nwhen I start as a clone\nforever\n    set [モブの位置x v] to (x position)\n    set [モブの位置y v] to (y position)\nend\n\nwhen I receive [やられた v]\ndelete this clone\n\nwhen I start as a clone\nset [ウィザー ｈｐ v] to [50]\nset [ウィザー v] to [50]\nswitch costume to (player v)\nforever\n    show\n    if <touching (マグマ v)?> then\n        ダメージ [-2]\n        wait (0.25) seconds\n        switch costume to (player v)\n    end\n    if <touching (サボテン v)?> then\n        ダメージ [-1]\n        wait (0.25) seconds\n        switch costume to (player v)\n    end\n    if <<touching (剣 v)?> and <(攻撃) = [1]>> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [2] [0]\n        else\n            ノックバック [-2] [0]\n        end\n        if <(結果) = [クリティカル攻撃可能]> then\n            ダメージ ([floor v] of (([costume name v] of [剣 v]) * (1.5)) )\n            set [攻撃位置x v] to (x position)\n            set [攻撃位置y v] to (y position)\n            broadcast (クリティカル v)\n        else\n            ダメージ ([costume name v] of [剣 v])\n        end\n        wait until <(攻撃) = [0]>\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <touching (爆発 v)?> then\n        ダメージ [-1]\n        if <(item (4) of [適用 v]) < (x position)> then\n            ノックバック [3] [0]\n        else\n            ノックバック [3] [0]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <touching (ソニックブーム補完用4 v)?> then\n        ダメージ [-16]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n        wait (1) seconds\n    end\nend\n\ndefine ダメージ (ダメージ量)\nchange [hp v] by (ダメージ量)\nif <(pick random (1) to (2)) = [1]> then\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [攻撃 v]\n    end\n    switch costume to (player2 v)\nelse\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [攻撃2 v]\n    end\n    switch costume to (player2 v)\nend\nif <(HP) < [0.01]> then\n    switch costume to (player2 v)\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [倒した v]\n    end\n    set [ウィ v] to (x position)\n    set [ウィ２ v] to (y position)\n    broadcast (ウィザー v)\n    repeat (4)\n        set [ウィザー v] to [0]\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\nwhen I receive [スタート v]\ngo to x: (250) y: (0)\ngo to [front v] layer\nhide\nwait (5) seconds\nwait until <(Stage) = [10]>\nゾンビ召喚魔法 [1] [200] [100] [0.1] 秒待つ [1] 回繰り返す\n\ndefine ノックバック (x) (y)\nset [ウィザーx v] to (x)\nset [ウィザーy v] to (y)\n\ndefine ゾンビ召喚魔法 (ステージ) (x) (y) (n) 秒待つ (a) 回繰り返す\nrepeat (a)\n    wait (n) seconds\n    go to x: (x) y: (y)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next v]\ndelete this clone\n\n@エフェクト　sukeru ti\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nrepeat (20)\n    change x by (xspeed)\n    go to [front v] layer\n    change y by (vel)\n    change [ghost v] effect by (5)\n    change [vel v] by (-2)\n    turn right ((xspeed) / (3)) degrees\nend\ndelete this clone\n\nwhen I receive [スケルトン v]\nadd [スケルトンのエフェクト] to [1 v]\nh [1]\n\nwhen I receive [チビ助 v]\nadd [スケルトンのエフェクト] to [1 v]\nh [???]\n\ndefine h (1)\nif <(1) = [1]> then\n    go to x: (sukeruton keikenti) y: (sukeruton keikenti2)\n    switch costume to (costume1 v)\n    repeat (20)\n        set [vel v] to (pick random (10) to (20))\n        set [xspeed v] to (pick random (-8) to (8))\n        show\n        set size to (pick random (40) to (86)) %\n        create clone of (_myself_ v)\n    end\n    hide\nelse\n    if <(1) = [2]> then\n        go to x: (ウィ) y: (ウィ２)\n        switch costume to (costume1 v)\n        repeat (20)\n            set [vel v] to (pick random (10) to (20))\n            set [xspeed v] to (pick random (-8) to (8))\n            show\n            set size to (pick random (40) to (86)) %\n            create clone of (_myself_ v)\n        end\n        hide\n    else\n        go to x: (tibisuke keikenti) y: (tibisuke keikenti 2)\n        switch costume to (costume1 v)\n        repeat (20)\n            set [vel v] to (pick random (10) to (20))\n            set [xspeed v] to (pick random (-8) to (8))\n            show\n            set size to (pick random (40) to (86)) %\n            create clone of (_myself_ v)\n        end\n        hide\n    end\nend\n\nwhen I receive [ウィザー v]\nadd [ウィザーのエフェクト] to [1 v]\nh [2]\n\n@Info\n\nwhen flag clicked\nwait (0.01) seconds\nadd [Infoを表示] to [1 v]\nset [位置リセット v] to [0]\nhide\nwait (1) seconds\ngo to x: (0) y: (-45)\nswitch costume to (1 v)\nshow\nrepeat (30)\n    change y by ((0.25) * ((0) - (y position)))\nend\ngo to [front v] layer\nwait (3) seconds\nrepeat (9)\n    change y by (-5)\nend\nswitch costume to (2 v)\nrepeat (30)\n    change y by ((0.25) * ((0) - (y position)))\nend\nwait (3) seconds\nrepeat (9)\n    change y by (-5)\nend\nswitch costume to (3 v)\nrepeat (30)\n    change y by ((0.25) * ((0) - (y position)))\nend\nwait (4) seconds\nrepeat (9)\n    change y by (-5)\nend\nhide\n\nwhen I receive [スタート v]\nhide\n\nwhen [timer v] > (0.01)\nhide\n\n@サボテン\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nset [stage v] to [1]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Stage)\n    go to [back v] layer\nend\n\nset [...bgm オンオフ v] to [0]\n\nforever\n    set [clone削除して v] to [1]\nend\n\n@マグマ\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nset [stage v] to [1]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Stage)\n    go to [back v] layer\nend\n\n@水\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nset [stage v] to [1]\nshow\nforever\n    switch costume to (Stage)\n    go to [back v] layer\n    go to x: (0) y: (0)\nend\n\n@クモ\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nwait (0.2) seconds\npoint in direction (90)\nset [クモx v] to [0]\nset [クモy v] to [0]\nclear graphic effects\nshow\nforever\n    if <(位置リセット) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <(clone削除して) = [1]> then\n        forever\n            delete this clone\n        end\n    end\n    if <([x position v] of [プレイヤー v]) < (x position)> then\n        point in direction (-90)\n        if <touching (水 v)?> then\n            change [クモx v] by (-0.1)\n        else\n            change [クモx v] by (-0.18)\n        end\n    end\n    if <(x position) < ([x position v] of [プレイヤー v])> then\n        point in direction (90)\n        if <touching (水 v)?> then\n            change [クモx v] by (0.1)\n        else\n            change [クモx v] by (0.18)\n        end\n    end\n    set [クモx v] to ((クモx) * (0.9))\n    change x by (クモx)\n    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n        change y by (1)\n        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n            change y by (1)\n            if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                change y by (1)\n                if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                    change y by (1)\n                    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                        change y by (1)\n                        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                            change y by (1)\n                            if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n                                change x by ((0) - (クモx))\n                                change y by (-5)\n                                if <not <(y position) < ([y position v] of [プレイヤー v])>> then\n                                    set [クモx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [クモy v] by (-0.9)\n    if <<touching (水 v)?> and <(クモy) < [-2]>> then\n        set [クモy v] to [-2]\n    end\n    change y by (クモy)\n    if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n        change y by ((0) - (クモy))\n        set [クモy v] to [0]\n    end\n    change y by (-2)\n    if <<touching (水 v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [クモy v] to [4]\n    else\n        if <<touching (壁 v)?> or <<touching (壁 v)?> or <touching (壁 v)?>>> then\n            if <(y position) < ([y position v] of [プレイヤー v])> then\n                if <[1] = (pick random (1) to (15))> then\n                    set [クモy v] to [12]\n                end\n            end\n        end\n    end\n    change y by (1)\nend\n\nwhen I start as a clone\nforever\n    set [モブの位置x v] to (x position)\n    set [モブの位置y v] to (y position)\nend\n\nwhen I receive [やられた v]\ndelete this clone\n\nwhen I start as a clone\nif <(item (2) of [#gamemode v]) = [12]> then\n    set [hp v] to [18]\nelse\n    set [hp v] to [22]\nend\nswitch costume to (player v)\nforever\n    if <touching (マグマ v)?> then\n        ダメージ [-4]\n        wait (0.25) seconds\n        switch costume to (player v)\n    end\n    if <touching (サボテン v)?> then\n        ダメージ [-4]\n        wait (0.25) seconds\n        switch costume to (player v)\n    end\n    if <<touching (剣 v)?> and <(攻撃) = [1]>> then\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        if <(結果) = [クリティカル攻撃可能]> then\n            ダメージ ([floor v] of (([costume name v] of [剣 v]) * (1.5)) )\n            set [攻撃位置x v] to (x position)\n            set [攻撃位置y v] to (y position)\n            broadcast (クリティカル v)\n        else\n            ダメージ ([costume name v] of [剣 v])\n        end\n        wait until <(攻撃) = [0]>\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <touching (爆発 v)?> then\n        ダメージ [-15]\n        if <(item (4) of [適用 v]) < (x position)> then\n            ノックバック [15] [12]\n        else\n            ノックバック [-15] [12]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <touching (ソニックブーム補完用4 v)?> then\n        ダメージ [-16]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [10] [10]\n        else\n            ノックバック [-10] [10]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n        wait (1) seconds\n    end\n    if <touching (爆発2 v)?> then\n        ダメージ [-16]\n        if <([x position v] of [プレイヤー v]) < (x position)> then\n            ノックバック [14] [12]\n        else\n            ノックバック [-14] [12]\n        end\n        wait (0.3) seconds\n        switch costume to (player v)\n    end\n    if <(y position) < [-160]> then\n        ダメージ [-100]\n        wait (0.3) seconds\n    end\nend\n\ndefine ダメージ (ダメージ量)\nchange [hp v] by (ダメージ量)\nif <(pick random (1) to (2)) = [1]> then\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [攻撃 v]\n    end\n    switch costume to (player2 v)\nelse\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [攻撃2 v]\n    end\n    switch costume to (player2 v)\nend\nif <(HP) < [0.01]> then\n    switch costume to (player2 v)\n    if <[1] = (...効果音　オンオフ)> then\n        start sound [倒した v]\n    end\n    set [ウィ v] to (x position)\n    set [ウィ２ v] to (y position)\n    broadcast (ゾンビ v)\n    repeat (4)\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\nwhen I receive [スタート v]\ngo to x: (250) y: (0)\ngo to [front v] layer\nhide\nwait (0.01) seconds\nゾンビ召喚魔法 [1] [200] [0] [0.1] 秒待つ [1] 回繰り返す\nwait until <[2] = (Stage)>\nゾンビ召喚魔法 [1] [200] [0] [0.1] 秒待つ [1] 回繰り返す\nwait until <[3] = (Stage)>\nゾンビ召喚魔法 [1] [200] [0] [0.1] 秒待つ [3] 回繰り返す\nwait until <[4] = (Stage)>\nゾンビ召喚魔法 [1] [200] [0] [0.1] 秒待つ [3] 回繰り返す\nwait until <[5] = (Stage)>\n\ndefine ノックバック (x) (y)\nset [クモx v] to (x)\nset [クモy v] to (y)\n\ndefine ゾンビ召喚魔法 (ステージ) (x) (y) (n) 秒待つ (a) 回繰り返す\nrepeat (a)\n    wait (n) seconds\n    go to x: (x) y: (y)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next v]\ndelete this clone\n\n@ペン\n\ndefine 最大HPを (最大hp) に設定し、現在のHPを (現在のhp) にする\nset [最大hp v] to (最大hp)\nerase all\npen up\nset pen size to (15)\nset pen color to (#000000)\nset y to (-120)\nset x to (-225)\npen down\nset x to (225)\npen up\nset pen color to (#ff80f8)\nset pen size to (10)\nset x to (-225)\npen down\nchange x by ((450) / ((最大HP) / (ウィザー)))\npen up\nset pen color to (#ffffff)\nset pen size to (3)\nset x to (-225)\npen down\nchange x by ((450) / ((最大HP) / (ウィザー)))\n\nwhen flag clicked\nforever\n    if <([costume # v] of [壁 v]) = [10]> then\n        最大HPを [25] に設定し、現在のHPを (ウィザー) にする\n    else\n        erase all\n    end\nend\n\nwhen flag clicked\nwait until <([costume # v] of [壁 v]) = [10]>\nrepeat (10)\n    set [ウィザー v] to [25]\nend\n\n@爆発\n\nwhen I receive [ウィザー攻撃 v]\nadd [ウィザー攻撃] to [1 v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nstart sound [get4 v]\ngo to x: (ウィザー爆発x) y: (ウィザー爆発y)\nswitch costume to (explosion_0 v)\nshow\nrepeat (7)\n    wait () seconds\n    next costume\nend\nhide\ndelete this clone\n\n@スキン\n\nwhen flag clicked\nset size to (200) %\nhide\ncreate clone of (_myself_ v)\nwait (1) seconds\nswitch costume to (スキン)\nforever\n    go to x: (0) y: (0)\n    if <[スキン] = (どこの画面？)> then\n        set [スキン v] to (costume [name v])\n        show\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (音を鳴らして v)\n            if <(costume [number v]) = [2]> then\n                switch costume to (スティーブ v)\n            else\n                next costume\n            end\n            wait (1) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (変更 v)\nset size to (100) %\nforever\n    go to x: (0) y: (100)\n    if <[スキン] = (どこの画面？)> then\n        show\n    else\n        hide\n    end\nend\n\n@爆発！\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nif <[0] = (ウィザー攻撃方)> then\n    switch costume to (1 v)\n    go to x: (ウィザードこx) y: (ウィザードこ2)\n    glide (1) secs to x: (([x position v] of [プレイヤー v]) + (pick random (-10) to (10))) y: (([y position v] of [プレイヤー v]) - (pick random (-30) to (-40)))\n    set [ウィザー爆発x v] to (x position)\n    set [ウィザー爆発y v] to (y position)\nelse\n    switch costume to (2 v)\n    go to x: (ウィザードこx) y: (ウィザードこ2)\n    glide (1) secs to (random position v)\n    set [ウィザー爆発x v] to (x position)\n    set [ウィザー爆発y v] to (y position)\nend\nif <[0] = (ウィザー攻撃方)> then\n    broadcast (ウィザー攻撃 v)\nelse\n    broadcast (ウィザー青頭 v)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (壁 v)?> then\n        set [ウィザー爆発x v] to (x position)\n        set [ウィザー爆発y v] to (y position)\n        broadcast (ウィザー攻撃 v)\n        delete this clone\n    end\n    if <(clone削除して) = [1]> then\n        delete this clone\n    end\nend\n\n@cloud\n\ndefine ランキング追加 (スコア)\nhide list [ランキング v]\nset [値1 v] to [abcdefghijklmnopqrstuvwxyz-_1234567890:]\nset [値2 v] to [1234567890:]\ndelete all of [数値 v]\ndelete all of [ユーザー v]\ndelete all of [ランキング v]\nif <not <(length of (☁ 記録)) = [0]>> then\n    set [順番1 v] to [0]\n    repeat until <(length of (☁ 記録)) = (順番1)>\n        set [保存2 v] to []\n        set [保存1 v] to []\n        repeat until <(letter (保存1) of (値2)) = [:]>\n            set [保存1 v] to []\n            repeat (2)\n                change [順番1 v] by (1)\n                set [保存1 v] to (join (保存1) (letter (順番1) of (☁ 記録)))\n            end\n            set [保存2 v] to (join (保存2) (letter (保存1) of (値2)))\n        end\n        add (保存2) to [数値 v]\n    end\n    set [順番1 v] to [0]\n    repeat until <(length of (☁ ユーザー)) = (順番1)>\n        set [保存2 v] to []\n        set [保存1 v] to []\n        repeat until <(letter (保存1) of (値1)) = [:]>\n            set [保存1 v] to []\n            repeat (2)\n                change [順番1 v] by (1)\n                set [保存1 v] to (join (保存1) (letter (順番1) of (☁ ユーザー)))\n            end\n            set [保存2 v] to (join (保存2) (letter (保存1) of (値1)))\n        end\n        add (保存2) to [ユーザー v]\n    end\nend\nset [順番1 v] to [0]\nrepeat (length of [ユーザー v])\n    change [順番1 v] by (1)\n    set [数値 v] to []\n    set [順番2 v] to [0]\n    repeat ((length of (item (順番1) of [数値 v])) - (1))\n        change [順番2 v] by (1)\n        set [数値 v] to (join (数値) (letter (順番2) of (item (順番1) of [数値 v])))\n    end\n    add (join (item (順番1) of [ユーザー v]) (数値)) to [ランキング v]\nend\nset [順番1 v] to [0]\nadd (join (username) [:]) to [ユーザー v]\nadd (join (round (スコア)) [:]) to [数値 v]\nrepeat ((length of [数値 v]) - (1))\n    change [順番1 v] by (1)\n    if <(item (順番1) of [数値 v]) < (item (length of [数値 v]) of [数値 v])> then\n        set [保存1 v] to (item (length of [数値 v]) of [数値 v])\n        set [保存2 v] to (item (length of [ユーザー v]) of [ユーザー v])\n        replace item (length of [数値 v]) of [数値 v] with (item (順番1) of [数値 v])\n        replace item (順番1) of [数値 v] with (保存1)\n        replace item (length of [ユーザー v]) of [ユーザー v] with (item (順番1) of [ユーザー v])\n        replace item (順番1) of [ユーザー v] with (保存2)\n    end\nend\ndelete all of [ランキング v]\nset [順番1 v] to [0]\nrepeat (length of [ユーザー v])\n    change [順番1 v] by (1)\n    add (join (item (順番1) of [ユーザー v]) (item (順番1) of [数値 v])) to [ランキング v]\nend\nif <[10] < (length of [ランキング v])> then\n    delete (length of [数値 v]) of [数値 v]\n    delete (length of [ユーザー v]) of [ユーザー v]\n    delete (length of [ランキング v]) of [ランキング v]\nend\nset [順番1 v] to [0]\nset [保存1 v] to []\nrepeat until <(順番1) = (length of [数値 v])>\n    change [順番1 v] by (1)\n    set [順番2 v] to [0]\n    repeat (length of (item (順番1) of [数値 v]))\n        change [順番2 v] by (1)\n        set [順番3 v] to [0]\n        repeat until <(letter (順番3) of (値2)) = (letter (順番2) of (item (順番1) of [数値 v]))>\n            change [順番3 v] by (1)\n        end\n        if <(length of (順番3)) = [1]> then\n            set [保存1 v] to (join (保存1) (join [0] (順番3)))\n        else\n            set [保存1 v] to (join (保存1) (順番3))\n        end\n    end\nend\nset [順番1 v] to [0]\nset [保存2 v] to []\nrepeat (length of [ランキング v])\n    change [順番1 v] by (1)\n    set [順番2 v] to [0]\n    repeat (length of (item (順番1) of [ユーザー v]))\n        change [順番2 v] by (1)\n        set [順番3 v] to [0]\n        repeat until <(letter (順番2) of (item (順番1) of [ユーザー v])) = (letter (順番3) of (値1))>\n            change [順番3 v] by (1)\n        end\n        if <(length of (順番3)) = [1]> then\n            set [保存2 v] to (join (保存2) (join [0] (順番3)))\n        else\n            set [保存2 v] to (join (保存2) (順番3))\n        end\n    end\nend\nset [☁ 記録 v] to (保存1)\nset [☁ ユーザー v] to (保存2)\n\nwhen [0 v] key pressed\nif <(username) = [bakky_game]> then\n    set [☁ ユーザー v] to []\n    set [☁ 記録 v] to []\nend\n\nwhen I receive [クリア v]\nset [保存中？ v] to [1]\nif <(世界記録保存の許可) = [0]> then\n    ランキング追加 [11]\nend\nset [保存中？ v] to [0]\n\n@スプライト2\n\nwhen flag clicked\nhide\nforever\n    change [ghost v] effect by ([sin v] of (▶︎) )\nend\n\nwhen I receive [クリア v]\ngo to x: (0) y: (0)\nswitch costume to ( v)\nshow\nwait (1) seconds\nrepeat until <(保存中？) = [0]>\nswitch costume to (2 v)\nwait (1) seconds\nhide\n\n@爆発2\n\nwhen I receive [ウィザー青頭 v]\nadd [ウィザー攻撃] to [1 v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nstart sound [get4 v]\ngo to x: (ウィザー爆発x) y: (ウィザー爆発y)\nswitch costume to (explosion_0 v)\nshow\nrepeat (7)\n    wait () seconds\n    next costume\nend\nhide\ndelete this clone\n\n@kazari\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [スタート v]\nset [stage v] to [1]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Stage)\nend\n\n@Experience Bar\n\nwhen flag clicked\nset [経験値 v] to [0]\ngo to x: (0) y: (-120)\nhide\n\nwhen I receive [スタート v]\nshow\nforever\n    switch costume to ((経験値) + (1))\n    if <[19] < (経験値)> then\n        set [経験値 v] to [0]\n        if <(...効果音　オンオフ) = [1]> then\n            start sound [ v]\n        end\n    end\nend\n\n