GPT007/Scratch-platformers-10k huggingface dataset:
Roblox Platformer

Instructions: a or the left button to go to the left.\nd or the right button to go to the right.\nthe Space bar or the up button to go jump.\nWatch out for red! Green is your goal. There are 11 levels total!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Roblox song 2 v] until done\n    play sound [Roblox Song v] until done\nend\n\n@Roblox Player\n\ngo to x: (-193) y: (0)\n\nwhen I receive [message1 v]\ngo to x: (-193) y: (0)\n\nwhen flag clicked\nset [deaths v] to [0]\nshow variable [level v]\nshow\nset [level v] to [1]\nswitch backdrop to (level 1 v)\nset rotation style [left-right v]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        move (-5) steps\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        move (5) steps\n    end\n    if <touching color (#35ff00)?> then\n        next backdrop\n        change [level v] by (1)\n        go to x: (-193) y: (0)\n    end\n    if <touching color (#ff0000)?> then\n        start sound [Oof Sound v]\n        go to x: (-193) y: (0)\n        change [deaths v] by (1)\n    end\n    if <touching color (#ca00ff)?> then\n        change y by (5)\n    end\nend\n\nwhen flag clicked\ngo to x: (-193) y: (0)\nset [velocity v] to [0]\nset [gravity v] to [-0.3]\nforever\n    set [velocity v] to ((velocity) + (gravity))\n    set y to ((y position) + (velocity))\n    if <<touching color (#000000)?> and <(velocity) < [0.01]>> then\n        set [velocity v] to [0.3]\n    end\n    if <<<key (space v) pressed?> or <key (up arrow v) pressed?>> and <touching color (#000000)?>> then\n        set [velocity v] to [9]\n    end\nend\n\nwhen flag clicked\n\n@Goal\n\nwhen backdrop switches to [level 1 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 2 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 4 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 3 v]\ngo to x: (-49) y: (241)\n\nwhen backdrop switches to [level 5 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 6 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 7 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 8 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 10 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 9 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 11 v]\ngo to x: (-153) y: (286)\n\nwhen backdrop switches to [you won! v]\nhide\nhide variable [level v]\n\nwhen flag clicked\nshow variable [level v]\nshow\n\n@Skip\n\nwhen flag clicked\nhide\nforever\n    if <(Deaths) = [5]> then\n        show\n        broadcast (message1 v)\n    end\nend\n\nwhen this sprite clicked\nnext backdrop\nhide\nset [deaths v] to [0]\n\n
Purple-a Platformer

Instructions: *****************************Purple***********************************\n___________________________________________________\n-Love!\n-Favourite!\n-Follow!

@Stage\n\nwhen flag clicked\nswitch backdrop to (giphy v)\n\n@Player\n\ndefine Define Gravity\nchange y by (fallspeed)\nif <<touching (ground v)?> and <touching color (#74009c)?>> then\n    if <(fallspeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground v)?> and <touching color (#74009c)?>>>\n        change y by (reversestep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (gravity)\nend\n\ndefine RUNControls\nif <key (right arrow v) pressed?> then\n    switch costume to (costume1 v)\n    change x by (RUNSPEED)\n    if <<touching (ground v)?> and <touching color (#74009c)?>> then\n        change x by ((0) - (RUNSPEED))\n    end\nend\nif <key (left arrow v) pressed?> then\n    switch costume to (costume2 v)\n    change x by ((0) - (RUNSPEED))\n    if <<touching (ground v)?> and <touching color (#74009c)?>> then\n        change x by (RUNSPEED)\n    end\nend\n\ndefine starting position\nset [fallspeed v] to [0]\ngo to x: (-140) y: (25)\n\nwhen flag clicked\nstarting position\nshow\nset [runspeed v] to [5]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\nset [takeoffspeed v] to [15]\nforever\n    RUNControls\n    Jump Control\n    Define Gravity\n    if <touching (jumping pads v)?> then\n        set [takeoffspeed v] to [21]\n        set [fallspeed v] to (takeoffspeed)\n        set [takeoffspeed v] to [15]\n    end\n    if <(x position) > [232]> then\n        starting position\n        broadcast (next v)\n    end\n    if <(y position) < [-170]> then\n        starting position\n    end\nend\n\ndefine Jump Control\nif <key (up arrow v) pressed?> then\n    change y by (-1)\n    if <<touching (ground v)?> and <touching color (#74009c)?>> then\n        set [fallspeed v] to (takeoffspeed)\n    end\n    change y by (1)\nend\n\nbroadcast (\[arty v)\n\nbroadcast (\[arty v)\n\nwhen flag clicked\nforever\n    play sound [Kronos v] until done\nend\n\n@Ground\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (1 v)\nshow\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [time v]\nrepeat until <(costume [number v]) = [5]>\n    wait (0.1) seconds\n    change [time v] by (0.1)\nend\nshow variable [time v]\n\n@Backdrop\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\nforever\n    next costume\nend\n\n@Trail\n\nwhen flag clicked\nforever\n    go to (player v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\n@Jumping Pads\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nshow\ngo to [front v] layer\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nwait (0.1) seconds\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
Griffin Platformer

Instructions: Arrow keys to move and avoid dark red.

@Stage\n\n@Sprite2\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                            else\n                                set [yv v] to [10]\n                            end\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <(x position) > [196]> then\n        go to x: (-188) y: (-133)\n        switch backdrop to (next backdrop v)\n    end\n    if <touching color (#cd0000)?> then\n        go to x: (-188) y: (-133)\n    end\nend\n\nwhen flag clicked\ngo to x: (-185) y: (43)\nset size to (30) %\n\nwhen flag clicked\nforever\n    if on edge, bounce\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@thumbnail\n\nwhen flag clicked\nclear graphic effects\nshow\nwait (3) seconds\nrepeat (100)\n    change [ghost v] effect by (25)\nend\nhide\n\n
Dogs Platformer

Instructions: New levels coming soon. All level are possible\nINSTRUCTIONS\n\nArrow keys to move.\n\nMY YT Channel\nhttps://www.youtube.com/channel/UCgidyiUnT3sJkP6w7SfFTLA/?sub_confirmation=1

@Stage\n\n@Objeto1\n\nwhen I receive [next level v]\nnext costume\n\n@Objeto2\n\nwhen I receive [end v]\nhide\n\nwhen [r v] key pressed\ngo to x: (-196) y: (-17)\n\nwhen I receive [next level v]\ngo to x: (-196) y: (-17)\n\nwhen flag clicked\nhide\nwait (1.5) seconds\ngo to x: (-196) y: (-17)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow 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 color (#4c337e)?> then\n        change y by (1)\n    end\n    if <touching color (#4c337e)?> then\n        change y by (1)\n    end\n    if <touching color (#4c337e)?> then\n        change y by (1)\n    end\n    if <touching color (#4c337e)?> then\n        change y by (1)\n    end\n    if <touching color (#4c337e)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> 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 color (#4c337e)?> 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?> and <touching color (#4c337e)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff8181)?> then\n        go to x: (-196) y: (-17)\n    end\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\nend\n\n@Objeto3\n\nwhen flag clicked\nshow\ngo to [front v] layer\nwait (0.25) seconds\nhide\n\n
Upside~Down: A Platformer


@Stage\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nset [yvelocity v] to [-0]\ngo to x: (-212) y: (120)\nset size to (50) %\nforever\n    if <<touching color (#00ff1a)?> or <touching color (#d7ff66)?>> then\n        set [yvelocity v] to [-0]\n        if <key (down arrow v) pressed?> then\n            set [yvelocity v] to [-10]\n        end\n    end\n    change y by (yvelocity)\n    change [yvelocity v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        change x by (5)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-5)\n    end\nend\n\nwhen flag clicked\nerase all\nswitch backdrop to (neon tunnel v)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-212) y: (150)\n        erase all\n    end\n    if <touching color (#00f0ff)?> then\n        go to x: (-212) y: (150)\n        switch backdrop to (next backdrop v)\n        erase all\n    end\nend\n\nwhen flag clicked\nturn right (180) degrees\nforever\n    if <(backdrop [number v]) = [5]> then\n        hide\n    end\n    if <(backdrop [number v]) = [1]> then\n        show\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to x: (50) y: (127)\nforever\n    if <(backdrop [number v]) = [3]> then\n        show\n        forever\n            glide (5) secs to x: (150) y: (127)\n            glide (5) secs to x: (-50) y: (127)\n        end\n    end\n    if <not <(backdrop [number v]) = [3]>> then\n        hide\n    end\n    if <(backdrop [name v]) = [neon tunnel]> then\n        hide\n    end\n    if <(backdrop [number v]) = [4]> then\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Start\n\nwhen flag clicked\nshow\nif <(backdrop [number v]) = [4]> then\n    show\nend\n\nwhen this sprite clicked\nhide\nswitch backdrop to (backdrop1 v)\n\n
Platformer YouTube Tutorial

Instructions: Hi all, \n\nI made this platformer ONLY TO MAKE TUTORIALS for it on YouTube. So it is NOT a perfect game, levels or other stuff associated with it. However, it is a good starting point for your own projects as you can remix and make awesome stuff. You can watch all the tutorials here:\n\nPart 1:\nhttps://youtu.be/7gkSbtpmpXI\n\nPart 2:\nhttps://youtu.be/TzIQCqrnWZ8\n\nPart 3:\nhttps://youtu.be/Qxo1rgP7IH4\n\nPart 4:\nhttps://youtu.be/p9WkgqGwmO4

@Stage\n\n@Pico Walking\n\nwhen flag clicked\nset [yv v] to [0]\nforever\n    if <touching color (#515151)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n            set [going up v] to [1]\n            repeat (10)\n                change y by (yv)\n                change [yv v] by (-1)\n            end\n            set [going up v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (-196) y: (-10)\npoint in direction (90)\nset size to (60) %\nforever\n    if <<not <touching color (#515151)?>> and <(going up) = [0]>> then\n        change y by (yv)\n        change [yv v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (10) steps\n        next costume\n    end\n    if <key (left arrow v) pressed?> then\n        move (10) steps\n        set rotation style [left-right v]\n        point in direction (-90)\n        next costume\n    end\nend\n\nwhen I receive [set start v]\ngo to x: (-196) y: (0)\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <touching (crystal v)?> then\n        broadcast (next level v)\n    end\nend\n\nwhen [a v] key pressed\nset [size change v] to [0]\nrepeat (10)\n    change size by (size change)\n    change [size change v] by (-1)\nend\nset [size change v] to [0]\nrepeat (10)\n    change size by (size change)\n    change [size change v] by (1)\nend\n\ndefine hgjhgj\nrepeat ([abs v] of (yv) )\n    change y by (([abs v] of (yv) ) / (yv))\n    if <<touching (ground v)?> or <touching (levels v)?>> then\n        change y by ((([abs v] of (yv) ) / (yv)) * (-1))\n        set [yv v] to [0]\n        stop [this script v]\n    end\nend\n\n@Ground\n\n@levels\n\nwhen flag clicked\nset [score v] to [100]\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nchange [score v] by (50)\nnext costume\nbroadcast (set start v)\nbroadcast (update score v)\n\n@Crystal\n\nwhen flag clicked\nswitch costume to (crystal-a v)\n\nwhen I receive [next level v]\nnext costume\n\n@numbers\n\nwhen I receive [update score v]\nset [count v] to [1]\nerase all\nshow\nrepeat (3)\n    switch costume to (letter (count) of (score))\n    stamp\n    move (20) steps\n    change [count v] by (1)\nend\nmove (-60) steps\nhide\n\nwhen flag clicked\nset [count v] to [1]\nerase all\nshow\nrepeat (3)\n    switch costume to (letter (count) of (score))\n    stamp\n    move (20) steps\n    change [count v] by (1)\nend\nmove (-60) steps\nhide\n\n
Happy little Platformer

Instructions: Walk around in this happy little world as a happy (a little bit chubby) cat using your happy little arrow keys to move, and enjoy your happy little life. \n\n:)\n\nYou can click on some of the bushes to interact with them.

@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky v)\nforever\n    play sound [Eggs v] until done\nend\n\n@Sprite1\n\nwhen [right arrow v] key pressed\npoint in direction (90)\nmove (5) steps\nnext costume\n\nwhen [left arrow v] key pressed\npoint in direction (-90)\nmove (5) steps\nnext costume\n\nwhen flag clicked\ngo to x: (-189) y: (108)\ngo to [front v] layer\nforever\n    wait (pick random (1) to (10)) seconds\n    play sound (pick random (1) to (2)) until done\nend\n\nwhen [right arrow v] key pressed\nplay sound [Footsteps v] until done\n\nwhen [left arrow v] key pressed\nplay sound [Footsteps v] until done\n\n@Clouds\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (5))\nglide (pick random (4) to (8)) secs to x: (-500) y: (y position)\ndelete this clone\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nforever\n    change [ghost v] effect by (((0) - (x position)) / (54))\nend\n\nsay (((0) - (x position)) / (4.8))\n\nwhen flag clicked\nhide\nforever\n    go to x: (500) y: (pick random (-138) to (-85))\n    switch costume to (dot v)\n    create clone of (_myself_ v)\n    wait (pick random (1.7) to (5)) seconds\nend\n\n@Sprite2\n\nwhen this sprite clicked\nplay sound [Rip v] until done\n\ngo to [back v] layer\n\nwhen this sprite clicked\nbroadcast (message1 v) and wait\n\nhide\n\nwhen flag clicked\nshow\n\n@Grasshopper\n\nwhen I receive [message1 v]\nstart sound [Cricket v]\nshow\ngo to x: (-152) y: (86)\nrepeat (pick random (1) to (4))\n    start sound [Cricket v]\n    repeat (6)\n        wait (.1) seconds\n        next costume\n        move (10) steps\n    end\n    wait (pick random (0) to (2)) seconds\nend\nwait (1) seconds\nhide\n\nturn right (15) degrees\n\npoint in direction (90)\n\nwhen flag clicked\nhide\ngo to x: (-152) y: (86)\n\n
Troll | A Platformer

Instructions: WOOHOO!! New Platformer!!\n================The Story===================\nYou are a troll getting trolled. Simple eh?\n\n================Controls====================\n\nArrow keys or WASD to move.

@Stage\n\n@td1\n\nwhen flag clicked\n\nwhen flag clicked\nshow\nswitch costume to (td1 v)\ngo to x: (0) y: (0)\nforever\n    wait (0.071) seconds\n    next costume\nend\n\nwhen I receive [trololololo v]\n\nwhen I receive [trololololo v]\nforever\n    play sound [trololol v] until done\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [just start v]\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\nshow\nwait (2) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nbroadcast (trololololo v)\n\n@!?!\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [trololololo v]\nshow\n\n
UpSiDeDoWn Platformer!

Instructions: We've reached over 800 views! Thank you so much! Remember to check out the original project!\nhttps://scratch.mit.edu/projects/34429446\n\nUse arrow keys to move and jump!\n\nDisclaimer: slopes going in some directions do not work properely and idk why... If you are someone that knows how to fix it, could you pls tell me how... That would be greatly apreciated...

@Stage\n\nwhen backdrop switches to [world 1 complete!! v]\nwait (2) seconds\nnext backdrop\n\nwhen flag clicked\nforever\n    set [lvl v] to ([backdrop name v] of [_stage_ v])\nend\n\n@Script here\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\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 (#666666)?> then\n        change y by (1)\n        if <touching color (#666666)?> then\n            change y by (1)\n            if <touching color (#666666)?> then\n                change y by (1)\n                if <touching color (#666666)?> then\n                    change y by (1)\n                    if <touching color (#666666)?> then\n                        change y by (1)\n                        if <touching color (#666666)?> 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 (#666666)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (1)\n    if <touching color (#666666)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [-15]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\ngo to x: (-148) y: (-162)\n\nwhen flag clicked\nswitch backdrop to (lvl 1 v)\nforever\n    if <touching color (#24ff00)?> then\n        next backdrop\n    end\nend\n\nwhen backdrop switches to [lvl 11 v]\ngo to x: (-139) y: (99)\nforever\n    if <touching color (#ff8000)?> then\n        point in direction (180)\n        change [xv v] by (50)\n    end\nend\n\nswitch backdrop to (lvl 11 v)\n\n