Bleak - A Platformer
@Stage\n\n@Player\n\ndefine Platform\nif on edge, bounce\nchange [y v] by (-0.5)\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x v] by (-1)\nend\nif <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n    change [x v] by (1)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <touching color (#000000)?> then\n    change y by (1)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (-6)\n                            change x by ((x) * (-1))\n                            if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> 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                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y)\nif <touching color (#000000)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching color (#000000)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <touching color (#ff3636)?> then\n    go to x: (-200) y: (-50)\nend\nif <touching color (#003fff)?> then\n    set [y v] to [16]\nend\n\nwhen flag clicked\nset [y v] to [0]\ngo to x: () y: (-50)\nforever\n    Platform\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset volume to (200) %\nforever\n    play sound [28. Hadopelagic Pressure.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        next backdrop\n        broadcast (message1 v)\n        go to x: (-200) y: (-50)\n        set [y v] to [0]\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Portal\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nforever\n    if <(backdrop [number v]) = [10]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [message1 v]\nnext costume\n\n
You have been sent to explore a barren wasteland planet.\nYou can wall jump.\nArrow keys or WAD to move.\n