Plains || Platformer v1.1

Instructions: Play https://scratch.mit.edu/projects/390571010/ it is\nway better than this.\n\n(Use Fullscreen)\n\nInstructions:\n    -Use the arrow keys or WASD to move\n    -Avoid red spikes\n    -Purple trampolines are bouncy\n\nNote: This game is mostly me testing out new vector\ngraphics for my upcoming platformers, this is not \nsupposed to be hard or creative.

@Stage\n\nwhen flag clicked\nforever\n    play sound [OMFG Hello PIANO v] until done\nend\n\nwhen flag clicked\ngo to [back v] layer\nset [time of day v] to [Day]\nswitch backdrop to (day v)\nshow\nforever\n    switch costume to (Time of Day)\nend\n\n@Player\n\nwhen flag clicked\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\ngo to x: (-200) y: (-50)\nshow\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (-4)\n                        change x by ((0) - (x))\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            set [y v] to [14]\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    change [y v] by (-1)\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (ground v)?>> then\n        set [y v] to [14]\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        hide\n        broadcast (Next Level v) and wait\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-200) y: (-80)\n        show\n    end\n    if <touching (spikes v)?> then\n        go to x: (-200) y: (-80)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(y position) < [-175]> then\n        go to x: (-200) y: (-80)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <touching (jump pad v)?> then\n        set [y v] to [24]\n    end\nend\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (Level)\nend\n\n@Shadows\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nset [ghost v] effect to (10)\ngo [forward v] (2) layers\nforever\n    switch costume to (Level)\n    if <(Time of Day) = [Night]> then\n        hide\n    else\n        show\n    end\nend\n\n@Spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Next Level Animation\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nif <(Level) = [12]> then\n    switch costume to (end v)\nelse\n    switch costume to (next level v)\nend\nrepeat (50)\n    change y by (((360) - (y position)) / (10))\nend\nif <not <(Level) = [12]>> then\n    change [level v] by (1)\n    wait (1) seconds\n    repeat (35)\n        change y by (((0) - (y position)) / (10))\n    end\n    hide\n    stop [this script v]\nend\nforever\n\n@Jump Pad\n\nwhen flag clicked\nhide\nCreate Pad at [-110] [-97] on level [8]\nCreate Pad at [-210] [-97] on level [9]\nCreate Pad at [-150] [-97] on level [11]\nCreate Pad at [0] [-97] on level [11]\nCreate Pad at [150] [-97] on level [11]\n\ndefine Create Pad at (x) (y) on level (level)\nwait until <(Level) = (level)>\nset size to (50) %\nset [clonelevel v] to (level)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nswitch costume to (pad1 v)\nforever\n    if <touching (player v)?> then\n        repeat (3)\n            next costume\n            wait (0.001) seconds\n        end\n        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.001) seconds\n        end\n    end\n    if <not <(Level) = (CloneLevel)>> then\n        delete this clone\n    end\nend\n\nwhen I receive [next level v]\ndelete this clone\n\nwhen I receive [end v]\ndelete this clone\n\n@Splash\n\nwhen flag clicked\nhide\n\n@Background\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\nset [time of day v] to [Day]\nswitch costume to (day v)\nshow\nforever\n    switch costume to (Time of Day)\nend\n\n@Sun/Moon\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (250) y: (-150)\npoint in direction (-10)\nforever\n    switch costume to (sun v)\n    set [time of day v] to [Day]\n    go to x: (250) y: (-150)\n    point in direction (-10)\n    repeat (700)\n        move (1.2) steps\n        turn left (0.2) degrees\n    end\n    switch costume to (moon v)\n    set [time of day v] to [Night]\n    go to x: (250) y: (-150)\n    point in direction (-10)\n    repeat (700)\n        move (1.2) steps\n        turn left (0.2) degrees\n    end\nend\n\n