Doodle platformer 10


@Stage\n\nwhen flag clicked\nswitch backdrop to (xy-grid-30px v)\n\n@E\n\nwhen flag clicked\nerase all\nswitch costume to (コスチューム1 v)\n\nforever\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nif <key (down arrow v) pressed?> then\n    switch costume to (主人公2 v)\nelse\n    switch costume to (主人公1 v)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n初期化\n\nwhen flag clicked\nreset timer\nforever\n    if <touching color (#00f2ff)?> then\n        初期化\n        change [落ちた数 v] by (1)\n    end\nend\n\nwhen flag clicked\nrepeat until <(backdrop [number v]) = [16]>\n\ndefine 初期化\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-210) y: (30)\nswitch costume to (主人公1 v)\n\nwait (0.1) seconds\n\nwhen I receive [開始 v]\nshow\nhide variable [x v]\nhide variable [y v]\n初期化\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    change x by (X)\n    set [x v] to ((X) * (0.9))\n    if <touching color (#000000)?> then\n        change y by (6)\n    end\n    if <touching color (#000000)?> then\n        change y by (-6)\n        change x by ((X) * (-1))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [15]\n            if <(X) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    if <<touching color (#ff8800)?> or <touching color (#949494)?>> then\n        初期化\n    end\n    change y by (Y)\n    if <touching color (#000000)?> then\n        change y by (() - (Y))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [15]\n        end\n    end\n    if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < [0]>>> then\n        switch costume to (主人公2 v)\n    else\n        switch costume to (主人公1 v)\n    end\n    if <key (s v) pressed?> then\n        初期化\n    end\nend\n\nwhen I receive [記録なしだった… v]\nforever\n    if <(backdrop [number v]) = [16]> then\n        say [記録なし…]\n    end\nend\n\nwhen I receive [記録を言って！ v]\nsay (Time)\nshow variable [タイム v]\n\nwhen I receive [次だよ！ v]\n初期化\n\nwhen flag clicked\nforever\n    if <<touching color (#ff1919)?> or <touching color (#ff0404)?>> then\n        初期化\n    end\nend\n\nwhen flag clicked\nset size to (70) %\n\nwhen I receive [次だよ！ v]\nhide\nwait (0.5) seconds\nshow\n初期化\n\n@スプライト1\n\nwhen flag clicked\npoint in direction (0)\nglide (1) secs to x: (209) y: (152)\n\nwhen I receive [開始 v]\nrepeat until <(backdrop [number v]) = [16]>\n    turn right (10) degrees\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nnext backdrop\nforever\n    set [タイム v] to [なし]\n    broadcast (記録なしだった… v)\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@記録管理\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        if <(タイム) < [クラウドタイム]> then\n            set [タイム v] to (タイム)\n            if <(タイム) = [記録なしだった…]> then\n                set [タイム v] to [x]\n            end\n        end\n    end\nend\n\nwhen I receive [開始 v]\nset [タイム v] to [0]\nrepeat until <(backdrop [number v]) = [16]>\n    change [タイム v] by (1)\n    wait (1) seconds\n    if <(backdrop [number v]) = [16]> then\n        broadcast (記録を言う v)\n    end\nend\n\n@サムネ\n\nwhen flag clicked\nhide\nbroadcast (開始 v)\n\nshow\nwait (0.5) seconds\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    hide variable [タイム v]\nend\n\n@緑の旗\n\nwhen I receive [開始 v]\nhide\nreset timer\nshow\nforever\n    if <touching (プレイヤー v)?> then\n        broadcast (次だよ！ v)\n        next backdrop\n    end\n    if <(backdrop [number v]) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (203) y: (-95)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (e v)?> then\n        broadcast (次だよ！ v)\n        next backdrop\n        初期化\n    end\nend\n\nwhen I receive [次だよ！ v]\nhide\nwait (0.5) seconds\nshow\n\n@nextボタン\n\nwhen flag clicked\npoint in direction (0)\nglide (1) secs to x: (209) y: (152)\n\nwhen this sprite clicked\nnext backdrop\nforever\n    set [time v] to [なし]\n    broadcast (記録なしだった… v)\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        hide\n    end\nend\n\nwhen I receive [開始 v]\nrepeat until <(backdrop [number v]) = [16]>\n    turn right (10) degrees\nend\n\n@記録感知器\n\nwhen flag clicked\nhide\n\nwhen I receive [開始 v]\nset [time v] to [0]\nrepeat until <(backdrop [number v]) = [16]>\n    change [time v] by (1)\n    wait (1) seconds\n    if <(backdrop [number v]) = [16]> then\n        broadcast (記録を言って！ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        if <(Time) < (☁ Time)> then\n            set [☁ time v] to (Time)\n            if <(Time) = [記録なしだった…]> then\n                set [☁ time v] to [x]\n            end\n        end\n    end\nend\n\n@next2\n\nwhen flag clicked\ngo to x: (16) y: (15)\nhide\n\nwhen I receive [次だよ！ v]\nshow\nwait (0.5) seconds\nhide\n\n@next\n\nwhen flag clicked\ngo to x: (-2) y: (-3)\nhide\n\nwhen I receive [次 v]\nshow\nwait (0.5) seconds\nhide\n\n@針素材\n\nwhen flag clicked\nforever\n    hide\nend\n\n