Lightcube Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (logo v)\nclear graphic effects\n\nwhen I receive [game.end v]\nswitch backdrop to (fin v)\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [game.start v]\nswitch backdrop to (red v)\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Intro\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset size to (500) %\nset [ghost v] effect to (100)\nrepeat (25)\n    change size by (((250) - (size)) * (0.25))\n    change [ghost v] effect by (-5)\nend\nrepeat (10)\n    change y by ((5) - ((y position) * (0.2)))\n    change [ghost v] effect by (2.5)\nend\nrepeat (30)\n    change y by (((5) - ((y position) * (0.2))) * (-1))\n    change [ghost v] effect by (3)\nend\nhide\nbroadcast (game.start v)\n\n@Music Button\n\nwhen flag clicked\nhide\nset size to (25) %\ngo to x: (210) y: (155)\nset volume to (100) %\nforever\n    play sound [Alexey_Anisimov_-_Magical_Christmas.mp3 v] until done\nend\n\nwhen I receive [game.start v]\nswitch costume to (costume1 v)\nforever\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    set volume to (0) %\n    switch costume to (costume2 v)\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    set volume to (100) %\n    switch costume to (costume1 v)\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\n\nwhen I receive [game.start v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n        wait until <not <touching (mouse-pointer v)?>>\n        clear graphic effects\n    end\nend\n\nwhen I receive [game.end v]\nhide\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I receive [game.start v]\ngo to x: (-210) y: (150)\nhide variable [yv v]\nhide variable [xv v]\nset [yv v] to [0]\nset [xv v] to [0]\nset [level v] to [1]\nset size to (50) %\nshow\npoint in direction (90)\nset rotation style [left-right v]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [xv v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\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 (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n        change y by (1)\n        if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n            change y by (1)\n            if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n                change y by (1)\n                if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n                    change y by (1)\n                    if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n                        change y by (1)\n                        if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n                            change y by (1)\n                            if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n                                change x by ((XV) * (-1))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w 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    end\n    change [yv v] by (-1)\n    change y by (YV)\n    if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<<<<touching color (#ff0000)?> or <touching color (#ff9400)?>> or <touching color (#ffe741)?>> or <touching color (#00ff55)?>> or <touching color (#003fff)?>> or <touching color (#7f00ff)?>> then\n        if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [235]> then\n        if <not <(backdrop [name v]) = [purple]>> then\n            wait (9.999999999999955e-101) seconds\n            switch backdrop to (next backdrop v)\n            go to x: (-210) y: (150)\n            change [level v] by (1)\n        else\n            wait (9.999999999999955e-101) seconds\n            broadcast (game.end v)\n            hide\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n    end\n    if <(y position) < [-178]> then\n        go to x: (-210) y: (150)\n    end\n    if <<<<touching color (#663b00)?> or <touching color (#ba8b01)?>> or <touching color (#006622)?>> or <touching color (#001966)?>> then\n        go to x: (-210) y: (150)\n    end\nend\n\nwhen I receive [game.start v]\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (item (1) of [costumes to be used v])\n    else\n        if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w v) pressed?>> then\n            switch costume to (item (6) of [costumes to be used v])\n        else\n            if <<<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> or <<key (d v) pressed?> or <key (a v) pressed?>>> then\n                repeat until <<not <key (any v) pressed?>> or <<key (up arrow v) pressed?> or <key (space v) pressed?>>>\n                    switch costume to (item (2) of [costumes to be used v])\n                    wait (0.1) seconds\n                    set [costume # v] to [3]\n                    repeat (3)\n                        switch costume to (item (costume #) of [costumes to be used v])\n                        change [costume # v] by (1)\n                        wait (0.1) seconds\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [game.start v]\ndelete (all) of [costumes to be used v]\nadd [1] to [costumes to be used v]\nadd [2] to [costumes to be used v]\nadd [3] to [costumes to be used v]\nadd [4] to [costumes to be used v]\nadd [5] to [costumes to be used v]\nadd [6] to [costumes to be used v]\nforever\n    if <key (c v) pressed?> then\n        if <not <(item (last) of [costumes to be used v]) = [36]>> then\n            set [# item on list v] to [1]\n            repeat (6)\n                replace item (# item on list) of [costumes to be used v] with ((item (# item on list) of [costumes to be used v]) + (6))\n                change [# item on list v] by (1)\n            end\n        else\n            delete (all) of [costumes to be used v]\n            add [1] to [costumes to be used v]\n            add [2] to [costumes to be used v]\n            add [3] to [costumes to be used v]\n            add [4] to [costumes to be used v]\n            add [5] to [costumes to be used v]\n            add [6] to [costumes to be used v]\n        end\n        wait until <not <key (c v) pressed?>>\n    end\nend\n\nwhen I receive [game.end v]\nhide\n\n
PLEASE READ THE WHOLE INSTRUCTIONS OR THIS EDITOR WILL BE HARD TO USE!w\n----------------------------------------------------------------------------------------\nSee Platformer Maker's own internet page!\n➢ Go to https://platformer-maker.github.io/\n➢ Choose a code, scan it, and have fun playing!\n➢ You can also create levels and add your levels codes there.\n----------------------------------------------------------------------------------------\n➢ You can also read the instructions by hovering your mouse over\n     the gray line on the bottom of the editor\n\n➢ Click to place a block.\n➢ Press Space to switch to Editor/Play mode.\n     ➢ You can also use the ▶, ❚❚ button (hover your cursor over\n          the gray line on the very right)\n➢ Use W and S to change blocks.\n\n➢ Press R in play mode to reset your player's position.\n➢ In Editor mode, hold M to change the position of your player.\n➢ Hold M to change start position of player\n➢ Press any number key (1 to 9) to change your player's color\n     ➢ You can also use the 'color pail' button (hover your cursor over\n          the gray line on the very right)\n➢ Hold i to see information about the block\n\n➢ To save your level, press C (in Editor mode) and wait a few\n     seconds. Copy the code by holding Ctrl + C.\n➢ To load a level code, press L (in Editor mode) and hold Ctrl + V\n     to your paste code. Press Enter and the code will be read.\n➢ You can also save and load levels by clicking on the ⇩ or ↻\n     buttons (hover your cursor over the gray line on the very right)\n\n➢ To place a portal, find the "violet block with the green dot in it",\n     press X and place the portals.\n\n➢ Press B to switch to day/night background.\n\n======================= Blocks: ===================\n➢ Gray Block = Normal block\n➢ Red Block = Don't touch\n➢ Blue Block = Makes you jump\n➢ Pink "X" Block = Eraser (remove blocks with that)\n➢ Green Block = Sticky, pulls you down\n➢ Yellow Block = End of level, level complete\n➢ Light-blue Block = Water, slower gravity\n➢ Right arrow Block = Pulls you to the right\n➢ Left arrow Block = Pulls you to the left\n➢ Purple Block = Pulls you up\n➢ Snow-white Block = Ice, very slippery!\n➢ Violet Block with green dot = Portal Start\n➢ Violet Block with red dot = End Portal\n➢ Key = Touch key to go through doors\n➢ White Block with Dot = Door, can only go through if you have key\n➢ Pointed Red Block = Same like red block − only pointed\n➢ Dark-Blue Block with circle = No-Jump Block, cannot jump\n                                                   when touched\n➢ Yellow block with Flag = Check-Point Block, if you touch red\n                                            you'll go back to check-point\n➢ Red box with key = You will lose the key if you though the block