Platformer 【プラットフォーマー】

Instructions: 日本語\n矢印キー移動 or タップ\n拡散希望！\nクラウドデータでみんなの記録を見れるようにしまし\nた！（クラウド変数初めて）\n\nEnglish\nArrow key move\nIt is compatible with smartphones!\nHope to spread!\nNow you can see everyone's records in cloud data! (Cloud variable for the first time)

@Stage\n\nwhen flag clicked\nforever\n    play sound [TheFatRat & JJD - Prelude \(VIP Edit\) v] until done\n    play sound [Valiant 2017 - BEK & Wallin, Moberg myfreemp3 v] until done\n    play sound [TheFatRat - Jackpot \(Jackpot EP Track 1\) v] until done\n    play sound [Syn Cole - Feel Good \[NCS Release\]  v] until done\n    play sound [Syn Cole - Gizmo \[NCS Release\]2 v] until done\n    play sound [RetroVision - Puzzle v] until done\n    play sound [Axol x Alex Skrindo - You v] until done\n    play sound [BGM \(1\) v] until done\n    play sound [bgm v] until done\n    play sound [ED2 v] until done\nend\n\n@プレイヤー\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\npoint in direction (90)\nshow\nset [1234 v] to [0]\nset rotation style [left-right v]\nset size to (100) %\nset [ghost v] effect to (0)\ngo to x: (-182) y: (30)\ngo [backward v] (1) layers\nforever\n    if <(1234) = [0]> then\n        if <(カウントダウン) = [1]> then\n            動作\n            しゃがむ\n        end\n    end\nend\n\ndefine 死\ngo to [front v] layer\nset [変数 v] to [0]\npoint in direction (90)\nset rotation style [all around v]\nset [出久 v] to (pick random (15) to (18))\nstart sound [　　 v]\nrepeat until <[-180] > (y position)>\n    show\n    go to [front v] layer\n    turn right (出久) degrees\n    change y by (出久)\n    change [出久 v] by (-1)\nend\nhide\nswitch costume to (コスチューム1 3 v)\nwait (0.5) seconds\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-20)\npoint in direction (90)\nset [変数 v] to [9999]\nshow\nset rotation style [left-right v]\n\ndefine 動作\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n    change [x v] by (-1)\n    point in direction (-90)\nend\nif <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n    change [x v] by (1.1)\n    point in direction (90)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\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 (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 ((x) * (-1))\n                                    change y by (-8)\n                                    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n                                        if <(x) > [0]> then\n                                            set [x v] to [-7]\n                                        else\n                                            set [x v] to [7]\n                                        end\n                                        set [y v] to [14]\n                                    else\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (-1)\nif <touching (地面 v)?> then\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n        set [y v] to [14]\n    end\nend\nchange y by (1)\nchange [y v] by (-1)\nchange y by (y)\nif <touching (地面 v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nif <(x position) > [230]> then\n    broadcast (next v)\n    go to x: (-182) y: (30)\n    hide\nend\nif <touching (障害物 v)?> then\n    死\nend\n\nwhen I receive [1 v]\ngo to x: (-182) y: (30)\nshow\n\nwhen flag clicked\nforever\n    if <(y position) = (pick random (-180) to (-188))> then\n        死\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    next costume\nend\n\npoint in direction (120)\nset rotation style [all around v]\n\n@地面\n\nwhen flag clicked\nerase all\ngo to [back v] layer\nswitch costume to (コスチューム1 v)\n\nwhen I receive [next v]\nerase all\nwait (1) seconds\nnext costume\n\nwhen flag clicked\nshow\nset [gole v] to [0]\nshow variable [time v]\nshow variable [coin v]\nhide variable [あなたのtime v]\nset [☁ みんなのtime v] to [0]\nforever\n    if <(costume [name v]) = [クリア]> then\n        broadcast (クリア v)\n        show variable [あなたのtime v]\n        set [あなたのtime v] to (time)\n        set [gole v] to [1]\n        stop [other scripts in sprite v]\n        if <(time) > (☁ みんなのTime)> then\n            set [☁ みんなのtime v] to (time)\n        end\n    end\nend\n\nset [☁ みんながクリアした合計回数 v] to [0]\n\n@障害物\n\nwhen flag clicked\nshow\nswitch costume to (針 v)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next v]\nwait (1) seconds\nnext costume\n\n@sun\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset [θ v] to [0]\nshow\nset size to (100) %\nforever\n    change [θ v] by (1)\n    change size by ([cos v] of (θ) )\nend\n\n@next\n\nwhen I receive [next v]\nset [next v] to [1]\nswitch costume to (pick random (1) to (3))\nset [1234 v] to [1]\nshow\ngo to x: (420) y: (-2)\nset [idou v] to [29]\nrepeat until <(idou) = [0]>\n    change [idou v] by (-1)\nend\nif <(idou) = [0]> then\n    repeat until <(idou) = [30]>\n        change [idou v] by (1)\n    end\nend\nif <(idou) = [30]> then\n    hide\nend\nset [1234 v] to [0]\nbroadcast (1 v)\nset [next v] to [0]\n\nwhen flag clicked\nforever\n    change x by ((idou) * (-1))\nend\n\n@coin\n\nwhen flag clicked\nset [coin v] to [0]\nforever\n    hide\nend\n\nwhen I receive [next v]\nwait (1) seconds\nrepeat (3)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to (random position v)\nwait (1) seconds\nshow\nif <<<touching (障害物 v)?> or <touching (地面 v)?>> or <<touching (プレイヤー v)?> or <<touching (_edge_ v)?> or <touching (sun v)?>>>> then\n    go to (random position v)\nend\nforever\n    if <touching (プレイヤー v)?> then\n        change [coin v] by (1)\n        start sound [決定、ボタン押下34 v]\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen flag clicked\nhide variable [☁ みんなのtime v]\nset [gole v] to [0]\nset [next v] to [0]\nset [time v] to [0]\nforever\n    if <not <<(next) = [1]> or <(Gole) = [1]>>> then\n        wait (0.08) seconds\n        change [time v] by (0.1)\n    end\nend\n\n