Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (menu v)\nforever\n    play sound [The Worlds Hardest Game Theme Song.mp3 v] until done\nend\n\nwhen I receive [next level v]\nnext backdrop\nbroadcast (Normal size v) and wait\n\nwhen I receive [start v]\nswitch backdrop to (level 1 v)\n\n@Character\n\nwhen flag clicked\nset size to (100) %\nhide\nhide variable [level v]\nset [level v] to [0]\nhide variable [deaths v]\ngo to x: (-240) y: (180)\nset [god mode v] to [0]\nswitch costume to (costume1 v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <touching color (#00ffff)?> then\n        change size by (10)\n    end\n    if <touching color (#ffff00)?> then\n        change size by (-1)\n    end\n    if <touching color (#003fff)?> then\n        set [y v] to [18]\n    end\n    if <touching color (#00ff55)?> then\n        broadcast (next level v)\n    end\n    if <touching color (#ff0000)?> then\n        if <(God mode) = [0]> then\n            set size to (100) %\n            set [x v] to [0]\n            go to x: (-240) y: (180)\n            set [y v] to [0]\n            change [deaths v] by (1)\n        end\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume1 v)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume2 v)\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 (#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 x by ((x) * (-1))\n                            change y by (-5)\n                        end\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            if <(x) > [0]> then\n                                set [x v] to [-5]\n                            else\n                                set [x v] to [5]\n                            end\n                            set [y v] to [10]\n                        else\n                            set [x v] to [0]\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 <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#006622)?> then\n        switch backdrop to (punishment v)\n        go to x: (-240) y: (180)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-240) y: (180)\n\nwhen I receive [normal size v]\nset size to (100) %\n\nwhen I receive [start v]\nshow variable [deaths v]\nset [deaths v] to [0]\nshow\nforever\n    if <key (m v) pressed?> then\n        ask [What is the secret code?] and wait\n        if <(answer) = [plzIWannaCheat]> then\n            set [cheated v] to [1]\n            say [Vaild code.] for (2) seconds\n            if <(God mode) = [0]> then\n                set [god mode v] to [1]\n                hide variable [deaths v]\n            else\n                set [god mode v] to [0]\n                show variable [deaths v]\n            end\n        else\n            say [Invaild Code] for (2) seconds\n        end\n    end\n    if <key (space v) pressed?> then\n        if <<not <(backdrop [name v]) = [Ending]>> and <(God mode) = [1]>> then\n            broadcast (next level v)\n        end\n    end\nend\n\n@Play button\n\nwhen this sprite clicked\nhide\nbroadcast (Start v)\n\nwhen flag clicked\nhide\ngo to x: (-240) y: (25)\nshow\nglide (1) secs to x: (-17) y: (25)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\nend\n\n@Light\n\nwhen I start as a clone\ngo to x: (pick random (200) to (-200)) y: (-145)\nset [velocity v] to (pick random (6) to (11))\nshow\nswitch costume to (bright v)\nwait (0.01) seconds\nchange y by (velocity)\nswitch costume to (light v)\nrepeat until <<touching (_edge_ v)?> or <(velocity) < [0]>>\n    change y by (velocity)\n    change [velocity v] by (-0.2)\nend\nswitch costume to (bright v)\nwait (0.02) seconds\nswitch costume to (explode 1 v)\nwait (0.02) seconds\nswitch costume to (explode 2 v)\nwait (0.02) seconds\nswitch costume to (explode 3 v)\nwait (0.02) seconds\nswitch costume to (explode 4 v)\nrepeat (10)\n    change y by (-2)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    if <<(backdrop [name v]) = [Ending]> or <(backdrop [name v]) = [Menu]>> then\n        wait (0.25) seconds\n        create clone of (_myself_ v)\n    end\nend\n\n
Instructions in game.\nDemonstration:\nhttps://youtu.be/jYoxMUhNJeQ\nMy other game - Tank and Zombies\nhttps://scratch.mit.edu/projects/212453757/\nMy record: 10 deaths\n