Diversity - A Platformer
@Stage\n\nwhen I receive [jnjojh v]\nnext backdrop\n\nwhen backdrop switches to [end v]\nstop [all v]\n\nwhen flag clicked\nforever\n    play sound [Vexento - Nostalgia v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-196) y: (-17)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> 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 color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#cc0000)?> then\n        go to x: (-196) y: (-17)\n    end\n    if <<(x position) = [238]> or <(x position) > [238]>> then\n        go to x: (-196) y: (-17)\n        broadcast (jnjojh v)\n    end\nend\n\nwhen backdrop switches to [end v]\nhide\n\n