Pen platformer 95%

Instructions: My entry\nArrow keys to move\navoid red or void\nget to light blue\nyellow and purple are trampolines\ngreen and orange teleport you\nlove star and follow

@Stage\n\n@Sprite 2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [enemy x v] to [-150]\nset [enemy y v] to [87]\nReset Player\nset [level v] to [1]\nforever\n    Collision\n    Draw Player\nend\n\ndefine Physics\nchange [yv v] by (-1)\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1)\nend\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <touching color (#0300ff)?> then\n    change y by (1)\nend\nif <touching color (#0300ff)?> then\n    change y by (1)\nend\nif <touching color (#0300ff)?> then\n    change y by (1)\nend\nif <touching color (#0300ff)?> then\n    change y by (1)\nend\nif <touching color (#0300ff)?> then\n    change y by (-4)\n    change x by ((Xv) * (-1))\n    if <key (up arrow v) pressed?> then\n        set [yv v] to [15]\n        if <(Xv) > [0]> then\n            set [xv v] to [-10]\n        else\n            set [xv v] to [10]\n        end\n    else\n        set [xv v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#0300ff)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> and <touching color (#0300ff)?>> then\n    set [yv v] to [15]\nend\nchange y by (1)\n\ndefine Draw line from (x1) (y1) to (x2) (y2)\ngo to x: (x1) y: (y1)\npen down\ngo to x: (x2) y: (y2)\npen up\n\ndefine Level 1\nset pen size to (5)\nset pen color to (#0300ff)\nDraw line from [-240] [-100] to [240] [-100]\nset pen size to (5)\nset pen color to (#19c8f5)\nDraw Square at [180] [15] and size [28]\n\ndefine Draw Square at (center x) (center y) and size (side length)\ngo to x: ((center x) + ((side length) / (2))) y: ((center y) + ((side length) / (2)))\npen down\ngo to x: ((center x) + ((side length) / (-2))) y: ((center y) + ((side length) / (2)))\ngo to x: ((center x) + ((side length) / (-2))) y: ((center y) + ((side length) / (-2)))\ngo to x: ((center x) + ((side length) / (2))) y: ((center y) + ((side length) / (-2)))\ngo to x: ((center x) + ((side length) / (2))) y: ((center y) + ((side length) / (2)))\npen up\n\ndefine Draw Player\nset pen color to (#00c10c)\nset pen size to (5)\nDraw Square at (Player X) (Player Y) and size [16]\n\ndefine Reset Player\nset [player x v] to [-200]\nset [player y v] to [-75]\nset [xv v] to [0]\nset [yv v] to [0]\nif <(Level) = [10]> then\n    set [enemy y v] to [-100]\nend\n\ndefine Do Special Collision\nif <<touching color (#ff0000)?> or <(Player Y) < [-170]>> then\n    Reset Player\nend\nif <touching color (#19c8f5)?> then\n    Reset Player\n    change [level v] by (1)\nend\nif <touching color (#ffe900)?> then\n    set [yv v] to [20]\nend\nif <touching color (#e100ff)?> then\n    set [yv v] to [-12]\nend\nif <<touching color (#a5ff8a)?> and <(Level) = [8]>> then\n    set [player x v] to [-200]\n    set [player y v] to [-130]\nend\nif <<touching color (#a5ff8a)?> and <(Level) = [9]>> then\n    set [player x v] to [-200]\n    set [player y v] to [130]\nend\nif <<touching color (#a5ff8a)?> and <(Level) = [10]>> then\n    set [player x v] to [0]\n    set [player y v] to [130]\nend\n\ndefine Collision\nerase all\nif <(Level) = [1]> then\n    Level 1\nend\nif <(Level) = [2]> then\n    Level 2\nend\nif <(Level) = [3]> then\n    Level 3\nend\nif <(Level) = [4]> then\n    Level 4\nend\nif <(Level) = [5]> then\n    Level 5\nend\nif <(Level) = [6]> then\n    Level 6\nend\nif <(Level) = [7]> then\n    Level 7\nend\nif <(Level) = [8]> then\n    Level 8\nend\nif <(Level) = [9]> then\n    Level 9\nend\nif <(Level) = [10]> then\n    Level 10\nend\nif <(Level) = [11]> then\n    Level 11\nend\ngo to x: (Player X) y: (Player Y)\nPhysics\nset [player x v] to (x position)\nset [player y v] to (y position)\nDo Special Collision\n\ndefine Level 2\nset pen size to (5)\nset pen color to (#0300ff)\nDraw line from [-240] [-100] to [240] [-100]\nset pen color to (#ff0000)\nDraw line from [-100] [-100] to [100] [-100]\nset pen size to (5)\nset pen color to (#19c8f5)\nDraw Square at [180] [15] and size [28]\n\ndefine Level 3\nset pen size to (5)\nset pen color to (#0300ff)\nDraw line from [-240] [-100] to [240] [-100]\nset pen color to (#ff0000)\nDraw Rect [25] [25] [50] [50] [-100] [65] [65] [-100]\nDraw Rect [-75] [-50] [-50] [-75] [65] [65] [-100] [-100]\nset pen color to (#ffe900)\nDraw line from [-50] [-100] to [25] [-100]\nDraw line from [-125] [-100] to [-75] [-100]\nset pen size to (5)\nset pen color to (#19c8f5)\nDraw Square at [180] [15] and size [28]\n\ndefine Draw Rect (x1) (x2) (x3) (x4) (y1) (y2) (y3) (y4)\nDraw line from (x1) (y1) to (x2) (y2)\nDraw line from (x2) (y2) to (x3) (y3)\nDraw line from (x3) (y3) to (x4) (y4)\nDraw line from (x4) (y4) to (x1) (y1)\n\ndefine Level 4\nset pen size to (5)\nset pen color to (#0300ff)\nDraw line from [-240] [-100] to [240] [-100]\nDraw Rect [-50] [-50] [50] [50] [-100] [100] [100] [-100]\nDraw Rect [100] [100] [125] [125] [180] [-50] [-50] [180]\nset pen color to (#19c8f5)\nDraw Square at [185] [140] and size [28]\n\ndefine Level 5\nset pen size to (5)\nset pen color to (#0300ff)\nDraw line from [-240] [-100] to [240] [-100]\nDraw Rect [100] [100] [240] [240] [0] [-25] [-25] [0]\nDraw Rect [-240] [-240] [50] [50] [75] [50] [50] [75]\nDraw Square at [-150] [-87] and size [24]\nDraw Square at [0] [-87] and size [24]\nset pen color to (#2321ff)\nDraw line from [-138] [75] to [-12] [75]\nDraw line from [-138] [50] to [-12] [50]\nset pen color to (#ff0000)\nDraw Square at (Enemy X) [90] and size [19]\nDraw Rect [-132] [-132] [-18] [-18] [-80] [-95] [-95] [-80]\nset pen color to (#19c8f5)\nDraw Square at [-210] [140] and size [28]\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        repeat (100)\n            change [enemy x v] by (1)\n        end\n        repeat (100)\n            change [enemy x v] by (-1)\n        end\n    end\n    if <(Level) = [10]> then\n        repeat (50)\n            change [enemy y v] by (2)\n        end\n        repeat (50)\n            change [enemy y v] by (-2)\n        end\n    end\n    if <(Level) = [11]> then\n    end\nend\n\ndefine Level 6\nset pen color to (#e100ff)\nDraw line from [-240] [75] to [240] [75]\nset pen color to (#ffe900)\nDraw line from [-240] [-100] to [240] [-100]\nset pen color to (#19c8f5)\nDraw Square at [185] [10] and size [28]\n\ndefine Level 7\nset pen color to (#0200ff)\nDraw line from [-240] [-100] to [240] [-100]\nDraw line from [-240] [100] to [200] [100]\nset pen color to (#ffe900)\nDraw line from [-200] [-100] to [-150] [-100]\nDraw line from [-125] [-100] to [-50] [-100]\nDraw line from [-25] [-100] to [25] [-100]\nDraw line from [50] [-100] to [240] [-100]\nDraw line from [200] [75] to [240] [75]\nset pen color to (#e100ff)\nDraw line from [-200] [100] to [-150] [100]\nDraw line from [-125] [100] to [-50] [100]\nDraw line from [-25] [100] to [25] [100]\nDraw line from [50] [100] to [100] [100]\nDraw line from [175] [100] to [125] [100]\nset pen color to (#ff0000)\nDraw line from [-240] [75] to [200] [75]\nset pen color to (#19c8f5)\nDraw Square at [-185] [150] and size [28]\n\ndefine Level 8\nset pen color to (#0200ff)\nDraw line from [-215] [-100] to [240] [-100]\nDraw line from [-215] [-50] to [200] [-50]\nDraw line from [-215] [-50] to [-215] [-100]\nDraw line from [-200] [0] to [240] [0]\nDraw line from [-215] [-50] to [-240] [-25]\nDraw line from [-215] [-50] to [-240] [-25]\nDraw line from [-215] [75] to [-240] [50]\nDraw line from [-215] [75] to [215] [75]\nDraw line from [-215] [-150] to [0] [-150]\nDraw line from [-215] [110] to [240] [110]\nDraw line from [-215] [160] to [215] [160]\nDraw line from [-215] [110] to [-215] [160]\nset pen color to (#a6ff8a)\nDraw line from [-200] [150] to [-200] [125]\nDraw line from [-200] [125] to [-205] [130]\nDraw line from [-200] [125] to [-195] [130]\nset pen color to (#ffc48a)\nDraw line from [-200] [-130] to [-195] [-115]\nDraw line from [-205] [-125] to [-200] [-130]\nset pen color to (#19c8f5)\nDraw Square at [50] [-150] and size [20]\n\ndefine Level 9\nset pen color to (#ffe900)\nDraw line from [-240] [-100] to [-160] [-100]\nset pen color to (#e100ff)\nDraw line from [-80] [60] to [-160] [60]\nset pen color to (#ffe900)\nDraw line from [-80] [-100] to [0] [-100]\nset pen color to (#e100ff)\nDraw line from [0] [60] to [80] [60]\nset pen color to (#ffe900)\nDraw line from [80] [-100] to [160] [-100]\nset pen color to (#e100ff)\nDraw line from [160] [60] to [240] [60]\nset pen color to (#ff0000)\nDraw line from [-240] [60] to [-160] [60]\nDraw line from [-80] [-100] to [-160] [-100]\nDraw line from [-80] [60] to [0] [60]\nDraw line from [0] [-100] to [80] [-100]\nDraw line from [80] [60] to [160] [60]\nset pen color to (#0300ff)\nDraw line from [-240] [-150] to [240] [-150]\nDraw line from [-240] [100] to [-160] [100]\nDraw line from [-160] [150] to [-80] [150]\nDraw line from [-80] [100] to [0] [100]\nDraw line from [0] [150] to [80] [150]\nDraw line from [80] [100] to [160] [100]\nDraw line from [160] [150] to [240] [150]\nset pen color to (#0300ff)\nDraw line from [-40] [240] to [-40] [150]\nDraw line from [120] [240] to [120] [150]\nDraw line from [-200] [240] to [-200] [150]\nDraw line from [-240] [150] to [-200] [150]\nset pen color to (#a6ff8a)\nDraw line from [-200] [-140] to [-200] [-110]\nDraw line from [-200] [-110] to [-210] [-120]\nDraw line from [-200] [-110] to [-190] [-120]\nset pen color to (#ffc48a)\nDraw line from [-200] [110] to [-210] [120]\nDraw line from [-200] [110] to [-190] [130]\nset pen color to (#19c8f5)\nDraw Square at [200] [165] and size [20]\n\ndefine Level 10\nset pen color to (#0200ff)\nDraw line from [-240] [-100] to [240] [-100]\nset pen color to (#ff0000)\nDraw Rect [-50] [50] [50] [-50] [180] [180] (Enemy Y) (Enemy Y)\nDraw Rect [-150] [-50] [-50] [-150] [180] [180] (Enemy Y) (Enemy Y)\nDraw Rect [150] [50] [50] [150] [180] [180] (Enemy Y) (Enemy Y)\nset pen color to (#19c8f5)\nDraw Square at [0] [50] and size [20]\nset pen color to (#a6ff8a)\nDraw line from [200] [-80] to [200] [-50]\nDraw line from [200] [-50] to [210] [-60]\nDraw line from [200] [-50] to [190] [-60]\nset pen color to (#ffc48a)\nDraw line from [-10] [120] to [0] [110]\nDraw line from [0] [110] to [10] [130]\n\ndefine Level 11\nset pen color to (#0300ff)\nDraw line from [-240] [-100] to [240] [-100]\nset pen color to (#ffb057)\nDraw Square at [110] [-35] and size [125]\nset pen color to (#ff5757)\nDraw line from [5] [0] to [120] [100]\nDraw line from [120] [100] to [200] [0]\n\nset [enemy x v] to [180]\nset [enemy y v] to [-70]\nset [boss defeated v] to [0]\nreset timer\nstop [this script v]\n\n