SCRATCH block Platformer 
@Stage\n\nwhen flag clicked\nforever\n    play sound [Goodbye v] until done\nend\n\n@地面\n\nwhen flag clicked\nshow\nswitch costume to (コスチューム1 v)\ngo to x: (-10) y: (-9)\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (ゴール v)\n    end\nend\n\nwhen I receive [tugo v]\nif <not <(costume [number v]) = [7]>> then\n    next costume\n    set [いいよ v] to [1]\n    broadcast (next v)\nend\n\ngo to (random position v)\n\n@Cat\n\nwhen flag clicked\nshow\nbroadcast (メッセージ1 v)\n\nwhen I receive [メッセージ1 v]\nset [x v] to [0]\nset [y v] to [0]\nshow\ngo to x: (-171) y: (-77)\nset size to (70) %\nswitch costume to (cat-a v)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (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 y by (1)\n                                if <touching (地面 v)?> then\n                                    change y by (-6)\n                                end\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 [-8]\n                                    else\n                                        set [x v] to [8]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\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 by (-1)\n    if <touching (地面 v)?> then\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    change y by (y)\n    change [y v] by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to [0]\n    end\n    if <touching color (#ff8c16)?> then\n        set [y v] to [20]\n    end\n    if <touching color (#58c059)?> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        go to x: (-217) y: (-94)\n        go to [front v] layer\n        set [ghost v] effect to (0)\n    end\n    if <(x position) > [240]> then\n        broadcast (tugo v)\n        hide\n        set [いいよ v] to [1]\n        wait until <(いいよ) = [0]>\n        go to x: (-217) y: (-70)\n        set [いいよ v] to [0]\n        show\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> or <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>>> then\n        next costume\n        wait (0.1) seconds\n    end\n    if <<touching (地面 v)?> and <not <touching color (#ffb331)?>>> then\n        repeat until <not <touching (地面 v)?>>\n            change y by (1)\n        end\n    end\nend\n\nchange x by (-2)\n\nclear graphic effects\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [ゴール v]\nforever\n    show\nend\n\n@スプライト2\n\nwhen I receive [next v]\ngo to [front v] layer\nshow\ngo to x: (-490) y: (0)\nglide (0.3) secs to x: (-25) y: (0)\nglide (0.5) secs to x: (25) y: (0)\nglide (0.3) secs to x: (490) y: (0)\nbroadcast (やめ v)\nhide\n\nwhen I receive [やめ v]\nset [いいよ v] to [0]\n\nwhen flag clicked\nhide\n\n@バック\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    set [ghost v] effect to (30)\nend\n\n@スプライト3\n\nwhen flag clicked\nshow\n\nwhen I receive [ゴール v]\nhide\n\n@サムネ\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nset size to (90) %\ngo to x: (27) y: (-24)\n\n@さむね　背景\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\ngo to x: (-1) y: (0)\nset [ghost v] effect to (100)\n\n
scratchのブロックをテーマにしたPlatformer です\n\nモバイル　　　　　　　　パソコン\n画面をタッチで操作　　　矢印キー操作\n\n緑のブロックはアウト、変数（オレンジ）のブロックは大ジャンプです\n\n\n