Marshmallow Platformer
@Stage\n\nwhen I receive [message1 v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    play sound [aurora-zone v] until done\nend\n\n@Logo\n\nwhen flag clicked\ngo to x: (-197) y: (127)\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (purple v)\nshow\ngo to x: (-204) y: (122)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<(y position) < [-175]> or <touching color (#ff9999)?>> then\n        go to x: (-204) y: (122)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    if <touching color (#99ffbb)?> then\n        change y by (-2)\n        if <touching color (#99ffbb)?> then\n            change y by (1)\n            if <touching color (#99ffbb)?> then\n                change y by (1)\n                if <touching color (#99ffbb)?> then\n                    change y by (1)\n                    if <touching color (#99ffbb)?> then\n                        change y by (1)\n                        if <touching color (#99ffbb)?> then\n                            change y by (1)\n                            if <touching color (#99ffbb)?> then\n                                change y by (-5)\n                                change x by ((-1) * (xv))\n                                if <<key (up arrow v) pressed?> and <not <(xv) = [0]>>> then\n                                    set [mode v] to [walljump]\n                                    set [yv v] to [8]\n                                    set [xv v] to (((xv) / ([abs v] of (xv) )) * (-10))\n                                else\n                                    set [mode v] to [wallslide]\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching color (#99ffbb)?> then\n        if <(yv) = [-3]> then\n            if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n                set [mode v] to [run]\n            else\n                if <([abs v] of (xv) ) > [.1]> then\n                    set [mode v] to [skid]\n                else\n                    set [mode v] to [stand]\n                end\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            set [mode v] to [jump]\n            set [yv v] to [9]\n        end\n    end\n    if <<<<(mode) = [jump]> or <(mode) = [walljump]>> and <(yv) < [0]>> or <<<(mode) = [run]> or <(mode) = [skid]>> and <(yv) < [-3]>>> then\n        set [mode v] to [fall]\n    end\n    change y by (3)\n    if <(yv) > [-15]> then\n        change [yv v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching color (#99ffbb)?>> then\n        change y by (-1)\n        if <not <touching color (#99ffbb)?>> then\n            change y by (-1)\n            if <not <touching color (#99ffbb)?>> then\n                change y by (-1)\n                if <not <touching color (#99ffbb)?>> then\n                    change y by (-1)\n                    if <not <touching color (#99ffbb)?>> then\n                        change y by (-1)\n                        if <not <touching color (#99ffbb)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (yv)\n    if <touching color (#99ffbb)?> then\n        change y by (-2)\n        if <touching color (#99ffbb)?> then\n            change y by ((-1) * (yv))\n            set [yv v] to [-3]\n        end\n        change y by (2)\n    end\n    if <touching (sprite3 v)?> then\n        go to x: (-204) y: (122)\n        broadcast (message1 v)\n    end\n    if <key (space v) pressed?> then\n        next costume\n        wait until <not <key (space v) pressed?>>\n    end\n    if <<touching color (#99b2ff)?> or <touching color (#ccd8ff)?>> then\n        change [color v] effect by (5)\n    else\n        clear graphic effects\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (169) y: (120)\nforever\n    turn right (5) degrees\nend\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to x: (196) y: (-78)\nswitch costume to (white sad v)\n\nwhen I receive [message1 v]\nswitch costume to (white happy v)\nwait (1) seconds\nswitch costume to (white sad v)\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\n
Use the arrow keys to make the Whitemallows happy.\nspace key to change colour (there is no purpose for the change of colour, except that it pauses the game)\nAfter you make a Whitemallow happy, one second afterwards the next level will come and you can make the next Whitemallow happy!