Just a Platformer... (SDS: Expect the Unexpected)
@Stage\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Underwater\n\nwhen I receive [underwater v]\nshow\nrepeat (37)\n    change y by (10)\nend\nbroadcast (Next Background v)\nrepeat (38)\n    change y by (10)\nend\nhide\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (-375)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Waves\n\nwhen flag clicked\ngo to x: (0) y: (-100)\nshow\nswitch costume to (wave2 v)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nrepeat (4)\n    next costume\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\nhide\n\nwhen I start as a clone\nforever\n    repeat (10)\n        change y by (2)\n    end\n    repeat (5)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-2)\n    end\n    repeat (5)\n        change y by (-1)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\nwhen flag clicked\nset volume to (100) %\nshow\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Player\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (-210) y: (0)\nset rotation style [left-right v]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        point in direction (90)\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    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (down arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [17]\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    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <<touching (waves v)?> and <not <([costume # v] of [ground v]) = [11]>>>> then\n        set rotation style [all around v]\n        repeat (10)\n            change size by (-10)\n            change [ghost v] effect by (10)\n            turn right (15) degrees\n        end\n        clear graphic effects\n        set size to (100) %\n        set rotation style [left-right v]\n        point in direction (90)\n        go to x: (-210) y: (0)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\n    if <(x position) > [222]> then\n        broadcast (Next Level v)\n        go to x: (-210) y: (0)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\n    if <touching (bouncer v)?> then\n        set [y v] to [15]\n    end\n    if <<key (up arrow v) pressed?> and <touching (bouncer v)?>> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-175]> then\n        broadcast (Underwater v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Kass's Theme \(Zelda Breath jof the Wild\) \[New Remix\] - Super Smash Bros v] until done\nend\n\n@Text\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@You Won\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [front v] layer\n\nwhen I receive [next background v]\nshow\n\n@Sprite1\n\nwhen flag clicked\nset size to (70) %\ngo to [back v] layer\nforever\n    go to (mouse-pointer v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (20)\n    change size by (-5)\n    change [color v] effect by (5)\nend\ndelete this clone\n\n@SDS Logo\n\nwhen flag clicked\npoint in direction (90)\ngo to [front v] layer\nshow\nforever\n    wait ((134) - (120)) seconds\n    repeat (360)\n        turn right (1) degrees\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Crazy ceebee thing >:\) v)\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [crazy ceebee thing >:\) v]\nshow\nrepeat (134)\n    repeat (2)\n        turn right (90) degrees\n    end\nend\nhide\n\n@Cat\n\nwhen flag clicked\nglide (1) secs to x: (-19) y: (22)\nhide\n\nwhen [space v] key pressed\nshow\nrepeat (10)\n    glide (0.1) secs to (random position v)\n    start sound [Meow v]\nend\nhide\n\n
Expect the Unexpected with this platformer!\n\nSee how many weird things you can find. Tell them in the comments! ;)\n\nMade for the 134th Scratch Design Studio "Expect the Unexpected" https://scratch.mit.edu/studios/29664386/\n\nThere are some things that'll happen related to "134"! ;)\n\nBe sure to move your mouse around! There's a giant purple dot. I wonder what that is...\n\nOh! The controls are wonky! I wonder why... :P\n\nWhy is there a sea full of Gobo, Pico, and Tera???\n\nWait! What's the SDS Logo doing? :o\n\nWhat happens when you click on it! :O\n\nAnd what happens when you press space? :0\n\nWhat is that maniacal horse thing??????\n\nSo unexpected. Right?