【#2】Choose colours! PLatformer 色を選ぶ！プラットフォーマー
@Stage\n\nwhen I receive [the end v]\nwait (1) seconds\nforever\n    play sound [New Life v] until done\nend\n\nwhen flag clicked\nforever\n    if <<(ステージ) = [5]> or <<(ステージ) = [7]> or <<(ステージ) = [9]> or <<(ステージ) = [11]> or <<(ステージ) = [12]> or <<(ステージ) = [15]> or <(ステージ) = [17]>>>>>>> then\n        switch backdrop to (背景2 v)\n    else\n        switch backdrop to (背景1 v)\n    end\nend\n\n@player\n\nwhen I receive [the end v]\n初期設定プログラム\nforever\n    go to [front v] layer\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        point in direction (90)\n        if <touching (毒沼 v)?> then\n            change [x v] by (0.6)\n        else\n            change [x v] by (1)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        if <not <(costume [number v]) = [3]>> then\n            change [x v] by (-1)\n        else\n            change [x v] by (-1.5)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (地面 v)?> or <touching (壁だよん v)?>> then\n        change y by (1)\n        if <<touching (地面 v)?> or <touching (壁だよん v)?>> then\n            change y by (1)\n            if <<touching (地面 v)?> or <touching (壁だよん v)?>> then\n                change y by (1)\n                if <<touching (地面 v)?> or <touching (壁だよん v)?>> then\n                    change y by (1)\n                    if <<touching (地面 v)?> or <touching (壁だよん v)?>> then\n                        change y by (1)\n                        if <<touching (地面 v)?> or <touching (壁だよん v)?>> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                            if <not <touching (壁だよん v)?>> then\n                                if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                    if <(x) < [0]> then\n                                        set [x v] to [10]\n                                        start sound [壁キック v]\n                                    else\n                                        set [x v] to [-10]\n                                        start sound [壁キック v]\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 by (-1)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <touching (地面 v)?> then\n            start sound [ジャンプ v]\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (地面 v)?> then\n        set [地面についている？ v] to [0]\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    else\n        set [地面についている？ v] to [1]\n    end\n    if <[240] < (x position)> then\n        broadcast (メッセージ1 v)\n        hide\n    end\n    if <<<<touching (トゲ v)?> or <(y position) < [-170]>> or <<touching (毒沼 v)?> and <not <(costume [number v]) = [2]>>>> or <touching (見るとき用 v)?>> then\n        デス\n        初期設定プログラム\n    end\n    if <touching (毒沼 v)?> then\n        set [x v] to ((x) / (1.07))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [y v] by (4)\n        else\n            change [y v] by (-2)\n        end\n    end\nend\n\ndefine 初期設定プログラム\nshow\nset size to (55) %\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-50)\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (4)\n    change size by (-5)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (水 v)?> then\n        set [ごぼごぼゴボ v] to [1]\n    else\n        set [ごぼごぼゴボ v] to [0]\n    end\nend\n\nwhen I receive [メッセージ1 v]\n初期設定プログラム\n\nwhen I receive [the end v]\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            next costume\n            wait until <not <mouse down?>>\n        end\n    end\n    if <key (space v) pressed?> then\n        next costume\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [あ v]\n初期設定プログラム\n\ndefine デス\nstart sound [crashed oof v]\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム1 v)\n\n@地面\n\nwhen flag clicked\nhide\nhide variable [time v]\nhide variable [☁ 世界記録 v]\n\nwhen I receive [メッセージ1 v]\nchange [ステージ v] by (1)\nshow\n\nwhen I receive [the end v]\nset [time v] to [0]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\n    if <(ステージ) = [16]> then\n        show variable [time v]\n        show variable [☁ 世界記録 v]\n        if <(time) < (☁ 世界記録)> then\n            if <not <(スキップされたか) = [!]>> then\n                wait (1) seconds\n                set [☁ 世界記録 v] to (time)\n            end\n        end\n    else\n        hide variable [time v]\n        hide variable [☁ 世界記録 v]\n    end\nend\n\nwhen I receive [the end v]\nrepeat until <(ステージ) = [16]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen I receive [??? v]\nforever\n    switch costume to (47 v)\nend\n\n@トゲ\n\nwhen flag clicked\nhide\nset [ステージ v] to [1]\ngo to [back v] layer\n\nwhen I receive [the end v]\nshow\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nforever\n    switch costume to (ステージ)\n    if <(ステージ) = [10]> then\n        turn left (8) degrees\n    end\n    if <(ステージ) = [11]> then\n        point in direction (90)\n    end\nend\n\n@毒沼\n\nwhen flag clicked\ngo to [back v] layer\nshow\nset [ghost v] effect to (18)\nforever\n    switch costume to (ステージ)\nend\n\n@スキップ機能\n\nwhen flag clicked\nhide\nset [スキップされたか v] to [0]\n\nwhen I receive [the end v]\nshow\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        change size by (((size) - (100)) / (-2))\n        if <mouse down?> then\n            if <not <<(ステージ) = [16]> or <<(ステージ) = [17]> or <(ステージ) = [18]>>>> then\n                set [スキップされたか v] to [!]\n                broadcast (あ v)\n                set [ステージ v] to ((ステージ) + (1))\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        change size by (((size) - (90)) / (-2))\n    end\nend\n\n@太陽\n\nwhen I receive [the end v]\nshow\nset size to (100) %\nforever\n    if <<(ステージ) = [5]> or <<(ステージ) = [7]> or <<(ステージ) = [9]> or <<(ステージ) = [11]> or <<(ステージ) = [12]> or <(ステージ) = [15]>>>>>> then\n    else\n        go to [back v] layer\n        change [cos v] by (5)\n        change size by ([cos v] of (cos) )\n    end\nend\n\nwhen flag clicked\nhide\n\n@真っ暗\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (ステージ)\n    if <([costume # v] of [player v]) = [3]> then\n        hide\n    else\n        show\n    end\nend\n\n@光\n\nwhen flag clicked\nforever\n    if <([costume # v] of [player v]) = [3]> then\n        show\n        go to (player v)\n    else\n        hide\n    end\nend\n\n@サムネ\n\nwhen flag clicked\nbroadcast (THE END v)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n@ターボストップ\n\nwhen flag clicked\nforever\n    point in direction (0)\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    turn right (1) degrees\n    wait () seconds\n    if <(direction) > [39]> then\n        go to [front v] layer\n        stop [all v]\n    end\nend\n\n@説明\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\n    go to [front v] layer\nend\n\n
YouTubeで実況されました⇩\nhttps://www.youtube.com/watch?v=o4QKSsdjQhw\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n▼ How to play\nBlack ⇨ Normal\nPurple ⇨ Put in poison swamp\nYellow ⇨ Illuminate the area\n\nChange color with tap and space key\n\nYou can operate it with the arrow keys!\nIt is mobile compatible.\n\n▼ Goal\n⭐ and ❤300 ⇨ Achieved !!\n30000 views ⇨ Achieved !!\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n▼遊び方\n黒色⇨通常\n紫色⇨毒沼に入れる\n黄色⇨あたりを照らす\n\nタップ、スペースキーで色変更\n\n矢印キーで操作できます！\nモバイル対応です。\n\n▼目標\n⭐と❤300⇨達成!!\n再生数30000⇨達成!!