白黒プラットフォーマー-White and Black platformer-
@Stage\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [time v]\nset [time v] to [0]\nbroadcast (start v)\n\nwhen I receive [start v]\nreset timer\nrepeat until <(next) = [19]>\n    set [time v] to ((round ((timer) * (10))) / (10))\nend\nforever\n    if <(time) < (☁ time)> then\n        set [☁ time v] to (time)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [はるのようせい v] until done\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset rotation style [left-right v]\nshow\nset [a v] to [0]\ngo to x: (-200) y: (-10)\nset [x v] to [0]\nset [next v] to [1]\nset [y v] to [0]\nswitch costume to (コスチューム1 v)\nforever\n    if <(costume [number v]) = [1]> then\n        if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<[0] < (mouse x)> and <mouse down?>>> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n        if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < [0]> and <mouse down?>>> then\n            point in direction (-90)\n            change [x v] by (-1)\n        end\n        set [x v] to ((X) * (0.92))\n        change x by (X)\n        if <(costume [number v]) = [1]> then\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) - (X))\n                                        change y by (-5)\n                                        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>>> then\n                                            if <[0] < (X)> then\n                                                set [x v] to [-10]\n                                            else\n                                                set [x v] to [10]\n                                            end\n                                            set [y v] to [15]\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            change [y v] by (-1)\n            change y by (Y)\n            if <(costume [number v]) = [1]> then\n                if <touching (黒 v)?> then\n                    change y by ((0) - (Y))\n                    set [y v] to [0]\n                end\n                change y by (-2)\n                if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>>> and <<touching (黒 v)?> or <touching color (#000000)?>>> then\n                    set [y v] to [15]\n                end\n                change y by (1)\n                if <<touching color (#ff0000)?> or <touching (トゲ v)?>> then\n                    go to x: (-200) y: (-50)\n                    set [x v] to [0]\n                    set [y v] to [0]\n                end\n                if <[230] < (x position)> then\n                    change [next v] by (1)\n                    set [x v] to [0]\n                    set [y v] to [0]\n                    go to x: (-200) y: (-50)\n                    broadcast (next v)\n                    wait (0.5) seconds\n                end\n                if <<(X) < [0.1]> and <[-0.1] < (X)>> then\n                    switch costume to (コスチューム1 v)\n                end\n                if <touching (白 v)?> then\n                    set [x v] to [0]\n                    set [y v] to [0]\n                    go to x: (-200) y: (-50)\n                    wait (0.5) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (スプライト2 v)?> then\n        go to x: (-200) y: (-50)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\nend\n\nwhen I receive [チェンジ v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(y position) < [-140]> then\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-200) y: (-50)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nwait until <<touching color (#808080)?> or <touching color (#2f2f2f)?>>\nbroadcast (隠す v)\n\nforever\n    \nend\n\ngo to x: (-200) y: (-50)\n\nset [x v] to [0]\n\nwhen I receive [start v]\nset rotation style [left-right v]\nshow\nset [a v] to [0]\ngo to x: (-200) y: (-10)\nset [x v] to [0]\nset [next v] to [1]\nset [y v] to [0]\nswitch costume to (コスチューム1 v)\nforever\n    if <(costume [number v]) = [2]> then\n        if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<[0] < (mouse x)> and <mouse down?>>> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n        if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < [0]> and <mouse down?>>> then\n            point in direction (-90)\n            change [x v] by (-1)\n        end\n        set [x v] to ((X) * (0.92))\n        change x by (X)\n        if <(costume [number v]) = [2]> then\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) - (X))\n                                        change y by (-5)\n                                        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>>> then\n                                            if <[0] < (X)> then\n                                                set [x v] to [-10]\n                                            else\n                                                set [x v] to [10]\n                                            end\n                                            set [y v] to [15]\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            change [y v] by (-1)\n            change y by (Y)\n            if <(costume [number v]) = [2]> then\n                if <touching (白 v)?> then\n                    change y by ((0) - (Y))\n                    set [y v] to [0]\n                end\n                change y by (-2)\n                if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>>> and <<touching (白 v)?> or <touching color (#ffffff)?>>> then\n                    set [y v] to [15]\n                end\n                change y by (1)\n                if <<touching color (#ff0000)?> or <touching (トゲ v)?>> then\n                    go to x: (-200) y: (-50)\n                    set [x v] to [0]\n                    set [y v] to [0]\n                end\n                if <[230] < (x position)> then\n                    change [next v] by (1)\n                    set [x v] to [0]\n                    set [y v] to [0]\n                    go to x: (-200) y: (-50)\n                    broadcast (next v)\n                    wait (0.5) seconds\n                end\n                if <<(X) < [0.1]> and <[-0.1] < (X)>> then\n                    switch costume to (コスチューム2 v)\n                end\n                if <touching (黒 v)?> then\n                    set [x v] to [0]\n                    set [y v] to [0]\n                    go to x: (-200) y: (-50)\n                    wait (0.5) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (ジャンプ台 v)?> then\n        broadcast (jump台 v)\n        set [y v] to [20]\n    end\nend\n\n\n\nset [y v] to [20]\n\nwhen flag clicked\nif <touching color (#888888)?> then\n\n@黒\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (next)\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [20]> then\n        show variable [time v]\n    end\nend\n\ngo to [front v] layer\n\n@サムネ\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nshow\n\ngo to x: (-200) y: (-50)\nset [y v] to [0]\nset [x v] to [0]\n\nhide\n\nchange [color v] effect by (25)\n\n@スプライト3\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nbroadcast (チェンジ v)\n\nwhen [space v] key pressed\nbroadcast (チェンジ v)\n\n@白\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (next)\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [20]> then\n        show variable [time v]\n    end\nend\n\nwhen I receive [隠す v]\nhide\n\nset [color v] effect to (0)\n\nwhen I receive [next v]\nshow\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (next)\nend\n\n@ジャンプ台\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nwait until <(next) = [15]>\nshow\ngo to x: (-125) y: (-120)\nwait until <(next) = [16]>\nhide\n\nwhen I receive [jump台 v]\nswitch costume to (コスチューム4 v)\nwait (0.075) seconds\nswitch costume to (コスチューム3 v)\nwait (0.075) seconds\nswitch costume to (コスチューム2 v)\nwait (0.075) seconds\nswitch costume to (コスチューム3 v)\nwait (0.075) seconds\nswitch costume to (コスチューム4 v)\nwait (0.075) seconds\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nhide\n\n
English （日本語は下）\nOperability\nRight arrow key ・ Tap right → Go to right\nLeft arrow key, left tap → go to the left\nUp arrow key, upper tap → jump\nChange costume with change button or space key\n\nWhen the costume is black\nYou can ride on the black ground, but the white ground is an enemy (respawn if you touch it)\n\nWhen the costume is white\nYou can ride on the white ground, but the black ground is an enemy (respawn if you touch it)\n\nThe thorns can be black or white (with fake)\n\n操作性\n右矢印キー・右側タップ→右に進む\n左矢印キー・左側タップ→左に進む\n上矢印キー・上側タップ→ジャンプ\nチェンジボタンorスペースキーでコスチューム変更\n\nコスチュームが黒の時\n黒の地面に乗れるが白い地面は敵  (触れたらリスポーン)\n\nコスチュームが白の時\n白の地面に乗れるが黒い地面は敵  (触れたらリスポーン)\n\nトゲは黒でも白でもくらいます（フェイクあり）