Platformer

Instructions: 日本語版は下です。\nーーEnglish languageーー\nOperate with the cross key or tap.\nPress the image below to change the color. You can also use the Z key for blue, the X key for green, the C key for yellow, and the V key for red.\nObstacles of the same color as the body can pass, but obstacles of different colors cannot.\nIf the screen is blurry, reload or zoom in to play the game.\n\nーー日本語ーー\n十字キー、またはタップで操作します。\n下のキャラを押したら色が変わります。\n青はZキー、緑はXキー、黄色はCキー、赤はVキーでも変わります。\n体と同じ色の障害物は通れますが、違う色の場合は通れません。\n画面がぼけてしまう場合は、再読み込みか、画面を大きくして、プレイしてください。\n大画面推奨。\nスペースキーでbgmミュート\n

@Stage\n\nwhen flag clicked\nforever\n    wait (0.5) seconds\n    change [color v] effect by (10)\nend\n\nwhen I receive [akaにして v]\nswitch backdrop to (背景1 v)\n\nwhen I receive [midoriにして v]\nswitch backdrop to (背景2 v)\n\nwhen I receive [kiiroにして v]\nswitch backdrop to (背景3 v)\n\nwhen I receive [aoにして v]\nswitch backdrop to (背景4 v)\n\nwhen flag clicked\nforever\n    play sound [retroparty \(1\) v] until done\nend\n\nwhen flag clicked\nforever\n    if <(背景) = [15]> then\n        stop all sounds\n        play sound [happytime v] until done\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nforever\n    repeat (20)\n        create clone of (_myself_ v)\n        next costume\n        wait (0.005) seconds\n    end\n    change [color v] effect by (10)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nset [ghost v] effect to (50)\nset size to (pick random (30) to (80)) %\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (pick random (2) to (7)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\nwhen [space v] key pressed\nforever\n    stop all sounds\nend\n\n@スプライト2\n\nwhen flag clicked\nset [背景 v] to [1]\ngo to [front v] layer\nswitch costume to (ao v)\nset size to (50) %\npoint in direction (90)\nset rotation style [left-right v]\nshow\ngo to x: (-220) y: (-50)\nset [速さ v] to [0]\nset [重力 v] to [0]\nrepeat until <(背景) = [15]>\n    change [重力 v] by (-0.8)\n    change y by (重力)\n    if <touching color (#363636)?> then\n        change y by ((重力) * (-1))\n        set [重力 v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>> then\n            start sound [キャンセル6 v]\n            set [重力 v] to [13]\n        end\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n        point in direction (90)\n        change [速さ 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 [速さ v] by (-1)\n    end\n    set [速さ v] to ((速さ) * (0.9))\n    change x by (速さ)\n    if <touching color (#939393)?> then\n        change x by ((速さ) * (-1))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>> then\n            set [重力 v] to [10]\n            start sound [キャンセル6 v]\n            if <[0] < (速さ)> then\n                set [速さ v] to [-10]\n            else\n                set [速さ v] to [10]\n            end\n        end\n        if <touching color (#ff0000)?> then\n            if <(costume [name v]) = [aka]> then\n                set [重力 v] to [10]\n            else\n                go to x: (-220) y: (-50)\n                start sound [決定、ボタン押下20 v]\n            end\n        end\n        if <touching color (#fff700)?> then\n            if <(costume [name v]) = [kiiro]> then\n                set [重力 v] to [10]\n            else\n                go to x: (-220) y: (-50)\n                start sound [決定、ボタン押下20 v]\n            end\n        end\n        if <touching color (#00ff2d)?> then\n            if <(costume [name v]) = [midori]> then\n                set [重力 v] to [10]\n            else\n                go to x: (-220) y: (-50)\n                start sound [決定、ボタン押下20 v]\n            end\n        end\n        if <touching color (#005dff)?> then\n            if <(costume [name v]) = [ao]> then\n                set [重力 v] to [10]\n            else\n                go to x: (-220) y: (-50)\n                start sound [決定、ボタン押下20 v]\n            end\n        end\n        if <touching color (#000000)?> then\n            start sound [決定、ボタン押下15 v]\n            set [重力 v] to [17]\n        end\n    end\n    if <[250] < (x position)> then\n        broadcast (次 v)\n        change [背景 v] by (1)\n        go to x: (-220) y: (-50)\n    end\nend\n\nwhen I receive [akaにして v]\nswitch costume to (aka v)\n\nwhen I receive [kiiroにして v]\nswitch costume to (kiiro v)\n\nwhen I receive [midoriにして v]\nswitch costume to (midori v)\n\nwhen I receive [aoにして v]\nswitch costume to (ao v)\n\nwhen flag clicked\nrepeat until <(背景) = [17]>\n    if <touching color (#ff0000)?> then\n        if <(costume [name v]) = [aka]> then\n            set [重力 v] to [10]\n        else\n            go to x: (-220) y: (-50)\n            start sound [決定、ボタン押下20 v]\n        end\n    end\n    if <touching color (#fff700)?> then\n        if <(costume [name v]) = [kiiro]> then\n            set [重力 v] to [10]\n        else\n            go to x: (-220) y: (-50)\n            start sound [決定、ボタン押下20 v]\n        end\n    end\n    if <touching color (#00ff2d)?> then\n        if <(costume [name v]) = [midori]> then\n            set [重力 v] to [10]\n        else\n            go to x: (-220) y: (-50)\n            start sound [決定、ボタン押下20 v]\n        end\n    end\n    if <touching color (#005dff)?> then\n        if <(costume [name v]) = [ao]> then\n            set [重力 v] to [10]\n        else\n            go to x: (-220) y: (-50)\n            start sound [決定、ボタン押下20 v]\n        end\n    end\n    if <touching color (#000000)?> then\n        start sound [決定、ボタン押下15 v]\n        set [重力 v] to [17]\n    end\nend\n\nwhen flag clicked\nrepeat until <(背景) = [17]>\n    if <(y position) < [-190]> then\n        go to x: (-220) y: (-50)\n    end\nend\n\n@地面\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [次 v]\nnext costume\n\n@スプライト3\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (33) y: (-13)\n\n@スプライト5\n\nwhen this sprite clicked\nbroadcast (aoにして v)\n\nwhen [z v] key pressed\nbroadcast (aoにして v)\n\n@スプライト6\n\nwhen this sprite clicked\nbroadcast (midoriにして v)\n\nwhen [x v] key pressed\nbroadcast (midoriにして v)\n\n@スプライト7\n\nwhen this sprite clicked\nbroadcast (kiiroにして v)\n\nwhen [c v] key pressed\nbroadcast (kiiroにして v)\n\n@スプライト8\n\nwhen this sprite clicked\nbroadcast (akaにして v)\n\nwhen [v v] key pressed\nbroadcast (akaにして v)\n\n@スプライト9\n\nwhen flag clicked\ngo to x: (107) y: (-3)\nhide\nrepeat until <(背景) = [17]>\n    if <(背景) = [5]> then\n        show\n        turn right (2) degrees\n        wait (0.1) seconds\n    end\n    if <not <(背景) = [5]>> then\n        hide\n    end\nend\n\n