GPT007/Scratch-platformers-10k huggingface dataset:
Honeybee Hive Platformer

Instructions: Use arrow keys to move the bee\n\nPlease check out some of my other projects!\nhttps://scratch.mit.edu/projects/560992727/\nhttps://scratch.mit.edu/projects/558877075/\nhttps://scratch.mit.edu/projects/554617487/

@Stage\n\nwhen I receive [begin v]\nwait (2) seconds\nswitch backdrop to (blank v)\n\nwhen flag clicked\nswitch backdrop to (blank v)\n\nwhen flag clicked\nforever\n    play sound [ v] until done\nend\n\n@Sprite1\n\ngo to x: (36) y: (28)\n\n@player\n\ndefine walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching (ground v)?>> or <(ground lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(ground lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-2)\n    change y by (y velocity)\n    change [in air v] by (1)\n    handle ground <(y velocity) > [0]>\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <(in air) < [8]>> then\n        set [y velocity v] to [14]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        walk [6]\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        walk [-6]\n    end\nend\n\ndefine handle ground <moving up>\nswitch costume to (costume2 v)\nrepeat until <not <touching (ground v)?>>\n    if <moving up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [in air v] to [0]\n    end\n    set [y velocity v] to [0]\nend\nswitch costume to (sparky v)\n\nwhen flag clicked\nswitch costume to (cat-a v)\nset [deaths v] to [0]\nforever\n    if <(y position) < [-170]> then\n        set [y velocity v] to [0]\n        set x to (-230)\n        if <(y position) < [-100]> then\n            set y to (-100)\n        end\n        change [deaths v] by (1)\n        change [lives v] by (-1)\n        broadcast (reboot level v)\n    end\nend\n\ndefine die / next level\nif <(x position) > [230]> then\n    set x to (-230)\n    if <(y position) < [-100]> then\n        set y to (-100)\n    else\n        if <[-5] < (y position)> then\n            set y to (-5)\n        end\n    end\n    broadcast (next level v)\nend\n\nwhen flag clicked\nforever\n    die / next level\nend\n\nwhen flag clicked\ngo to x: (-230) y: (5)\n\nwhen [space v] key pressed\nnext costume\n\n@ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume8 v)\nchange [color v] effect by (5)\n\n
Dawn (Platformer) 


@Stage\n\n@Sprite1\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play drum (1 v) for (0.25) beats\n    rest for (pick random (1) to (10)) beats\n    play drum (1 v) for (0.25) beats\n    rest for (pick random (1) to (10)) beats\nend\n\n@Sprite2\n\nwhen I receive [6 v]\nrest for (2) beats\nrepeat (16)\n    rest for (pick random (1) to (4)) beats\n    repeat (pick random (1) to (4))\n        play drum (3 v) for (0.25) beats\n    end\nend\n\nwhen flag clicked\nset tempo to (150)\nrepeat (4)\n    play drum (1 v) for (0.25) beats\n    play drum (1 v) for (0.25) beats\n    play drum (1 v) for (0.25) beats\n    play drum (1 v) for (0.25) beats\n    rest for (1) beats\nend\nset tempo to (500)\nrepeat (4)\n    play drum (2 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (1 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (2 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (11 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (2 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (8 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (11 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (13 v) for (0.25) beats\n    rest for (0.5) beats\nend\nbroadcast (message1 v)\nset tempo to (120)\nrepeat (8)\n    play drum (2 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (1 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (2 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (11 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (2 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (8 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (11 v) for (0.25) beats\n    rest for (0.5) beats\n    play drum (13 v) for (0.25) beats\n    rest for (0.5) beats\nend\nbroadcast (6 v)\n\n@Amon\n\nwhen I receive [message1 v]\nset instrument to (10 v)\nforever\n    change tempo by (20)\n    play note (60) for (0.25) beats\n    play note (62) for (0.25) beats\n    play note (61) for (0.25) beats\n    play note (59) for (0.25) beats\n    play note (64) for (0.25) beats\n    play note (66) for (0.25) beats\n    play note (58) for (0.25) beats\n    play note (63) for (0.25) beats\nend\n\nwhen I receive [6 v]\nset instrument to (5 v)\nset tempo to (120)\nstop [other scripts in sprite v]\nrepeat (4)\n    play note (60) for (1) beats\n    play note (62) for (1) beats\n    play note (64) for (1) beats\n    play note (63) for (1) beats\n    play note (61) for (1) beats\n    play note (60) for (1) beats\n    play note (59) for (2) beats\nend\nrepeat (4)\n    play drum (8 v) for (0.25) beats\n    play drum (3 v) for (0.25) beats\n    play drum (9 v) for (0.25) beats\n    play drum (16 v) for (0.25) beats\n    play drum (13 v) for (0.25) beats\nend\nwait (4) seconds\nstop [all v]\n\n@Apple\n\nrepeat (4)\n    play drum (8 v) for (0.25) beats\n    play drum (3 v) for (0.25) beats\n    play drum (9 v) for (0.25) beats\n    play drum (16 v) for (0.25) beats\n    play drum (13 v) for (0.25) beats\nend\n\n
Basic Platformer

Instructions: A basic platformer game that I made using this tutorial: https://www.youtube.com/watch?v=D16hTnDGweo\n\nNew version now out: https://scratch.mit.edu/projects/570230528/\n\nInstructions:\nTouch yellow to win\nDon't touch red\nFloat in water\nTouch purple to go smaller\n\nControls:\nWASD or Arrow Keys to move\nPress O to customise jumping and speed\n\nFeel free to remix and edit!

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (LEVEL)\nend\n\n@Player\n\nwhen flag clicked\nGo to start\nswitch costume to (block v)\nset [level v] to [1]\nset [falling v] to [0]\nset [gravity v] to [-1]\nset [jump strength v] to [12]\nset [speed v] to [1.5]\nset [resistance v] to [0.8]\nset [speed y v] to [0]\nset [customise menu v] to [0]\nforever\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <key (space v) pressed?>> then\n        if <(falling) < [3]> then\n            set [speed y v] to (Jump Strength)\n        end\n        if <touching color (#00f9ff)?> then\n            set [speed y v] to ((Jump Strength) - (5))\n        end\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [speed x v] by ((0) - (Speed))\n    end\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [speed x v] by (Speed)\n    end\n    if <key (o v) pressed?> then\n        if <(Customise Menu) = [1]> then\n            set [customise menu v] to [0]\n        else\n            set [customise menu v] to [1]\n        end\n    end\n    if <touching color (#f5ff00)?> then\n        change [level v] by (1)\n        Go to start\n    end\n    if <touching color (#ff0000)?> then\n        Go to start\n    end\n    if <touching color (#8600ff)?> then\n        set size to (50) %\n    end\n    if <(Customise Menu) = [1]> then\n        show variable [speed v]\n        show variable [jump strength v]\n    else\n        hide variable [speed v]\n        hide variable [jump strength v]\n    end\n    change [speed y v] by (GRAVITY)\n    set [speed x v] to ((speed x) * (Resistance))\n    Move - in steps (([abs v] of (speed y) ) + ([abs v] of (speed x) ))\nend\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#000000)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#000000)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\ndefine Go to start\nset size to (100) %\nif <(LEVEL) = [4]> then\n    go to x: (-170) y: (-75)\nelse\n    if <(LEVEL) = [5]> then\n        go to x: (-210) y: (-40)\n    else\n        if <(LEVEL) = [11]> then\n            go to x: (0) y: (0)\n            set [level v] to [10]\n            switch costume to (well done! v)\n            set size to (200) %\n            stop [all v]\n        else\n            go to x: (-150) y: (-40)\n        end\n    end\nend\n\n
platformer

Instructions: -> instructions are all written in the project. just click 'guide'\n\n-> 90% code from a yt tutorial :D\n-> NOT mobile friendly\n\nevery stage is possible!

@Stage\n\n@player\n\nwhen flag clicked\ngo to x: (-119) y: (-152)\nforever\n    change [y velocity v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((x velocity) * (0.87))\n    change x by (x velocity)\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (-6)\n        change x by ((x velocity) * (-1))\n        set [x velocity v] to [0]\n    end\n    change y by (y velocity)\n    if <touching (stage v)?> then\n        change y by ((y velocity) - ((y velocity) * (2)))\n        set [y velocity v] to [0]\n    end\n    if <touching (stage v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (stage v)?>> then\n        set [y velocity v] to [13]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching (wall ig idk v)?> then\n        broadcast (next v)\n        go to x: (-119) y: (-152)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes/lava v)?> then\n        go to x: (-119) y: (-152)\n        create clone of (_myself_ v)\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if < (costume [number v]) contains [2]?> then\n        wait (0.6) seconds\n        switch costume to (costume1 v)\n    end\nend\n\n@stage\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\n@wall ig idk\n\nwhen flag clicked\ngo to [back v] layer\n\n@spikes/lava\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume2 v)\n\nwhen I receive [next v]\nnext costume\n\n@guide\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen this sprite clicked\nswitch costume to (costume2 v)\nbroadcast (open v)\n\nwhen I receive [close v]\nswitch costume to (costume1 v)\n\n@close\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (close v)\nhide\n\nwhen I receive [open v]\nshow\n\n@thumbnail\n\nwhen flag clicked\nhide\n\n
Dinosaur - a platformer

Instructions: Move with arrows and don't touch bones. This games is simple and I made it without tools, all is hand draw.\n\nPoruszaj się strzałkami i nie dotykaj kości. Platformówka jest dość krótka. Zrobiłem ją rysując wszystko ręcznie, a nie używając gotowych liń i kształtów.

@Stage\n\nwhen flag clicked\nswitch backdrop to (tło2 v)\n\nwhen flag clicked\nset [czas v] to [0]\nforever\n    if <not <(backdrop [number v]) = [12]>> then\n        wait (0.1) seconds\n        change [czas v] by (0.1)\n    end\nend\n\n@Duszek1\n\nwhen flag clicked\ngo to x: (-170) y: (0)\nswitch costume to (kostium3 v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        point in direction (-90)\n    end\n    if <key (left arrow v) pressed?> 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 color (#10ff00)?> then\n        change y by (1)\n        if <touching color (#10ff00)?> then\n            change y by (1)\n            if <touching color (#10ff00)?> then\n                change y by (1)\n                if <touching color (#10ff00)?> then\n                    change y by (1)\n                    if <touching color (#10ff00)?> then\n                        change y by (1)\n                        if <touching color (#10ff00)?> then\n                            change y by (-5)\n                            change x by ((x) * (-1))\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 color (#10ff00)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <key (up arrow v) pressed?> then\n        if <touching color (#10ff00)?> then\n            set [y v] to [10]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    hide variable [x v]\n    hide variable [y v]\nend\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\nforever\n    if <(x position) < [-200]> then\n        if <key (left arrow v) pressed?> then\n            change [x v] by (1.5)\n        end\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\npoint in direction (-90)\n\nwhen flag clicked\nforever\n    if <<(x position) > [220]> and <not <(backdrop [number v]) = [12]>>> then\n        next backdrop\n        switch costume to (kostium3 v)\n        point in direction (-90)\n        go to x: (-170) y: (0)\n    end\n    if <touching color (#ffffff)?> then\n        switch costume to (kostium3 v)\n        point in direction (-90)\n        go to x: (-170) y: (0)\n    end\n    if <<(x position) > [220]> and <(backdrop [number v]) = [12]>> then\n        change x by (-1)\n    end\nend\n\n@Duszek2\n\nwhen flag clicked\nhide\n\n
Platformer

Instructions: OMG almost 1000 views \nThanks guys for your support\n4 remixes only target 10 to 15 remixes please\n\n

@Stage\n\n@Player\n\nwhen flag clicked\nset [gravity v] to [-1.5]\nset [jump force v] to [12]\nset [accelaration v] to [1.5]\nset [speed y v] to [0]\ngo to x: (-150) y: (55)\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed y v] to (JUMP FORCE)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by (-1.5)\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (1.5)\n    end\n    set [speed x v] to ((speed x) * (0.8))\n    change [speed y v] by (GRAVITY)\n    change x by (speed x)\n    Move-in steps ([abs v] of (speed y) )\nend\n\ndefine Move-in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#9966ff)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\n
GAME! platformer

Instructions: G A M E\n\na new motion\n \ncharacter jump a lot and rotation.\nIf you use nice technics can wall kick.\n\narrow key to moving\nwall kick: switch to left key and right key

@Stage\n\nwhen flag clicked\nforever\n    play sound [Goodbye v] until done\nend\n\n@thumbnail\n\nshow\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@stage\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [starge v] to [1]\nforever\n    switch costume to (starge)\n    if <[9] < (starge)> then\n        set [starge v] to [10]\n    end\nend\n\n@enemy\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [starge v] to [1]\nforever\n    switch costume to (starge)\nend\n\n@character\n\nwhen flag clicked\ngo to x: (-200) y: (100)\nset [x v] to [0]\nset [y v] to [0]\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        if <(work jump) = [0]> then\n            set [y v] to [13]\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        if <(work jump) = [0]> then\n            set [y v] to [13]\n        end\n    end\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (stage v)?> then\n        change y by (1)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change y by (1)\n                        if <touching (stage v)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching (stage v)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (y)\n    if <(work jump) = [1]> then\n        turn right ((9) * (round ((x) / ([abs v] of (x) )))) degrees\n    end\n    if <touching (stage v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n        set [work jump v] to [0]\n    else\n        set [work jump v] to [1]\n    end\n    if <[230] < (x position)> then\n        change [starge v] by (1)\n        go to x: (-200) y: (-50)\n    end\n    if <<(y position) < [-170]> or <touching (enemy v)?>> then\n        go to x: (-200) y: (-50)\n    end\nend\n\n
donut platformer ૮₍˶• . • ⑅ ₎ა 

Instructions:                        ˗ˏˋ a  p l a t f o r m e r ´ˎ˗\n↳ heyo & wlcm to my first platformer!\n‿‿‿‿\n✎ᝰ info:\n u are separated from your family after your enemies attacked your kitchen—The Kindness Kitchen. u must find a way home! use arrow keys to navigate the donut to its parents. have fun!\n‿‿‿‿\ncredits: thank u to @Berricake for the og project!\n‿‿‿‿\n   /\ __/\ /\  /\ \n  ( ,,´∀ `,,)W< ) — byebye♡︎ \n  / づ ⠀⠀⊂__\

@Stage\n\nwhen flag clicked\nforever\n    play sound [lion's theme - steven universe ost v] until done\nend\n\nwhen I receive [message1 v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@donutt\n\nwhen flag clicked\nshow\nset size to (18) %\ngo to x: (-199) y: (41)\nforever\n    if <key (right arrow v) pressed?> then\n        turn right (6) degrees\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        turn left (6) degrees\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#fff9aa)?> then\n        change y by (1)\n        if <touching color (#fff9aa)?> then\n            change y by (1)\n            if <touching color (#fff9aa)?> then\n                change y by (1)\n                if <touching color (#fff9aa)?> then\n                    change y by (1)\n                    if <touching color (#fff9aa)?> then\n                        change y by (1)\n                        if <touching color (#fff9aa)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#fff9aa)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#fff9aa)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#a0c9ff)?> then\n        go to x: (-209) y: (31)\n    end\n    if <touching color (#eeff77)?> then\n        broadcast (message1 v) and wait\n        go to x: (-209) y: (31)\n    end\nend\n\nwhen [space v] key pressed\ngo to x: (-209) y: (31)\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n
Ancient Platformer

Instructions: WASD \narrow keys\nmobile\n\nhttps://scratch.mit.edu/projects/579346975 anti-spike version (a remix by @Koon_p4l) 

@Stage\n\nwhen flag clicked\nforever\n    play sound [music v] until done\nend\n\n@Spike\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Player\n\nwhen flag clicked\nshow\nset size to (23) %\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 (left arrow v) pressed?> or <key (a 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 (right arrow v) pressed?> or <key (d 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 (up 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 (up arrow v) pressed?> or <key (w 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 (spike v)?> or <touching (waves v)?>> 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 (23) %\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\nend\n\nwhen flag clicked\npoint in direction (90)\n\n@Ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n