light platformer
@Stage\n\n@ŚWIATŁO\n\nwhen flag clicked\nset [color v] effect to (4)\nforever\n    set [ghost v] effect to (0)\n    repeat (5)\n        change [ghost v] effect by (-10)\n        wait (0.1) seconds\n    end\n    repeat (5)\n        change [ghost v] effect by (10)\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n\nplay sound [Medieval1 v] until done\n\n@ZIEMIA\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nswitch costume to (lvl1 v)\nshow\n\nwhen I receive [następny lvl v]\nnext costume\n\n@GRACZ\n\nwhen I receive [play v]\ngo to x: (-173) y: (-111)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <(x position) > [300]> then\n        broadcast (level up v)\n        change [l evel v] by (1)\n        stop [this script v]\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (0.8)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.8)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    if <touching color (#fdff95)?> then\n        change y by (1)\n        if <touching color (#fdff95)?> then\n            change y by (1)\n            if <touching color (#fdff95)?> then\n                change y by (1)\n                if <touching color (#fdff95)?> then\n                    change y by (1)\n                    if <touching color (#fdff95)?> then\n                        change y by (1)\n                        if <touching color (#fdff95)?> then\n                            change y by (-5)\n                            change x by ((-1) * (xv))\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(xv) = [0]>>> then\n                                set [yv v] to [8]\n                                set [xv v] to (((xv) / ([abs v] of (xv) )) * (-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 y by (-2)\n    if <touching color (#000000)?> then\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            set [yv v] to [9]\n        end\n    end\n    change y by (2)\n    if <(yv) > [-15]> then\n        change [yv v] by (-0.5)\n    end\n    change y by (yv)\n    if <touching color (#fdff95)?> then\n        change y by (-2)\n        if <touching color (#fdff95)?> then\n            change y by ((-1) * (yv))\n            set [yv v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\ngo to x: (-160) y: (0)\nshow\n\nwhen I receive [play v]\nforever\n    if <touching (nxt lvl v)?> then\n        broadcast (NASTĘPNY LVL v)\n        go to x: (-160) y: (-35)\n        show\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <touching (nxt lvl v)?> then\n        broadcast (NASTĘPNY LVL v)\n        go to x: (-160) y: (-35)\n        show\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <touching (ziemia v)?> then\n        if <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            change [yv v] by (15)\n            wait (1.5) seconds\n        end\n    end\nend\n\nwhen I receive [następny lvl v]\ngo to x: (-173) y: (-111)\n\nwhen I receive [play v]\nforever\n    if <touching color (#000000)?> then\n        go to x: (-173) y: (-111)\n    end\nend\n\n@light platformer\n\nwhen flag clicked\nshow\npoint in direction (75)\nforever\n    repeat (15)\n        turn right (2) degrees\n    end\n    repeat (15)\n        turn left (2) degrees\n    end\nend\n\nwhen flag clicked\nset size to (75) %\nforever\n    repeat (15)\n        change size by (2)\n    end\n    wait (0.2) seconds\n    repeat (15)\n        change size by (-2)\n    end\n    wait (0.2) seconds\nend\n\nwhen I receive [play v]\nhide\n\n@GRAJ\n\nwhen flag clicked\nshow\nset size to (75) %\nforever\n    repeat (15)\n        change size by (2)\n    end\n    repeat (15)\n        change size by (-2)\n    end\nend\n\nwhen I receive [play v]\nhide\n\nwhen this sprite clicked\nbroadcast (PLAY v)\n\n@NXT LVL\n\n
WELCOME TO LIGHT PLATFORMER!\n-WASD OR ARROWS TO MOVE\n-BLACK KILL\n-10 LEVELS\nHAVE FUN!!!!!!!!!!!!!!!!\nPLEASE CHECK OUT THIS VERSION: https://scratch.mit.edu/projects/403415915/