BULLET PLATFORMER~
@Stage\n\nwhen flag clicked\nswitch backdrop to (サムネ v)\nset [brightness v] effect to (100)\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nbroadcast (title v)\n\nwhen I receive [boss v]\nrepeat (50)\n    change volume by (-2)\n    change [color v] effect by (1.1)\n    change [brightness v] effect by (1)\nend\nstop [other scripts in sprite v]\nstop all sounds\nset volume to (100) %\nforever\n    play sound [bgm_maoudamashii_cyber12 v] until done\nend\n\nwhen I receive [撃破 v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in sprite v]\nstop all sounds\nset volume to (100) %\nforever\n    play sound [bgm_maoudamashii_cyber31 v] until done\nend\n\nset [color v] effect to (0)\n\nwhen I receive [クリア v]\nrepeat (100)\n    change volume by (-1)\nend\nswitch backdrop to (背景3 v)\nstop [other scripts in sprite v]\nclear graphic effects\nstop all sounds\nset volume to (100) %\nforever\n\nplay sound [bgm_maoudamashii_cyber31 v] until done\n\nwhen I receive [start v]\nswitch backdrop to (背景2 v)\nset volume to (100) %\nforever\n    play sound [bgm_maoudamashii_cyber31 v] until done\nend\n\nset [rank v] to [0]\n\nwhen I receive [game over v]\nrepeat (100)\n    change volume by (-1)\nend\nstop [other scripts in sprite v]\nclear graphic effects\nstop all sounds\nstop [all v]\n\n@スプライト1\n\nwhen I start as a clone\nif <(costume [name v]) = [目]> then\n    set size to (20) %\n    switch costume to (目 v)\n    show\n    go to [front v] layer\n    forever\n        go to x: (自:x) y: (自：y)\n        if <key (right arrow v) pressed?> then\n            switch costume to (目 v)\n        end\n        if <key (left arrow v) pressed?> then\n            switch costume to (目2 v)\n        end\n    end\nelse\n    set size to (100) %\n    go to [back v] layer\n    switch costume to (太陽 v)\n    set [ghost v] effect to (80)\n    go to x: (0) y: (-240)\n    repeat (960)\n        set [pixelate v] effect to (pick random (1) to (60))\n        change y by (0.25)\n    end\n    forever\n        set [pixelate v] effect to (pick random (1) to (60))\n    end\nend\n\nchange [ghost v] effect by (-0.1)\n\nif <key (up arrow v) pressed?> then\n    set [jump v] to [15]\n    repeat until <(JUMP) < [-13]>\n        change [jump v] by (-1)\n    end\n    set [jump v] to [0]\nend\n\ndefine 1\nif <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 (-5)\n                        change [x v] by (speed)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwait until <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> and <not <touching (地面 v)?>>>\n\nif <touching (地面 v)?> then\n    repeat until <not <touching (地面 v)?>>\n        change y by (1)\n    end\nend\n\nchange y by (JUMP)\n\nchange [y v] by (JUMP)\n\nchange [x v] by (-2000)\n\nwhen I receive [boss v]\nif <(costume [name v]) = [体]> then\n    switch costume to (太陽 v)\n    create clone of (_myself_ v)\n    switch costume to (体 v)\nend\n\nwhen I receive [クリア v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        repeat (1)\n            delete this clone\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nset [hp v] to [100]\nset size to (20) %\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    1\n    if <key (right arrow v) pressed?> then\n        set [speed v] to [5]\n        change [x v] by (-5)\n        broadcast (右 v)\n    end\n    if <key (left arrow v) pressed?> then\n        set [speed v] to [-5]\n        change [x v] by (5)\n        broadcast (左 v)\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (目 v)\ncreate clone of (_myself_ v)\nswitch costume to (体 v)\nshow\nforever\n    set [自:x v] to (x position)\n    set [自：y v] to (y position)\n    if <key (right arrow v) pressed?> then\n        change [自:x v] by (4)\n    end\n    if <key (left arrow v) pressed?> then\n        change [自:x v] by (-4)\n    end\n    if <key (up arrow v) pressed?> then\n        change [自：y v] by (4)\n    end\n    if <key (down arrow v) pressed?> then\n        change [自：y v] by (-4)\n    end\nend\n\nwhen I receive [start v]\nset [jump v] to [0]\nforever\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (地面 v)?>> then\n        set [jump v] to [16]\n    end\n    change y by (1)\n    change [jump v] by (-1)\n    change y by (JUMP)\n    if <touching (地面 v)?> then\n        change y by ((JUMP) * (-1))\n        set [jump v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nwait (0) seconds\nwait until <(x) < [-4000]>\nbroadcast (クリア v)\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        repeat (1)\n            delete this clone\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(y position) < [-180]> then\n        broadcast (GAME OVER v)\n        stop [this script v]\n    end\nend\n\n@地面\n\nwhen flag clicked\n\nwhen I start as a clone\nshow\nif < (costume [name v]) contains [road]?> then\n    forever\n        show\n        if <<[460] < (x position)> or <(x position) < [-460]>> then\n            hide\n        end\n        go to x: ((x) + (X座標)) y: ((Y座標) + (Y座標))\n    end\nend\n\ndefine x座標 (x) Y座標 (y) にコスチューム (名前) を設置\nswitch costume to (名前)\nset [x座標 v] to (x)\nset [y座標 v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\n\nwhen I receive [撃破 v]\nif <(costume [name v]) = [road8]> then\n    switch costume to (road9 v)\nend\n\nwhen I receive [クリア v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\nwhen I receive [start v]\nset [x v] to [0]\nset [y v] to [0]\nx座標 [0] Y座標 [0] にコスチューム [road] を設置\nx座標 [465] Y座標 [0] にコスチューム [road2] を設置\nx座標 [930] Y座標 [0] にコスチューム [road3] を設置\nx座標 [1365] Y座標 [0] にコスチューム [road4] を設置\nx座標 [1830] Y座標 [0] にコスチューム [road5] を設置\nx座標 [2300] Y座標 [0] にコスチューム [road6] を設置\nx座標 [2765] Y座標 [0] にコスチューム [road7] を設置\nx座標 [3230] Y座標 [0] にコスチューム [road8] を設置\nx座標 [3690] Y座標 [0] にコスチューム [road10] を設置\nx座標 [4150] Y座標 [0] にコスチューム [road11] を設置\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\n@雲\n\nwhen I start as a clone\nif < (costume [name v]) contains [雲]?> then\n    set [ghost v] effect to ((100) - (([abs v] of (いろいろ) ) * (15)))\n    show\n    go to x: (465) y: (y position)\n    repeat until <(x position) < [0]>\n        change [エックス v] by (いろいろ)\n    end\n    next costume\n    create clone of (_myself_ v)\n    switch costume to ((costume [number v]) - (1))\n    repeat until <(x position) < [-460]>\n        change [エックス v] by (いろいろ)\n    end\n    delete this clone\nend\n\nchange x by (10)\n\ngo to x: (465) y: (-150)\nswitch costume to (雲 v)\n1\ngo to x: (465) y: (-100)\nswitch costume to (雲2 v)\n1\ngo to x: (465) y: (-50)\nswitch costume to (雲3 v)\n1\n\ndefine 1\nset [いろいろ v] to [-7]\ncreate clone of (_myself_ v)\nset [いろいろ v] to [-5]\ncreate clone of (_myself_ v)\nset [いろいろ v] to [-3]\ncreate clone of (_myself_ v)\n\ngo to x: (465) y: (-150)\nswitch costume to (雲 v)\nset [いろいろ v] to [-7]\ncreate clone of (_myself_ v)\ngo to x: (465) y: (-100)\nswitch costume to (雲2 v)\nset [いろいろ v] to [-5]\ncreate clone of (_myself_ v)\ngo to x: (465) y: (-50)\nswitch costume to (雲3 v)\nset [いろいろ v] to [-3]\ncreate clone of (_myself_ v)\n\ndefine 2\nset [いろいろ v] to [-1]\nrepeat (10)\n    next costume\n    create clone of (_myself_ v)\n    change y by (-20)\n    change [いろいろ v] by (-1)\nend\n\nwhen I start as a clone\nif < (costume [name v]) contains [雲]?> then\n    set [エックス v] to [465]\n    forever\n        hide\n        set x to (エックス)\n        if <(表示) = [1]> then\n            show\n        end\n    end\nend\n\nset [エックス v] to (x position)\n\nwhen I receive [右 v]\nchange [エックス v] by ((いろいろ) / (-6))\n\nwhen I receive [左 v]\nchange [エックス v] by ((いろいろ) / (6))\n\nwhen I start as a clone\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\nwhen I receive [start v]\nset [表示 v] to [1]\n\nwhen flag clicked\nset [削除 v] to [0]\nset [表示 v] to [0]\ngo to x: (465) y: (-50)\n2\n\n@陰陽\n\nwhen I start as a clone\nshow\n位置設定\n\ndefine x座標 (x) Y座標 (y) にコスチューム (名前) を設置 タイプ (type) 間隔 (w) 秒\nswitch costume to (名前)\nset [wait v] to (w)\nset [x座標 v] to (x)\nset [y座標 v] to (y)\nset [type v] to (type)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [name v]) = [陰陽]> then\n    set size to (20) %\n    forever\n        change [y座標 v] by ([cos v] of (いろいろ) )\n        change [いろいろ v] by (5)\n    end\nend\n\ndefine 敵弾生成 X座標 (x) y座標 (y) 種類 (type) 向き (111) カスタム (a)\nadd (x) to [敵弾x v]\nadd (y) to [敵弾y v]\nadd (type) to [敵弾種類 v]\nadd (111) to [敵弾向き v]\nadd (a) to [敵弾その他 v]\ncreate clone of (スプライト2 v)\n\nwhen I start as a clone\nif <(costume [name v]) = [陰陽]> then\n    set rotation style [don't rotate v]\n    forever\n        if <not <<[240] < (x position)> or <(x position) < [-240]>>> then\n            if <(type) = [0]> then\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [0] 向き (direction) カスタム []\n            else\n                if <(type) = [1]> then\n                    turn right (14) degrees\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [1] 向き (direction) カスタム []\n                else\n                    if <(type) = [2]> then\n                        wait (1) seconds\n                        point towards (スプライト1 v)\n                        敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                        turn right (5) degrees\n                        敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                        turn right (-10) degrees\n                        敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                    else\n                        if <(type) = [3]> then\n                    end\n                end\n            end\n            wait (((1) - ((rank) / (30))) * (wait)) seconds\n        end\n    end\nelse\n    if <(costume [name v]) = [水母]> then\n        set size to (25) %\n        set rotation style [don't rotate v]\n        wait until <(x) < [-2800]>\n        broadcast (boss v)\n        wait (1) seconds\n        羽\n        switch costume to (水母 v)\n        wait (1) seconds\n        set [いろいろ v] to [15]\n        repeat (25)\n            change [y座標 v] by (いろいろ)\n            change [いろいろ v] by (-0.5)\n        end\n        wait (1) seconds\n        エフェクト1\n        forever\n            repeat (((rank) / (7)) + (2))\n                repeat (((rank) / (2)) + (10))\n                    敵弾生成 X座標 ((X座標) + (pick random (-80) to (80))) y座標 ((y position) + (pick random (-80) to (0))) 種類 [1] 向き (pick random (1) to (360)) カスタム [3]\n                    rank依存 [0.5] 秒待つ\n                end\n                wait (1.5) seconds\n                rank依存 [1.5] 秒待つ\n            end\n            repeat (80)\n                switch costume to (水母2 v)\n                change [x座標 v] by (-5)\n            end\n            repeat (2)\n                repeat (8)\n                    turn right (14) degrees\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [1] 向き (direction) カスタム [4]\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム [4]\n                    switch costume to (水母3 v)\n                    repeat (10)\n                        change [x座標 v] by (10)\n                    end\n                end\n                repeat (8)\n                    turn right (14) degrees\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [1] 向き (direction) カスタム [4]\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム [4]\n                    switch costume to (水母2 v)\n                    repeat (10)\n                        change [x座標 v] by (-10)\n                    end\n                end\n            end\n            repeat (80)\n                switch costume to (水母3 v)\n                change [x座標 v] by (5)\n            end\n            set [いろいろ v] to [0]\n            switch costume to (水母 v)\n            repeat (20)\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (いろいろ) カスタム [4]\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き ([abs v] of (いろいろ) ) カスタム [4]\n                change [いろいろ v] by (-21)\n                repeat (4)\n                    change [y座標 v] by (-2)\n                end\n            end\n            point towards (スプライト1 v)\n            敵弾生成 X座標 (X座標) y座標 (y position) 種類 [3] 向き (direction) カスタム [-90]\n            repeat (5)\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [4] 向き (pick random (1) to (360)) カスタム [90]\n                wait (1) seconds\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [4] 向き (pick random (1) to (360)) カスタム [-90]\n                wait (1) seconds\n            end\n            switch costume to (水母2 v)\n            repeat (80)\n                change [x座標 v] by (-5)\n                change [y座標 v] by (-0.5)\n            end\n            repeat (2)\n                repeat (8)\n                    turn right (14) degrees\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [0] 向き (direction) カスタム [0]\n                    switch costume to (水母3 v)\n                    repeat (10)\n                        change [x座標 v] by (10)\n                    end\n                end\n                repeat (8)\n                    turn right (14) degrees\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [0] 向き (direction) カスタム [0]\n                    switch costume to (水母2 v)\n                    repeat (10)\n                        change [x座標 v] by (-10)\n                    end\n                end\n            end\n            switch costume to (水母3 v)\n            repeat (80)\n                change [x座標 v] by (5)\n            end\n            switch costume to (水母 v)\n            repeat (100)\n                change [y座標 v] by (2)\n            end\n            repeat (2)\n                set [いろいろ v] to [4]\n                repeat (10)\n                    turn right (15) degrees\n                    敵弾生成 X座標 (X座標) y座標 (y position) 種類 [5] 向き (direction) カスタム (いろいろ)\n                    change [いろいろ v] by (0.15)\n                    wait (0.1) seconds\n                end\n                wait (1) seconds\n            end\n            wait (3) seconds\n            repeat (5)\n                敵弾生成 X座標 ((X座標) + (pick random (-80) to (80))) y座標 ((y position) + (pick random (-80) to (0))) 種類 [3] 向き (pick random (1) to (360)) カスタム [-90]\n                wait (1.5) seconds\n            end\n            wait (2) seconds\n            repeat (5)\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [3] 向き (direction) カスタム [-90]\n                point towards (スプライト1 v)\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                turn right (15) degrees\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                turn right (-30) degrees\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                turn right (45) degrees\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                turn right (-60) degrees\n                敵弾生成 X座標 (X座標) y座標 (y position) 種類 [2] 向き (direction) カスタム []\n                wait (2) seconds\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [陰陽]> then\n    repeat (20)\n        wait until <touching (銃 v)?>\n        start sound [Laser2 v]\n    end\n    start sound [se_maoudamashii_explosion06 v]\n    switch costume to (爆発 v)\n    create clone of (_myself_ v)\n    delete this clone\nelse\n    if <(costume [name v]) = [水母]> then\n        wait until <(x) < [-2800]>\n        wait (2) seconds\n        repeat ((500) + ((rank) * (20)))\n            wait until <touching (銃 v)?>\n            broadcast (damage v)\n            start sound [Laser2 v]\n        end\n        stop [other scripts in sprite v]\n        broadcast (１ v)\n        set [いろいろ v] to [1]\n        start sound [se_maoudamashii_explosion06 v]\n        switch costume to (波 v)\n        create clone of (_myself_ v)\n        switch costume to (水母 v)\n        wait (1) seconds\n        repeat (10)\n            wait (0.1) seconds\n            change [ghost v] effect by (10)\n            start sound [se_maoudamashii_explosion06 v]\n            敵弾生成 X座標 (X座標) y座標 (y position) 種類 [6] 向き (direction) カスタム (いろいろ)\n            switch costume to (波 v)\n            create clone of (_myself_ v)\n            switch costume to (水母 v)\n            change [いろいろ v] by (1)\n        end\n        start sound [se_maoudamashii_explosion05 v]\n        broadcast (撃破 v)\n        delete this clone\n    else\n        if < (costume [name v]) contains [爆発]?> then\n            set size to (50) %\n            switch costume to (爆発 v)\n            repeat (10)\n                next costume\n            end\n            delete this clone\n        end\n    end\nend\n\nwait (0.1) seconds\n\nforever\n\nforever\n\nforever\n\nwhen I start as a clone\nif <(costume [name v]) = [水母]> then\n    forever\n        replace item (1) of [boss x y v] with (X座標)\n        replace item (2) of [boss x y v] with (Y座標)\n    end\nelse\n    if <(costume [name v]) = [羽]> then\n        set rotation style [all around v]\n        point in direction (0)\n        set size to (10) %\n        set [ghost v] effect to (100)\n        repeat (50)\n            change [ghost v] effect by (-1)\n            change size by (1)\n            turn right (いろいろ) degrees\n            change [いろいろ v] by ((いろいろ) / (-50))\n        end\n        set [いろいろ3 v] to [0]\n        forever\n            turn right ([cos v] of (いろいろ3) ) degrees\n            change [いろいろ3 v] by ((2) * (いろいろ))\n        end\n    else\n        if <(costume [name v]) = [羽2]> then\n            set rotation style [all around v]\n            point in direction (0)\n            set size to (10) %\n            set [ghost v] effect to (100)\n            repeat (50)\n                change [ghost v] effect by (-1)\n                change size by (1)\n                turn left (いろいろ) degrees\n                change [いろいろ v] by ((いろいろ) / (-50))\n            end\n            set [いろいろ3 v] to [0]\n            forever\n                turn left ([cos v] of (いろいろ3) ) degrees\n                change [いろいろ3 v] by ((2) * (いろいろ))\n            end\n        else\n            if <(costume [name v]) = [波]> then\n                clear graphic effects\n                go to [front v] layer\n                set [brightness v] effect to (100)\n                set size to (20) %\n                repeat (20)\n                    change size by (10)\n                    change [ghost v] effect by (5)\n                end\n                delete this clone\n            end\n        end\n    end\nend\n\nx座標 [3000] Y座標 [-100] にコスチューム [水母] を設置 タイプ [0] 間隔 [] 秒\n\nrepeat (10)\n    敵弾生成 X座標 ((X座標) + (pick random (-80) to (80))) y座標 ((y position) + (pick random (-80) to (0))) 種類 [1] 向き (pick random (1) to (360)) カスタム [3]\n    wait (0.5) seconds\nend\n\ndefine 羽\nswitch costume to (羽2 v)\nset [いろいろ v] to [3]\ncreate clone of (_myself_ v)\nset [いろいろ v] to [3.5]\ncreate clone of (_myself_ v)\nset [いろいろ v] to [4]\ncreate clone of (_myself_ v)\nswitch costume to (羽 v)\nset [いろいろ v] to [3]\ncreate clone of (_myself_ v)\nset [いろいろ v] to [3.5]\ncreate clone of (_myself_ v)\nset [いろいろ v] to [4]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\ndelete all of [boss x y v]\nrepeat (2)\n    add [なにか] to [boss x y v]\nend\n\nwhen [space v] key pressed\n\nwhen I receive [撃破 v]\nif < (costume [name v]) contains [羽]?> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I receive [クリア v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\ndefine エフェクト1\nrepeat (5)\n    wait (0.2) seconds\n    switch costume to (波 v)\n    create clone of (_myself_ v)\n    switch costume to (水母 v)\nend\n\ndelete this clone\n\ndefine 位置設定\nforever\n    show\n    if < (costume [name v]) contains [羽]?> then\n        if <(costume [name v]) = [羽]> then\n            if <<[220] < (x position)> or <(x position) < [-330]>> then\n                hide\n            end\n        else\n            if <<[330] < (x position)> or <(x position) < [-220]>> then\n                hide\n            end\n        end\n        go to x: ((x) + (item (1) of [boss x y v])) y: ((y) + (item (2) of [boss x y v]))\n    else\n        if <<[240] < (x position)> or <(x position) < [-240]>> then\n            hide\n        end\n        go to x: ((x) + (X座標)) y: ((y) + (Y座標))\n    end\nend\n\nwhen I receive [１ v]\nif <(costume [name v]) = [水母]> then\n    位置設定\nend\n\nstop [other scripts in sprite v]\n\nwhen I receive [start v]\nhide\nset size to (20) %\nset [x v] to [0]\nset [y v] to [0]\nwait (0) seconds\nset [wait v] to [0.5]\nx座標 [300] Y座標 [-100] にコスチューム [陰陽] を設置 タイプ [0] 間隔 [1] 秒\nx座標 [500] Y座標 [120] にコスチューム [陰陽] を設置 タイプ [2] 間隔 [3] 秒\nx座標 [900] Y座標 [100] にコスチューム [陰陽] を設置 タイプ [1] 間隔 [1] 秒\nx座標 [1200] Y座標 [-100] にコスチューム [陰陽] を設置 タイプ [0] 間隔 [1] 秒\nx座標 [1500] Y座標 [-100] にコスチューム [陰陽] を設置 タイプ [2] 間隔 [1] 秒\nx座標 [1750] Y座標 [-60] にコスチューム [陰陽] を設置 タイプ [1] 間隔 [0.5] 秒\nx座標 [2300] Y座標 [-80] にコスチューム [陰陽] を設置 タイプ [1] 間隔 [0.5] 秒\nx座標 [2400] Y座標 [-100] にコスチューム [陰陽] を設置 タイプ [1] 間隔 [0.2] 秒\nx座標 [3000] Y座標 [-100] にコスチューム [水母] を設置 タイプ [0] 間隔 [] 秒\nswitch costume to (羽2 v)\n\ndefine rank依存 (number or text) 秒待つ\nwait ((number or text) - ((rank) / (15))) seconds\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\n@スプライト2\n\ndefine (number1) 度づつ (number2) 回繰り返す\nrepeat (number2)\n    turn right (number1) degrees\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nif <(costume [name v]) = [生産]> then\n    change [オーダー v] by (1)\n    hide\n    go to x: ((x) + (item (オーダー) of [敵弾x v])) y: ((y) + (item (オーダー) of [敵弾y v]))\n    set [x座標 v] to (item (オーダー) of [敵弾x v])\n    set [y座標 v] to (item (オーダー) of [敵弾y v])\n    switch costume to (弾 v)\n    point in direction (item (オーダー) of [敵弾向き v])\n    set [color v] effect to (pick random (1) to (130))\n    if <(item (オーダー) of [敵弾種類 v]) = [0]> then\n        set [speed v] to (((rank) / (5)) + (3))\n        point towards (スプライト1 v)\n        turn left ((11) * (((rank) + (2)) / (2))) degrees\n        (11) 度づつ ((rank) + (1)) 回繰り返す\n    else\n        if <(item (オーダー) of [敵弾種類 v]) = [1]> then\n            set [speed v] to ((2.5) + (rank))\n            円 ((8) + (rank))\n        else\n            if <(item (オーダー) of [敵弾種類 v]) = [2]> then\n                set [speed v] to (((rank) / (2)) + (3))\n                列弾 (((rank) / (2.5)) + (2))\n            else\n                if <(item (オーダー) of [敵弾種類 v]) = [3]> then\n                    交差\n                else\n                    if <(item (オーダー) of [敵弾種類 v]) = [4]> then\n                        set [speed v] to ((4) + ((rank) / (6)))\n                        switch costume to (弾2 v)\n                        set [いろいろ v] to (item (オーダー) of [敵弾その他 v])\n                        a\n                    else\n                        if <(item (オーダー) of [敵弾種類 v]) = [5]> then\n                            set [speed v] to (item (オーダー) of [敵弾その他 v])\n                            switch costume to (弾3 v)\n                            円 ((rank) + (7))\n                        else\n                            if <(item (オーダー) of [敵弾種類 v]) = [6]> then\n                                set [speed v] to (item (オーダー) of [敵弾その他 v])\n                                switch costume to (弾 v)\n                                円 ((rank) + (15))\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    delete this clone\nelse\n    if <(costume [name v]) = [弾]> then\n        最初の処理\n        repeat (200)\n            移動処理\n        end\n        repeat (20)\n            change [ghost v] effect by (5)\n            移動処理\n        end\n        delete this clone\n    else\n        if <<(costume [name v]) = [弾2]> or <(costume [name v]) = [弾3]>> then\n            最初の処理\n            repeat (30)\n                移動処理\n            end\n            if <(costume [name v]) = [弾2]> then\n                change [絶対角度 v] by (いろいろ)\n            else\n                point towards (スプライト1 v)\n                if < (direction) contains [-]?> then\n                    set [絶対角度 v] to (([abs v] of (direction) ) + (90))\n                else\n                    set [絶対角度 v] to ((join [-] (direction)) + (90))\n                end\n                change [speed v] by (-1)\n            end\n            repeat (100)\n                移動処理\n            end\n            repeat (20)\n                change [ghost v] effect by (5)\n                移動処理\n            end\n            delete this clone\n        end\n    end\nend\n\nif < (x) contains [-]?> then\n    set [いろいろ3\(座標\) v] to [0]\nelse\n    set [絶対角度 v] to [0]\nend\n\nwhen I start as a clone\nif < (costume [name v]) contains [弾]?> then\n    forever\n        go to x: ((x) + (X座標)) y: ((Y座標) + (y))\n        if <<(distance to [スプライト1 v]) < [10]> and <not <touching (_edge_ v)?>>> then\n            start sound [ポップ v]\n            change [hp v] by (-10)\n            delete this clone\n        end\n        if <touching (シールド v)?> then\n            change [hp v] by (1)\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\n\nif < (X座標) contains [-]?> then\n    set [x座標 v] to ([abs v] of (X座標) )\nelse\n    set [x座標 v] to (join [-] (X座標))\nend\n\ndefine 最初の処理\nset size to (30) %\nif < (direction) contains [-]?> then\n    set [絶対角度 v] to (([abs v] of (direction) ) + (90))\nelse\n    set [絶対角度 v] to ((join [-] (direction)) + (90))\nend\nchange [x座標 v] by ((speed) * ([cos v] of (絶対角度) ))\nchange [y座標 v] by ((speed) * ([sin v] of (絶対角度) ))\n\ndefine 移動処理\nshow\nchange [x座標 v] by ((speed) * ([cos v] of (絶対角度) ))\nchange [y座標 v] by ((speed) * ([sin v] of (絶対角度) ))\nif <touching (_edge_ v)?> then\n    hide\n    if <<(y position) < [-180]> or <[180] < (y position)>> then\n        delete this clone\n    end\n    if <<((x) + (X座標)) < [-1000]> or <[1000] < ((x) + (X座標))>> then\n        delete this clone\n    end\nend\n\ndefine 円 (way)\nrepeat (way)\n    create clone of (_myself_ v)\n    turn right ((360) / (way)) degrees\nend\n\nwhen I receive [クリア v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\ndefine 列弾 (number or text)\nrepeat (number or text)\n    create clone of (_myself_ v)\n    change [speed v] by (1)\nend\n\n円 ((6) + (rank))\n\ndefine 交差\nset [speed v] to [3]\nrepeat (((rank) / (3)) + (1))\n    switch costume to (弾2 v)\n    set [いろいろ v] to ([abs v] of (item (オーダー) of [敵弾その他 v]) )\n    円 [15]\n    turn right (12) degrees\n    set [いろいろ v] to (item (オーダー) of [敵弾その他 v])\n    円 [15]\n    change [speed v] by (0.5)\nend\n\nwhen I receive [start v]\nforever\n    switch costume to (生産 v)\n    set [オーダー v] to [0]\n    delete all of [敵弾x v]\n    delete all of [敵弾y v]\n    delete all of [敵弾向き v]\n    delete all of [敵弾種類 v]\n    delete all of [敵弾その他 v]\n    wait (pick random (1) to (3.0)) seconds\nend\n\ndefine a\nrepeat (((rank) / (2)) + (1))\n    円 ((rank) + (7))\n    change [speed v] by (1)\nend\n\ndefine a2\nrepeat (((rank) / (5)) + (1))\n    円 ((6) + (rank))\n    change [speed v] by (3)\nend\n\n列弾 (((rank) / (2)) + (1))\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\n@銃\n\nwhen I start as a clone\nset rotation style [all around v]\nturn right ((pick random (2) to (-2)) * (1)) degrees\nswitch costume to (line v)\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [クリア v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <key (z v) pressed?> then\n        start sound [魔王魂  銃05 v]\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (コスチューム1 v)\nset size to (200) %\nshow\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\n    set [brightness v] effect to (0)\n    go to (スプライト1 v)\n    set rotation style [left-right v]\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\n@演出\n\nwhen I receive [クリア v]\nif <(costume [name v]) = [ああああ]> then\n    switch costume to (コスチューム1 v)\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (100)\n    show\n    repeat (100)\n        change [ghost v] effect by (-1)\n    end\n    set [削除 v] to [1]\n    broadcast (削除 v)\n    repeat (100)\n        change [ghost v] effect by (1)\n    end\n    hide\nend\n\nstop [all v]\n\nwhen I start as a clone\nshow\nforever\n    if <(削除) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I receive [damage v]\nif <(costume [name v]) = [line]> then\n    change x by ((480) / (((rank) * (-20)) - (500)))\nend\n\nwhen I receive [boss v]\nif <(costume [name v]) = [ああああ]> then\n    go to x: (0) y: (173)\n    switch costume to (line v)\n    create clone of (_myself_ v)\n    switch costume to (ああああ v)\nend\n\nwhen I receive [撃破 v]\nif <(costume [name v]) = [line]> then\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [line2]> then\n    go to x: (-185) y: (100)\n    forever\n        set x to ((ゲージ) - (290))\n    end\nelse\n    if <(costume [name v]) = [line3]> then\n        go to x: (-185) y: (130)\n        forever\n            set y to (120)\n            set x to ((HP) - (290))\n            if <(HP) < [0]> then\n                broadcast (GAME OVER v)\n            end\n        end\n    else\n        if <(costume [name v]) = [枠]> then\n            go to x: (-145) y: (100)\n            go to [front v] layer\n        end\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (ああああ v)\nif <(costume [name v]) = [ああああ]> then\n    set [削除 v] to [0]\n    hide\n    switch costume to (line2 v)\n    create clone of (_myself_ v)\n    switch costume to (枠 v)\n    create clone of (_myself_ v)\n    switch costume to (line3 v)\n    create clone of (_myself_ v)\n    switch costume to (ああああ v)\nend\n\nwhen flag clicked\nswitch costume to (ああああ v)\n\nwhen I receive [game over v]\nif <(costume [name v]) = [ああああ]> then\n    set [brightness v] effect to (-100)\n    switch costume to (コスチューム1 v)\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    show\n    repeat (100)\n        change [ghost v] effect by (-1)\n    end\n    set [削除 v] to [1]\n    broadcast (削除 v)\n    repeat (100)\n        change [ghost v] effect by (1)\n    end\n    hide\nelse\n    stop [other scripts in sprite v]\n    forever\n        if <(削除) = [1]> then\n            delete this clone\n        end\n    end\nend\n\n@シールド\n\nwhen flag clicked\n\nwhen I receive [start v]\nset [ゲージ v] to [100]\nforever\n    change [ゲージ v] by (1)\n    if <[100] < (ゲージ)> then\n        set [ゲージ v] to [100]\n    end\n    if <[100] < (HP)> then\n        set [hp v] to [100]\n    end\nend\n\nwhen I receive [start v]\nforever\n    hide\n    if <key (x v) pressed?> then\n        if <[0] < (ゲージ)> then\n            change [ゲージ v] by (-5)\n            go to (スプライト1 v)\n            set size to (150) %\n            go to [front v] layer\n            show\n        else\n            repeat (10)\n                wait until <not <key (x v) pressed?>>\n            end\n        end\n    end\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        stop [other scripts in sprite v]\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [クリア v]\nstop [other scripts in sprite v]\nforever\n    if <(削除) = [1]> then\n        stop [other scripts in sprite v]\n        hide\n        stop [this script v]\n    end\nend\n\n@タイトル\n\nwhen I start as a clone\nshow\nif <(costume [name v]) = [タイトル]> then\n    go to x: (0) y: (-190)\n    set [ghost v] effect to (20)\n    set [いろいろ v] to [23]\n    repeat (23)\n        change y by (いろいろ)\n        change [いろいろ v] by (-1)\n    end\n    set [いろいろ v] to [0]\n    switch costume to (ボタン v)\n    create clone of (_myself_ v)\n    switch costume to (タイトル v)\n    forever\n        turn left (([cos v] of (いろいろ) ) / (3)) degrees\n        change [いろいろ v] by (10)\n    end\nelse\n    if < (costume [name v]) contains [\(\)]?> then\n        set size to (10) %\n        set [ghost v] effect to (100)\n        set [brightness v] effect to (100)\n        repeat (10)\n            change size by (10)\n            change [ghost v] effect by (-10)\n        end\n        set [いろいろ v] to [0]\n        forever\n            set size to (110) %\n            if <touching (mouse-pointer v)?> then\n                set size to (140) %\n                if <mouse down?> then\n                    if < (costume [name v]) contains [biginner]?> then\n                        set [rank v] to [0]\n                    else\n                        if < (costume [name v]) contains [easy]?> then\n                            set [rank v] to [2]\n                        else\n                            if < (costume [name v]) contains [normal]?> then\n                                set [rank v] to [4]\n                            else\n                                if < (costume [name v]) contains [hard]?> then\n                                    set [rank v] to [10]\n                                else\n                                    if < (costume [name v]) contains [lunatic]?> then\n                                        set [rank v] to [14]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                    broadcast (start v)\n                end\n            end\n            turn left (([cos v] of (いろいろ) ) / (2)) degrees\n            change [いろいろ v] by (10)\n        end\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nhide\nswitch costume to (タイトル v)\ncreate clone of (_myself_ v)\nswitch costume to (ああああ v)\n\nwhen I start as a clone\nshow\nif <(costume [name v]) = [ボタン]> then\n    go to x: (0) y: (-50)\n    set size to (10) %\n    set [ghost v] effect to (100)\n    repeat (10)\n        change size by (10)\n        change [ghost v] effect by (-10)\n    end\n    set [いろいろ v] to [0]\n    forever\n        set size to (110) %\n        if <touching (mouse-pointer v)?> then\n            set size to (140) %\n            if <mouse down?> then\n                broadcast (難易度 v)\n            end\n        end\n        turn left (([cos v] of (いろいろ) ) / (2)) degrees\n        change [いろいろ v] by (10)\n    end\nend\n\nwhen I receive [難易度 v]\nif <<(costume [name v]) = [ボタン]> or <(costume [name v]) = [タイトル]>> then\n    stop [other scripts in sprite v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nelse\n    switch costume to (biginner\(\) v)\n    go to x: (0) y: (100)\n    create clone of (_myself_ v)\n    switch costume to (easy\(\) v)\n    go to x: (0) y: (50)\n    create clone of (_myself_ v)\n    switch costume to (normal\(\) v)\n    go to x: (0) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (hard\(\) v)\n    go to x: (0) y: (-50)\n    create clone of (_myself_ v)\n    switch costume to (lunatic\(\) v)\n    go to x: (0) y: (-100)\n    create clone of (_myself_ v)\n    switch costume to (ああああ v)\nend\n\nwhen I receive [start v]\nif < (costume [name v]) contains [\(\)]?> then\n    stop [other scripts in sprite v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\n@サムネ\n\nwhen I receive [start v]\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\nend\n\n
初めて作ったプラットフォーマーです！！\nなのでちゃんとできてるか心配です。\nThis is my first platformer!!\n\n＜How to Play＞\n十字キー　移動\narrow keys・・・Move\n\nzキー　ショット\nxキー　シールド\nz key・・・Shot\nx key・・・Shield