ABC Platformer

Instructions: Use arrow keys!\nPress r to restart level.\nPress space to see deaths.

@Stage\n\n@SMILEY\n\nwhen flag clicked\nset size to (70) %\nset drag mode [not draggable v]\nswitch costume to (costume1 v)\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nset [yy v] to [-1]\nset [xx v] to [1]\nset [v v] to [0]\nset [startpointx v] to [-165]\nset [startpointy v] to [-150]\nset [deaths v] to [0]\nhide variable [deaths v]\nhide variable [level v]\nswitch backdrop to (intro v)\nhide\nswitch backdrop to (backdrop1 v)\nshow variable [level v]\nshow\ngo to x: (startpointx) y: (startpointy)\nset [xv v] to [0]\nset [yv v] to [0]\nset [ehee v] to [0]\nforever\n    change [yv v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (3)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-3)\n    end\n    set [xv v] to ((Xv) * (0.7))\n    change x by (Xv)\n    if <touching color (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000008)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000008)?> then\n        if <key (up arrow v) pressed?> then\n            start sound [jump v]\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        start sound [pop v]\n        change [deaths v] by (1)\n        go to x: (startpointx) y: (startpointy)\n        set [xv v] to [0]\n        set [yy v] to [0]\n    end\n    if <touching color (#00fffd)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [8]\n        else\n            set [yv v] to [-1.5]\n        end\n    end\n    if <[247] < (x position)> then\n        change [level v] by (1)\n        switch backdrop to (next backdrop v)\n        go to x: (startpointx) y: (startpointy)\n        set [xv v] to [0]\n        set [yy v] to [0]\n    end\n    if <(LEVEL) = [26]> then\n        set [level v] to [1]\n        set size to (100) %\n        switch costume to (costume1 v)\n    end\n    if <touching color (#e400ff)?> then\n        start sound [boing v]\n        set [yv v] to [24]\n    end\n    if <touching color (#ff743b)?> then\n        start sound [boing v]\n        set [yv v] to [-20]\n    end\nend\n\nwhen [r v] key pressed\nif <(LEVEL) = [34]> then\n    switch backdrop to (backdrop37 v)\n    go to x: (startpointx) y: (startpointy)\nelse\n    change [deaths v] by (1)\n    go to x: (startpointx) y: (startpointy)\nend\n\nwhen [space v] key pressed\nif <key (space v) pressed?> then\n    if <(EHEE) = [0]> then\n        show variable [deaths v]\n        set [ehee v] to [1]\n        stop [this script v]\n    end\n    if <(EHEE) = [1]> then\n        hide variable [deaths v]\n        set [ehee v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [25]> then\n        switch costume to (costume2 v)\n        set size to (200) %\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nset [game v] to [0]\ngo to x: (-8) y: (-105)\nhide\nwait until <(backdrop [number v]) = [10]>\nshow\nwait until <(backdrop [number v]) = [11]>\nshow\nhide\nwait until <(backdrop [number v]) = [12]>\nif <(game) = [1]> then\n    show\nend\ngo to x: (183) y: (-100)\nwait until <(backdrop [number v]) = [13]>\nshow\nhide\ngo to x: (138) y: (-101)\nwait until <(backdrop [number v]) = [18]>\nshow\ngo to x: (138) y: (-101)\nwait until <(backdrop [number v]) = [19]>\nshow\ngo to x: (0) y: (61)\n\nwhen flag clicked\nrepeat until <(game) = [1]>\n    if <touching (smiley v)?> then\n        set [game v] to [1]\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\ngo to [front v] layer\n\nwhen this sprite clicked\nhide\n\n