◽ Darkside ◽ -A Pen Platformer V1.1

Instructions: ________________◽ Dαrkside ◽______________\n<Readme>\n---If the game is lag, please go to :\nhttps://turbowarp.org/437531540\n---Propose project to be featured.\n\nOne day, you fell in to the darkside. To get out of darkside, you must pass all the 6 levels, collect all the keys and open the portal back to your world.\nSum up, what you need to do is:\n1.pass all levels\n2.collect all the 3 keys(This is hard)\n3.Enjoy it! \n\nOperation(important):\n-[Mouse]: click buttons and look around\n-[Arrow keys]: move\n-[R]:restart\n-[P]:pause\n-[M]:mute/unmute\n-[F]:show FPS\n-[S]:save your game(triple click and ctrl+v to save your codes)(your levels and keys will be saved)\n-[L]:load your level(enter your codes)\n*Don't share your codes in comments!\n*If you didn't finish the game, you can save your game and play it next time.\n_________________________________________\n---If the game is so hard for you but you want to try all the levels or want to win, just visit my remix:\nhttps://scratch.mit.edu/projects/488404478

@Stage\n\nwhen flag clicked\nforever\n    play sound [Darkside v] until done\nend\n\nswitch backdrop to (join [backdrop] [2])\n\nwhen flag clicked\nset volume to (100) %\nforever\n    wait until <key (m v) pressed?>\n    if <(volume) = [0]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\n    wait until <not <key (m v) pressed?>>\nend\n\nwhen flag clicked\nforever\n    if <key (f v) pressed?> then\n        show variable [-fps v]\n    else\n        hide variable [-fps v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <key (p v) pressed?>\n    if <(_Pause?) = [0]> then\n        set [_pause? v] to [1]\n    else\n        set [_pause? v] to [0]\n    end\n    wait until <not <key (p v) pressed?>>\nend\n\nwhen I receive [you win v]\nwait (0.3) seconds\nrepeat (100)\n    change volume by (-1)\n    wait (0.01) seconds\nend\n\n@blank\n\nwhen flag clicked\nset [_username v] to [0]\n\nwhen [z v] key pressed\nset [_username v] to (username)\n\nwhen [1 v] key pressed\nif <(_Username) = [biggboss01]> then\n    change [__level__ v] by (1)\nend\n\nwhen [3 v] key pressed\nif <(_Username) = [biggboss01]> then\n    set [_username v] to [0]\nend\n\nwhen [2 v] key pressed\nif <(_Username) = [biggboss01]> then\n    change [__level__ v] by (-1)\nend\n\n@pen\n\ndefine init\nhide\nset [rotation v] to [-0]\nset [px v] to [0]\nset [py v] to [0]\nset [speed y v] to [0]\nset [speed x v] to [0]\nset [jump v] to [5]\nset [player size v] to [20]\nset [z rising lava time v] to [-5]\nset pen size to (2)\ndelete all of [colllision v]\n\ndefine tick\nif <(_Pause?) = [0]> then\n    erase all\n    gird\n    level\n    physics\n    camera\nend\n\ndefine build rect (x) (y) (lx) (ly) (type) speed (speed) fill (f)\nblock in screen? (x) (y) (lx) (ly)\nif <(draw block?) = [1]> then\n    if <<(lx) > [12]> and <(ly) > [12]>> then\n        if <(f) = [1]> then\n            draw-rect(filled) (x) (y) (lx) (ly)\n        else\n            if <(f) = [2]> then\n                draw rect(tsp) (x) (y) (lx) (ly)\n            else\n                if <(f) = [3]> then\n                    draw-rect(small) (x) (y) (lx) (ly) [] [20]\n                else\n                    if <(f) = [/]> then\n                    else\n                        draw-rect(normal) (x) (y) (lx) (ly) []\n                    end\n                end\n            end\n        end\n    else\n        if <(f) = [//]> then\n            set pen color to (#6f6f6f)\n        end\n        if <not <(f) = [/]>> then\n            draw-rect(small) (x) (y) (lx) (ly) [] []\n        end\n    end\n    if <not <(type) = [1]>> then\n        add (x) to [x v]\n        add (y) to [y v]\n        add (lx) to [lx v]\n        add (ly) to [ly v]\n        add (type) to [type v]\n        if <(speed) = []> then\n            add [0] to [speed of moving pfms v]\n        else\n            add (speed) to [speed of moving pfms v]\n        end\n    end\nend\n\ndefine go to (x) (y) (z)\ngo to x: (((((x) - (@Scroll X)) * ([cos v] of (rotation) )) - (((y) - (@Scroll Y)) * ([sin v] of (rotation) ))) / (z)) y: (((((x) - (@Scroll X)) * ([sin v] of (rotation) )) + (((y) - (@Scroll Y)) * ([cos v] of (rotation) ))) / (z))\n\ndefine level\ndelete all of [x v]\ndelete all of [y v]\ndelete all of [lx v]\ndelete all of [ly v]\ndelete all of [type v]\ndelete all of [speed of moving pfms v]\nset pen size to (2)\nportal\nset platforms\nset pen color to (#258aff)\nset pen (transparency v) to (player tsp)\nif <(player size) > [15]> then\n    draw-rect(normal) (px) (py) (player size) (player size) [1]\nelse\n    draw-rect(small) (px) (py) (player size) (player size) [1] []\nend\n\ndefine collision\ndelete all of [colllision v]\nset [i v] to [0]\nset [_hint v] to []\nrepeat (length of [x v])\n    change [i v] by (1)\n    set [collision v] to [0]\n    if <(px) < ((item (i) of [x v]) + (item (i) of [lx v]))> then\n        if <((px) + (player size)) > (item (i) of [x v])> then\n            if <(py) < ((item (i) of [y v]) + (item (i) of [ly v]))> then\n                if <((py) + (player size)) > (item (i) of [y v])> then\n                    if <(item (i) of [type v]) = [0]> then\n                        set [collision v] to [1]\n                    end\n                    if <(item (i) of [type v]) = [2]> then\n                        init\n                    end\n                    if <(item (i) of [type v]) = [3]> then\n                        change [py v] by (20)\n                        set [speed y v] to [24]\n                    end\n                    if <(item (i) of [type v]) = [4]> then\n                        if <(__LEVEL__) = [0]> then\n                            set [_entering level v] to (item (length of [your level v]) of [your level v])\n                            broadcast (play v)\n                            stop [this script v]\n                        end\n                        set [_winning? v] to [1]\n                        change [__level__ v] by (1)\n                        start sound [传送瞬移音效_耳聆网_\[声音ID：17976\] v]\n                        if <not <[your level v] contains (__LEVEL__)?>> then\n                            add (__LEVEL__) to [your level v]\n                        end\n                        broadcast (level intro v)\n                        init\n                        set [@scroll x v] to (() - ((mouse x) / (-6)))\n                        set [@scroll y v] to (() - ((mouse y) / (-6)))\n                    end\n                    if <(item (i) of [type v]) = [5]> then\n                        set [collision v] to [1]\n                        set [toching moving v] to [1]\n                        set [speedx plus v] to (item (i) of [speed of moving pfms v])\n                    end\n                    if <(item (i) of [type v]) = [6]> then\n                        set [player size v] to [10]\n                    end\n                    if <(item (i) of [type v]) = [7]> then\n                        set [player size v] to [20]\n                    end\n                    if <(item (i) of [type v]) = [8]> then\n                        if <([abs v] of (speed x) ) > [3]> then\n                            set [jump v] to [2]\n                        end\n                    end\n                    if <(item (i) of [type v]) = [11]> then\n                        set [_final win v] to [1]\n                        broadcast (You win v)\n                    end\n                    if <(item (i) of [type v]) = [101]> then\n                        set [px v] to [3020]\n                        set [@scroll x v] to [3020]\n                        set [py v] to [1140]\n                        set [@scroll y v] to [1140]\n                    end\n                    if <<[50] < (item (i) of [type v])> and <(item (i) of [type v]) < [54]>> then\n                        replace item (letter (2) of (item (i) of [type v])) of [keys钥匙 v] with [1]\n                    end\n                    if <(item (i) of [type v]) > [99999]> then\n                        set [_hint v] to (item (i) of [type v])\n                    end\n                end\n            end\n        end\n    end\n    add (collision) to [colllision v]\nend\nif <(toching moving) = [0]> then\n    set [speedx plus v] to [0]\nend\n\ndefine physics\nif <(_Username) = [biggboss01]> then\n    change [px v] by ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) * (10))\n    change [py v] by ((<key (up arrow v) pressed?> - <key (down arrow v) pressed?>) * (10))\n    change [px v] by ((<key (6 v) pressed?> - <key (4 v) pressed?>) * (100))\n    change [py v] by ((<key (8 v) pressed?> - <key (5 v) pressed?>) * (100))\n    stop [this script v]\nend\nif <(_Final Win) = [1]> then\n    change [px v] by (((145) - (px)) / (5))\n    change [py v] by (((-25) - (py)) / (5))\n    change [player tsp v] by (3)\n    stop [this script v]\nend\nset [player tsp v] to [0]\ndelete all of [last tick v]\nchange [speed x v] by (((1.7) * <key (right arrow v) pressed?>) * ((1) - (_Winning?)))\nchange [speed x v] by (((-1.7) * <key (left arrow v) pressed?>) * ((1) - (_Winning?)))\nrepeat (1)\n    change [rotation v] by (((-0.2) * <key (right arrow v) pressed?>) * ((1) - (_Winning?)))\n    change [rotation v] by (((0.2) * <key (left arrow v) pressed?>) * ((1) - (_Winning?)))\nend\nif <<key (up arrow v) pressed?> and <<(jump) < [4]> and <(_Winning?) = [0]>>> then\n    set [speed y v] to [14]\nend\nmove ((speed x) + (speedx plus))\nset [speed x v] to ((speed x) * (0.8))\nif <(speed y) > [-30]> then\n    change [speed y v] by (-1)\nend\nchange [py v] by (speed y)\nchange [jump v] by (1)\nset [toching moving v] to [0]\ncollision\nif <[colllision v] contains [1]?> then\n    if <(speed y) > [0]> then\n        repeat until <not <[colllision v] contains [1]?>>\n            set [speed y v] to [0]\n            change [py v] by (-1)\n            collision\n        end\n    else\n        repeat until <not <[colllision v] contains [1]?>>\n            set [speed y v] to [0]\n            change [py v] by (1)\n            set [jump v] to [0]\n            collision\n        end\n    end\nend\nplayer tail\nset [rotation v] to ((rotation) * (0.95))\nif <<key (r v) pressed?> and <(z rising lava time) > [30]>> then\n    init\nend\n\ndefine move (speed)\nchange [px v] by (speed)\nset [slope v] to [0]\ncollision\nif <[colllision v] contains [1]?> then\n    repeat until <(slope) = [10]>\n        change [py v] by (1)\n        change [slope v] by (1)\n        collision\n        if <not <[colllision v] contains [1]?>> then\n            stop [this script v]\n        end\n    end\n    change [py v] by (-10)\n    repeat until <not <[colllision v] contains [1]?>>\n        if <(speed) < [0]> then\n            change [px v] by (1)\n        else\n            change [px v] by (-1)\n        end\n        set [speed x v] to [0]\n        collision\n    end\nend\n\ndefine --- (label)\n--- (join ((x) - (@Scroll X)) ((y) - (@Scroll Y)))\n--- (((x) - (@Scroll X)) * ([cos v] of (rotation) ))\n--- (((y) - (@Scroll Y)) * ([sin v] of (rotation) ))\n\ndefine draw rect (x) (y) (lx) (ly) (z)\npen up\ngo to (x) (y) (z)\npen down\ngo to ((x) + (lx)) (y) (z)\ngo to ((x) + (lx)) ((y) + (ly)) (z)\ngo to (x) ((y) + (ly)) (z)\ngo to (x) (y) (z)\npen up\n\ndefine gird\nset pen size to ((4) + ((1) * ([sin v] of (timer) )))\nset pen color to (#101013)\nset pen (transparency v) to (50)\nset [gird_stratx v] to ((240) - (((@Scroll X) / (3)) mod (80)))\nset [gird_starty v] to ((180) - (((@Scroll Y) / (3)) mod (80)))\nset [i v] to [0]\nrepeat (9)\n    draw line ((gird_stratx) - ((80) * (i))) [-180] ((gird_stratx) - ((80) * (i))) [180]\n    change [i v] by (1)\nend\nset pen color to (#05132b)\nset pen (transparency v) to (60)\nset [i v] to [0]\nrepeat (9)\n    draw line [-240] ((gird_starty) - ((80) * (i))) [240] ((gird_starty) - ((80) * (i)))\n    change [i v] by (1)\nend\nset pen size to (2)\nset pen color to (#258aff)\nset pen (transparency v) to ((50) + (player tsp))\nset pen (brightness v) to (20)\nset [i v] to [0]\nrepeat (6)\n    change [i v] by (1)\n    if <<[0.1] < ([abs v] of ((px) - (item (i) of [last px v])) )> or <[0.1] < ([abs v] of ((py) - (item (i) of [last py v])) )>> then\n        draw rect ((item (i) of [last px v]) + (2)) ((item (i) of [last py v]) + (2)) ((player size) - (4)) ((player size) - (4)) [1]\n        if <(player size) > [15]> then\n            draw rect ((item (i) of [last px v]) + (6)) ((item (i) of [last py v]) + (6)) ((player size) - (12)) ((player size) - (12)) [1]\n        end\n    end\n    change pen (brightness v) by (17)\nend\n\ndefine draw line (x1) (y1) (x2) (y2)\npen up\ngo to x: (x1) y: (y1)\npen down\ngo to x: (x2) y: (y2)\npen up\n\ngo to (x1) [] []\n\n--- [colors]\nset pen color to (#640000)\nset pen color to (#ff0000)\nset pen color to (#283346)\nset pen color to (#ffbb00)\nset pen color to (#5a0752)\nset pen color to (#ff14eb)\nset pen color to (#114179)\nset pen color to (#258aff)\nset pen color to (#6edaff)\nset pen color to (#ff8800)\nset pen color to (#8c00ff)\n--- []\n\ndefine level 1\nset pen color to (#ffbb00)\nbuild rect [-200] [-100] [400] [50] [0] speed [] fill []\nbuild rect [-250] [-100] [50] [250] [0] speed [] fill []\nbuild rect [-250] [150] [150] [50] [0] speed [] fill []\nbuild rect [200] [-50] [50] [100] [0] speed [] fill []\nbuild rect [250] [50] [50] [100] [0] speed [] fill []\nbuild rect [350] [160] [300] [40] [0] speed [] fill []\nbuild rect [750] [120] [50] [50] [0] speed [] fill []\nbuild rect [900] [90] [50] [50] [0] speed [] fill []\nbuild rect [1050] [110] [50] [50] [0] speed [] fill []\nbuild rect [1200] [50] [400] [120] [0] speed [] fill []\nbuild rect [1600] [50] [80] [300] [0] speed [] fill []\nset pen color to (#65ff00)\nbuild rect [1500] [200] [30] [30] [4] speed [] fill []\nset pen color to (#35b1ff)\nbuild board [150] [-50] [You fell into the Darkside... ] []\nset pen color to (#35b1ff)\nbuild board [430] [200] [To get out of Darkside, you must collect three keys and open the portal] []\nsimple write [darkside ] [100] [-160] [-70] [1] [2]\nsimple write [@] [150] [-240] [120] [1] [7]\n\ndefine level 2\nset pen color to (#283346)\nbuild rect [-220] [-170] [80] [55] [0] speed [] fill []\nbuild rect [-187] [-40] [50] [50] [0] speed [] fill []\nbuild rect [-450] [-170] [45] [70] [0] speed [] fill []\nbuild rect [-550] [-150] [45] [70] [0] speed [] fill []\nbuild rect [-450] [200] [50] [50] [0] speed [] fill []\nbuild rect [-350] [400] [40] [200] [0] speed [] fill []\nbuild rect [-350] [600] [200] [50] [0] speed [] fill []\nset pen color to (#ffbb00)\nbuild rect [-200] [-100] [200] [50] [0] speed [] fill []\nbuild rect [-137] [-50] [30] [150] [0] speed [] fill []\nbuild rect [0] [-120] [100] [40] [0] speed [] fill []\nbuild rect [15] [-75] [70] [30] [0] speed [] fill []\nbuild rect [300] [-120] [80] [50] [0] speed [] fill []\nbuild rect [280] [130] [50] [30] [0] speed [] fill []\nbuild rect [180] [130] [50] [30] [0] speed [] fill []\nbuild rect [80] [130] [50] [30] [0] speed [] fill []\nbuild rect [-400] [-180] [45] [70] [0] speed [] fill []\nbuild rect [-500] [-160] [45] [70] [0] speed [] fill []\nbuild rect [-550] [150] [50] [50] [0] speed [] fill []\nbuild rect [-350] [250] [200] [50] [0] speed [] fill []\nbuild rect [-190] [300] [40] [200] [0] speed [] fill []\nset pen color to (#ff0000)\nbuild rect [100] [-120] [20] [38] [2] speed [] fill []\nbuild rect [230] [130] [50] [100] [2] speed [] fill []\nbuild rect [130] [130] [50] [100] [2] speed [] fill []\nbuild rect [-340] [-180] [100] [30] [2] speed [] fill []\nset pen color to (#ff14eb)\nbuild rect [340] [-70] [40] [15] [3] speed [] fill []\nbuild rect [-600] [-140] [45] [70] [3] speed [] fill []\nbuild rect [-240] [300] [50] [25] [3] speed [] fill []\nset pen color to (#65ff00)\nbuild rect [-185] [535] [30] [30] [4] speed [] fill []\nset pen color to (#35b1ff)\nbuild board [-75] [-50] [Dangers and darkness are approaching...] []\n\ndefine level 3\nset pen color to (#8c00ff)\nbuild rect [1400] [58] [25] [25] [7] speed [] fill []\nset pen color to (#ff8800)\nbuild rect [30] [470] [25] [25] [6] speed [] fill []\nset pen color to (#ff0000)\nbuild rect [823] [-188] [68] [30] [2] speed [] fill []\nbuild rect [680] [323] [24] [36] [2] speed [] fill []\nset pen color to (#ffbb00)\nbuild rect [-25] [-100] [50] [50] [0] speed [] fill []\nbuild rect [-80] [-125] [40] [225] [0] speed [] fill []\nbuild rect [375] [-100] [50] [50] [0] speed [] fill []\nbuild rect [960] [220] [60] [35] [0] speed [] fill []\nbuild rect [719] [280] [49] [25] [0] speed [] fill []\nbuild rect [555] [293] [101] [34] [0] speed [] fill []\nbuild rect [1492] [-48] [119] [63] [0] speed [] fill []\nset pen color to (#283346)\nbuild rect [800] [-150] [200] [125] [0] speed [] fill []\nbuild rect [1000] [-150] [120] [200] [0] speed [] fill []\nbuild rect [1020] [60] [80] [700] [0] speed [] fill []\nbuild rect [830] [113] [60] [35] [0] speed [] fill []\nbuild rect [830] [327] [60] [35] [0] speed [] fill []\nbuild rect [795] [113] [35] [300] [0] speed [] fill []\nbuild rect [290] [363] [500] [50] [0] speed [] fill []\nbuild rect [-10] [363] [300] [75] [0] speed [] fill []\nbuild rect [-110] [363] [100] [250] [0] speed [] fill []\nbuild rect [1132] [-100] [200] [70] [0] speed [] fill []\nbuild rect [1332] [-100] [130] [150] [0] speed [] fill []\nbuild rect [1250] [-20] [70] [250] [0] speed [] fill []\nbuild rect [1322] [60] [50] [100] [0] speed [] fill []\nbuild rect [1372] [100] [100] [60] [0] speed [] fill []\nbuild rect [1950] [-48] [200] [63] [0] speed [] fill []\nset pen color to (#6edaff)\nbuild rect ((175) + ((100) * ([sin v] of (timer) ))) [-100] [50] [50] [5] speed (((100) * ([sin v] of (timer) )) - ((100) * ([sin v] of ((timer) - (2)) ))) fill []\nbuild rect ((575) + ((125) * ([cos v] of (timer) ))) [-100] [50] [50] [5] speed (((125) * ([cos v] of (timer) )) - ((125) * ([cos v] of ((timer) - (2)) ))) fill []\nset pen color to (#640000)\nbuild rect [600] [413] [40] [90] [2] speed [] fill []\nbuild rect ((445) + ((80) * ([sin v] of ((timer) * (2)) ))) [413] [22] [22] [2] speed [] fill []\nbuild rect [130] ((490) + ((50) * ([sin v] of ((timer) * (4)) ))) [40] [40] [2] speed [] fill []\nbuild rect [210] ((490) + ((50) * ([cos v] of ((timer) * (3)) ))) [40] [40] [2] speed [] fill []\nset pen color to (#65ff00)\nbuild rect [1940] [-108] [80] [30] [4] speed [] fill []\nset pen color to (#35b1ff)\nbuild board [950] [-25] [You can't go through the "wall"? Go up and try to get smaller.] []\nbuild board [1440] [590] [Congrats you find a key!] []\nif <(player size) = [20]> then\n    build board [1176] [-20] [Why did you fall here? Press R and play again.] [/]\nend\nset pen color to (#0c0c0c)\nbuild rect [1300] [320] [80] [40] [0] speed [] fill []\nbuild rect [1350] [445] [80] [40] [0] speed [] fill []\nset pen color to (#261982)\nbuild rect [1400] [550] [150] [40] [0] speed [] fill []\nif <not <(item (1) of [keys钥匙 v]) = [1]>> then\n    set pen color to (#ff5400)\n    build rect [1500] ((605) + ((10) * ([sin v] of (timer) ))) [10] [18] [51] speed [] fill []\nend\nsimple write ["Take me through the night,] [150] [1660] [70] [1] [1.5]\nsimple write [fall into the darkside"] [150] [1665] [45] [1] [1.5]\n\nwhen flag clicked\nset [_final win v] to [0]\nforever\n    change [timer v] by (2)\nend\n\ndefine dist (x1) (y1) (x2) (y2)\nset [dist v] to ([sqrt v] of ((((x1) - (x2)) * ((x1) - (x2))) + (((y1) - (y2)) * ((y1) - (y2)))) )\n\ndefine edit\ndelete all of [edit result v]\nwait until <mouse down?>\nadd (round ((px) + (mouse x))) to [edit result v]\nadd (round ((py) + (mouse y))) to [edit result v]\nwait until <not <mouse down?>>\nadd ((round ((px) + (mouse x))) - (item (1) of [edit result v])) to [edit result v]\nadd ((round ((py) + (mouse y))) - (item (2) of [edit result v])) to [edit result v]\n\ndefine block in screen? (x) (y) (lx) (ly)\nset [draw block? v] to [0]\ndelete all of [edges v]\nadd ((@Scroll X) + (270)) to [edges v]\nadd ((@Scroll X) + (-270)) to [edges v]\nadd ((@Scroll Y) + (220)) to [edges v]\nadd ((@Scroll Y) + (-220)) to [edges v]\nif <(x) < (item (1) of [edges v])> then\n    if <((x) + (lx)) > (item (2) of [edges v])> then\n        if <(y) < (item (3) of [edges v])> then\n            if <((y) + (ly)) > (item (4) of [edges v])> then\n                set [draw block? v] to [1]\n                stop [this script v]\n            end\n        end\n    end\nend\ndelete all of [edges v]\nadd ((px) + (60)) to [edges v]\nadd ((px) + (-60)) to [edges v]\nadd ((py) + (60)) to [edges v]\nadd ((py) + (-60)) to [edges v]\nif <(x) < (item (1) of [edges v])> then\n    if <((x) + (lx)) > (item (2) of [edges v])> then\n        if <(y) < (item (3) of [edges v])> then\n            if <((y) + (ly)) > (item (4) of [edges v])> then\n                set [draw block? v] to [1]\n            end\n        end\n    end\nend\n\ndefine draw-rect(normal) (x) (y) (lx) (ly) (single?)\nif <(single?) = [1]> then\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1]\n    draw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1]\nelse\n    change pen (transparency v) by (80)\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1.2]\n    draw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1.2]\n    change pen (transparency v) by (-30)\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1.1]\n    draw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1.1]\n    change pen (transparency v) by (-50)\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1]\n    draw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1]\nend\n\ndefine draw-rect(small) (x) (y) (lx) (ly) (single?) (tsp)\nif <(single?) = [1]> then\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1]\nelse\n    change pen (transparency v) by (80)\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1.2]\n    change pen (transparency v) by ((-30) + (tsp))\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1.1]\n    change pen (transparency v) by ((-50) + (tsp))\n    draw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1]\nend\n\nlevel 1\nlevel 2\nlevel 1\n\nwhen flag clicked\nhide\nset [counter v] to [0]\nforever\n    change [counter v] by (1)\n    if <(timer) > [1]> then\n        reset timer\n        set [-fps v] to (counter)\n        set [counter v] to [0]\n    end\nend\n\nwhen I receive [play v]\ninit\nset [@scroll x v] to (() - ((mouse x) / (-6)))\nset [@scroll y v] to (() - ((mouse y) / (-6)))\nset [__level__ v] to (_Entering Level)\nset [_winning? v] to [1]\nbroadcast (level intro v)\nforever\n    tick\n    if <(py) < [-1000]> then\n        init\n    end\n    if <(__LEVEL__) < [1]> then\n        stop [this script v]\n    end\nend\n\ndefine Write (string) at x, y: (x) (y) color (RGBA): (r) (g) (b) (a) size: (s) boldness: (bold) spacing: (sp) z: (z)\nset pen color to ((((a) * (16777216)) + ((r) * (65536))) + (((g) * (256)) + (b)))\nset pen size to (2)\nset [pte letter v] to [1]\nrepeat (length of (string))\n    set [pte i v] to [1]\n    repeat until <<(letter (pte i) of (pte chars)) = (letter (pte letter) of (string))> or <(pte i) > (length of (pte chars))>>\n        change [pte i v] by (1)\n    end\n    if <(pte i) > (length of (pte chars))> then\n        set [pte i v] to [0]\n    end\n    if <not <(pte i) = [0]>> then\n        set [pte j v] to [0]\n        repeat ([ceiling v] of ((length of (item (pte i) of [letter_data v])) / (5)) )\n            set [pte p1 v] to (join (letter ((pte j) + (1)) of (item (pte i) of [letter_data v])) (letter ((pte j) + (2)) of (item (pte i) of [letter_data v])))\n            set [pte p2 v] to (join (letter ((pte j) + (3)) of (item (pte i) of [letter_data v])) (letter ((pte j) + (4)) of (item (pte i) of [letter_data v])))\n            go to ((((s) * (((pte p1) - (1)) mod (5))) + (x)) + (((pte letter) - (1)) * ((s) * ((sp) * (6))))) ((((s) * (-2)) * ([floor v] of (((pte p1) - (1)) / (5)) )) + (y)) (z)\n            pen down\n            go to ((((s) * (((pte p2) - (1)) mod (5))) + (x)) + (((pte letter) - (1)) * ((s) * ((sp) * (6))))) ((((s) * (-2)) * ([floor v] of (((pte p2) - (1)) / (5)) )) + (y)) (z)\n            pen up\n            change [pte j v] by (5)\n        end\n    end\n    change [pte letter v] by (1)\nend\n\ndefine simple write (string) (a) (x) (y) (z) (size)\nblock in screen? (x) (y) [200] [50]\nif <(draw block?) = [1]> then\n    Write (string) at x, y: (x) (y) color (RGBA): [255] [255] [255] (a) size: (size) boldness: [1] spacing: [1] z: (z)\n    set pen size to (2)\nend\n\ndefine level 4\nset pen color to (#283346)\nbuild rect [-300] [-400] [400] [300] [0] speed [] fill []\nbuild rect [-300] [-100] [200] [500] [0] speed [] fill []\nbuild rect [160] [-400] [100] [300] [0] speed [] fill []\nbuild rect [320] [-400] [200] [300] [0] speed [] fill []\nbuild rect [90] [0] [300] [60] [0] speed [] fill []\nbuild rect [-100] [-100] [50] [50] [0] speed [] fill []\nbuild rect [-100] [180] [300] [200] [0] speed [] fill []\nbuild rect [215] [140] [100] [40] [0] speed [] fill []\nbuild rect [385] [-50] [170] [95] [0] speed [] fill []\nbuild rect [520] [-400] [200] [320] [0] speed [] fill []\nbuild rect [555] [-60] [120] [80] [0] speed [] fill []\nbuild rect [720] [-400] [67] [800] [0] speed [] fill []\nbuild rect [690] [-35] [30] [200] [0] speed [] fill []\nbuild rect [635] [20] [25] [100] [0] speed [] fill []\nbuild rect [630] [130] [60] [35] [0] speed [] fill []\nbuild rect [315] [180] [50] [100] [0] speed [] fill []\nbuild rect [90] [380] [70] [200] [0] speed [] fill []\nbuild rect [340] [280] [20] [170] [0] speed [] fill []\nbuild rect [165] [585] [600] [100] [0] speed [] fill []\nbuild rect [360] [400] [50] [50] [0] speed [] fill []\nbuild rect [410] [300] [50] [150] [0] speed [] fill []\nbuild rect [790] [320] [60] [35] [0] speed [] fill []\nbuild rect [1000] [600] [60] [35] [0] speed [] fill []\nset pen color to (#ff0000)\nbuild rect [460] [320] [260] ((100) + ((15) * ([cos v] of (timer) ))) [2] speed [] fill [0]\nbuild rect [720] [400] [65] ((20) + ((15) * ([cos v] of (timer) ))) [2] speed [] fill [0]\nbuild rect [580] [575] [25] [10] [2] speed [] fill [0]\nbuild rect [585] ((575) + ((-10000) * ([sin v] of (timer) ))) [10] [10] [2] speed [] fill [0]\nset pen color to (#640000)\nbuild rect [100] [-400] [60] ((280) + ((20) * ([cos v] of (timer) ))) [2] speed [] fill []\nbuild rect [260] [-400] [60] ((280) + ((20) * ([sin v] of (timer) ))) [2] speed [] fill []\nbuild rect [120] [165] [50] [15] [2] speed [] fill []\nbuild rect [20] [165] [50] [15] [2] speed [] fill []\nbuild rect [-80] [165] [50] [15] [2] speed [] fill []\nset pen color to (#5a0752)\nbuild rect [170] [60] [50] [15] [3] speed [] fill []\nbuild rect [850] [320] [60] [35] [3] speed [] fill []\nset pen color to (#ff8800)\nbuild rect [683] [-75] [25] [25] [6] speed [] fill []\nset pen color to (#6edaff)\nbuild rect ((610) + ((140) * ([sin v] of (timer) ))) [410] [70] [35] [5] speed (((140) * ([sin v] of (timer) )) - ((140) * ([sin v] of ((timer) - (2)) ))) fill []\nbuild rect ((1330) + ((200) * ([sin v] of (timer) ))) [600] [35] [35] [5] speed (((200) * ([sin v] of (timer) )) - ((200) * ([sin v] of ((timer) - (2)) ))) fill []\nset pen color to (#65ff00)\nbuild rect [1600] [620] [30] [30] [4] speed [] fill []\nif <not <(item (2) of [keys钥匙 v]) = [1]>> then\n    set pen color to (#00a9ff)\n    build rect [-200] ((420) + ((10) * ([sin v] of (timer) ))) [10] [18] [52] speed [] fill []\nend\nset pen color to (#35b1ff)\nbuild board [60] [-100] [It is so dark here!] []\nbuild board [-60] [380] [Wait...How did you found there?] []\nsimple write ["I see it, I feel it,] [100] [475] [390] [1] [1.3]\nsimple write [We're still young and fearless"] [100] [475] [370] [1] [1.3]\n\n--- [colors]\nset pen color to (#640000)\n\ndefine draw-rect(filled) (x) (y) (lx) (ly)\nset pen size to (7)\nif <(lx) > (ly)> then\n    set [j v] to ((ly) / (12))\nelse\n    set [j v] to ((lx) / (12))\nend\nset [i v] to [0]\nrepeat ([floor v] of (j) )\n    draw rect ((x) + (((6) * (i)) + (3))) ((y) + (((6) * (i)) + (3))) ((lx) - (((12) * (i)) + (6))) ((ly) - (((12) * (i)) + (6))) [1]\n    change [i v] by (1)\nend\nset pen size to (2)\n\nset [@scroll x v] to [0]\nset [@scroll y v] to [0]\n\ndefine player tail\nadd (px) to [last px v]\nadd (py) to [last py v]\nif <(length of [last px v]) > [6]> then\n    delete (1) of [last px v]\n    delete (1) of [last py v]\nend\n\ndelete all of [last px v]\ndelete all of [last py v]\n\ndefine camera\nchange [@scroll x v] by ((((px) - (@Scroll X)) - ((mouse x) / (-6))) / (8))\nchange [@scroll y v] by ((((py) - (@Scroll Y)) - ((mouse y) / (-6))) / (8))\nchange [z rising lava time v] by (1)\n\ndefine level 5\nset pen color to (#00ff21)\nbuild rect [-10] [1300] [30] [30] [4] speed [] fill []\nset pen color to (#0a2b61)\nbuild rect [-300] [-240] [600] [200] [0] speed [] fill []\nbuild rect [-250] [-220] [500] [100] [0] speed [] fill []\nbuild rect [-300] [-40] [50] [1000] [0] speed [] fill []\nbuild rect [250] [-40] [50] [1200] [0] speed [] fill []\nbuild rect [-180] [-40] [40] [500] [0] speed [] fill []\nbuild rect [140] [-40] [40] [500] [0] speed [] fill []\nbuild rect [-140] [40] [50] [30] [0] speed [] fill []\nbuild rect [70] [130] [70] [30] [0] speed [] fill []\nbuild rect [-50] [240] [100] [30] [0] speed [] fill []\nbuild rect [-160] [860] [50] [30] [0] speed [] fill []\nset pen color to (#283346)\nbuild rect [60] [380] [80] [40] [0] speed [] fill []\nbuild rect [30] [300] [30] [120] [0] speed [] fill []\nbuild rect [-140] [360] [30] [30] [0] speed [] fill []\nbuild rect [-20] [550] [40] [280] [0] speed [] fill []\nbuild rect [20] [680] [50] [25] [0] speed [] fill []\nset pen color to (#5a0752)\nbuild rect [100] [155] [35] [10] [3] speed [] fill []\nset pen color to (#640000)\nbuild rect [-15] [1035] [30] ((70) + ((20) * ([sin v] of (timer) ))) [2] speed [] fill []\nbuild rect [-140] [1035] [30] ((70) + ((20) * ([cos v] of (timer) ))) [2] speed [] fill []\nbuild rect [110] [1035] [30] ((70) + ((20) * ([sin v] of (timer) ))) [2] speed [] fill []\nbuild rect [60] [360] [80] [20] [2] speed [] fill []\nbuild rect [20] [640] ((80) + ((80) * ([cos v] of (timer) ))) [20] [2] speed [] fill []\nbuild rect ((160) + ((80) * ([cos v] of (timer) ))) [640] ((250) - ((160) + ((80) * ([cos v] of (timer) )))) [20] [2] speed [] fill []\nbuild rect [20] [748] ((80) + ((80) * ([sin v] of (timer) ))) [20] [2] speed [] fill []\nbuild rect ((160) + ((80) * ([sin v] of (timer) ))) [748] ((250) - ((160) + ((80) * ([sin v] of (timer) )))) [20] [2] speed [] fill []\nset pen color to (#6edaff)\nbuild rect ((110) + ((80) * ([sin v] of (timer) ))) [550] [40] [40] [5] speed (((80) * ([sin v] of (timer) )) - ((80) * ([sin v] of ((timer) - (2)) ))) fill []\nbuild rect ((-50) + ((150) * ([sin v] of (timer) ))) [1000] [100] [35] [5] speed (((150) * ([sin v] of (timer) )) - ((150) * ([sin v] of ((timer) - (2)) ))) fill []\nbuild rect ((-50) + ((150) * ([cos v] of (timer) ))) [1200] [100] [35] [5] speed (((150) * ([cos v] of (timer) )) - ((150) * ([cos v] of ((timer) - (2)) ))) fill []\nset pen color to (#ff0000)\nbuild rect [-400] [-300] [800] ((90) + ((z rising lava time) * (1.3))) [2] speed [] fill []\nset pen color to (#35b1ff)\nbuild board [-30] [-40] [Watch out! Rising lava!] []\n\nbuild rect [60] [360] [80] [20] [2] speed [] fill []\n\ndefine level 6\nset pen color to (#10ff00)\nbuild rect [3450] [1140] [30] [30] [4] speed [] fill []\nset pen color to (#ff8800)\nbuild rect [890] [700] [26] [26] [6] speed [] fill []\nbuild rect [2550] [-258] [30] [30] [101] speed [] fill [3]\nset pen color to (#8c00ff)\nbuild rect [1510] [358] [26] [26] [7] speed [] fill []\nbuild rect [3020] [1140] [30] [30] [7] speed [] fill [3]\nset pen color to (#000000)\nbuild board [2508] [617] [When you touch the yellow block, just try to double jump] [/]\nset pen color to (#2d30a2)\nset pen color to (#0a2b61)\nbuild rect [-260] [-200] [500] [100] [0] speed [] fill []\nbuild rect [240] [-200] [150] [20] [0] speed [] fill []\nbuild rect [390] [-200] [165] [100] [0] speed [] fill []\nbuild rect [575] [-200] [165] [100] [0] speed [] fill []\nbuild rect [740] [-200] [150] [80] [0] speed [] fill []\nbuild rect [890] [-200] [150] [400] [0] speed [] fill []\nbuild rect [1040] [-20] [300] [80] [0] speed [] fill []\nbuild rect [1340] [-20] [160] [380] [0] speed [] fill []\nbuild rect [1340] [375] [160] [380] [0] speed [] fill []\nbuild rect [1200] [330] [50] [30] [0] speed [] fill []\nbuild rect [1100] ((450) + ((20) * ([cos v] of (timer) ))) [50] [30] [0] speed [] fill []\nbuild rect [1000] ((550) + ((20) * ([sin v] of (timer) ))) [50] [30] [0] speed [] fill []\nbuild rect [860] [650] [80] [30] [0] speed [] fill []\nbuild rect [1500] [220] [100] [40] [0] speed [] fill []\nbuild rect [1800] [550] [80] [40] [0] speed [] fill []\nbuild rect [2000] [500] [80] [40] [0] speed [] fill []\nbuild rect [1980] [690] [140] [50] [0] speed [] fill []\nbuild rect [2160] [580] [80] [50] [0] speed [] fill []\nbuild rect [2350] ((520) + ((25) * ([sin v] of (timer) ))) [30] [30] [0] speed [] fill []\nbuild rect [2500] ((600) + ((25) * ([cos v] of (timer) ))) [30] [30] [0] speed [] fill []\nbuild rect [2300] [720] [100] [50] [0] speed [] fill []\nbuild rect [3080] [600] [100] [50] [0] speed [] fill []\nset pen color to (#ffbb00)\nbuild rect [3000] [900] [130] [50] [0] speed [] fill []\nbuild rect [2950] [900] [50] [300] [0] speed [] fill []\nbuild rect [3200] [900] [150] [50] [0] speed [] fill []\nbuild rect [2950] [1200] [600] [50] [0] speed [] fill []\nbuild rect [3300] [950] [100] [50] [0] speed [] fill []\nbuild rect [3350] [1000] [100] [50] [0] speed [] fill []\nbuild rect [3400] [1050] [100] [50] [0] speed [] fill []\nbuild rect [3500] [1050] [50] [150] [0] speed [] fill []\nset pen color to (#6edaff)\nbuild rect [785] ((20) + ((120) * ([sin v] of (timer) ))) [60] [30] [0] speed [] fill []\nbuild rect ((1750) + ((120) * ([sin v] of (timer) ))) ((400) + ((120) * ([cos v] of (timer) ))) [60] [30] [5] speed (((120) * ([sin v] of (timer) )) - ((120) * ([sin v] of ((timer) - (2)) ))) fill []\nbuild rect ((1550) + ((120) * ([sin v] of (timer) ))) ((-350) + ((120) * ([cos v] of (timer) ))) [60] [30] [5] speed (((120) * ([sin v] of (timer) )) - ((120) * ([sin v] of ((timer) - (2)) ))) fill []\nset pen color to (#5a0752)\nbuild rect [3140] [650] [40] [15] [3] speed [] fill []\nbuild rect [1290] [60] [50] [15] [3] speed [] fill []\nset pen color to (#640000)\nbuild rect [960] ((570) + ((100) * ([cos v] of (timer) ))) [30] [30] [2] speed [] fill []\nbuild rect [1060] ((470) + ((100) * ([sin v] of (timer) ))) [30] [30] [2] speed [] fill []\nbuild rect [240] [-180] [150] ((65) + ((18) * ([cos v] of (timer) ))) [2] speed [] fill []\nbuild rect [1600] [220] [2000] [40] [2] speed [] fill []\nbuild rect ((1120) + ((80) * ([cos v] of (timer) ))) [60] ((50) + ((30) * ([cos v] of (timer) ))) ((50) + ((30) * ([cos v] of (timer) ))) [2] speed [] fill []\nbuild rect [1980] [675] [80] [15] [2] speed [] fill []\nbuild rect [2040] [740] [80] [15] [2] speed [] fill []\nbuild rect [2030] [540] [15] [30] [2] speed [] fill []\nbuild rect [2280] ((550) + ((50) * ([cos v] of (timer) ))) [30] [30] [2] speed [] fill []\nbuild rect [2430] ((620) + ((50) * ([sin v] of (timer) ))) [30] [30] [2] speed [] fill []\nbuild rect [2360] [770] [40] [15] [2] speed [] fill []\nbuild rect [710] ((-510) + ((50) * ([sin v] of (timer) ))) [60] [60] [2] speed [] fill []\nbuild rect [890] ((-510) + ((50) * ([cos v] of (timer) ))) [60] [60] [2] speed [] fill []\nbuild rect [1070] ((-510) + ((50) * ([sin v] of (timer) ))) [60] [60] [2] speed [] fill []\nbuild rect [1250] ((-510) + ((50) * ([cos v] of (timer) ))) [60] [60] [2] speed [] fill []\nset pen color to (#ffbb00)\nbuild rect [2730] [630] [30] [30] [8] speed [] fill [1]\nbuild rect [2970] [630] [30] [30] [8] speed [] fill [1]\nbuild rect [2050] [-270] [30] [30] [8] speed [] fill [1]\nbuild rect [2250] [-270] [30] [30] [8] speed [] fill [1]\nset pen color to (#2d30a2)\nset pen color to (#0a2b61)\nbuild rect [500] [-500] [200] [100] [0] speed [] fill []\nbuild rect [800] [-550] [60] [60] [0] speed [] fill []\nbuild rect [980] [-480] [60] [60] [0] speed [] fill []\nbuild rect [1160] [-550] [60] [60] [0] speed [] fill []\nbuild rect [1340] [-480] [60] [60] [0] speed [] fill []\nbuild rect [1800] [-320] [60] [60] [0] speed [] fill []\nbuild rect [2450] [-320] [150] [60] [0] speed [] fill []\nsimple write ["fall into the darkside"] [150] [2060] [-330] [1] [1.5]\nsimple write ["give into the darkside"] [150] [2760] [580] [1] [1.5]\nsimple write [The last level,] [100] [-80] [-130] [1] [1.5]\nsimple write [Can you do it?] [100] [-80] [-150] [1] [1.5]\nset pen color to (#35b1ff)\nbuild board [2480] [-260] [Teleport to the end...] []\nbuild board [530] [-400] [You found the secret path! Only 10% players can find there.] []\nbuild board [1825] [-260] [When you touch the yellow block, just try to double jump.  Keep going, we are close to the end!] []\nif <not <(item (3) of [keys钥匙 v]) = [1]>> then\n    set pen color to (#eeff00)\n    build rect [3060] ((1130) + ((10) * ([sin v] of (timer) ))) [10] [18] [53] speed [] fill []\n    set pen color to (#35b1ff)\n    build board [3050] [950] [Another key! ...But can you get that?] []\n    stop [this script v]\nend\nset pen color to (#35b1ff)\nbuild board [3050] [950] [Nice job! You got the key!] []\n\ndefine level 7\nset pen color to (#114179)\n\nbuild rect [] [] [] [] [] speed [] fill []\n\nwhen I receive [flag v]\nset [__level__ v] to [0]\n\nwhen I receive [ready v]\ninit\nset [@scroll x v] to (() - ((mouse x) / (-6)))\nset [@scroll y v] to (() - ((mouse y) / (-6)))\nforever\n    tick\n    if <(py) < [-1000]> then\n        init\n    end\n    if <[0] < (__LEVEL__)> then\n        stop [this script v]\n    end\nend\n\ndefine level0\nset pen color to (#ffbb00)\nbuild rect [-200] [-150] [300] [80] [0] speed [] fill []\nbuild rect [120] [-150] [80] [80] [0] speed [] fill []\nbuild rect [-200] [-70] [40] [180] [0] speed [] fill []\nbuild rect [200] [-150] [40] [260] [0] speed [] fill []\nbuild rect [-160] [110] [50] [50] [0] speed [] fill []\nbuild rect [-110] [160] [50] [50] [0] speed [] fill []\nbuild rect [100] [160] [50] [50] [0] speed [] fill []\nbuild rect [150] [110] [50] [50] [0] speed [] fill []\nbuild rect [-60] [210] [160] [50] [0] speed [] fill []\nset pen color to (#ff0000)\nbuild rect [100] [-150] [20] ((70) + ((10) * ([sin v] of (timer) ))) [2] speed [] fill []\nif <(item (length of [your level v]) of [your level v]) = [7]> then\n    set pen color to (#31b0ff)\nelse\n    set pen color to (#37ff00)\nend\nbuild rect [150] ((-65) + ((5) * ([cos v] of (timer) ))) [40] [40] [4] speed [] fill [0]\nsimple write [@] [160] [-180] [-85] [1] [5]\nif <(item (length of [your level v]) of [your level v]) = [7]> then\n    simple write [The] [200] [130] [-90] [1] [1.5]\n    simple write [Portal] [200] [130] [-110] [1] [1.5]\nelse\n    simple write (join [level ] (item (length of [your level v]) of [your level v])) [160] [130] [-90] [1] [1.4]\n    simple write [Go!] [160] [130] [-110] [1] [1.5]\nend\nset pen color to (#35bbff)\nbuild board [-120] [-70] [Love, Fave and Follow!] []\n\nsimple write [Home] [150] [-20] [-100] [1] []\n\ndraw-rect(small) [] [] [] [] [] []\n\nlevel 6\n\ndefine build board (x) (y) (input) (fill?)\nif <(fill?) = [/]> then\n    build rect (x) (y) [10] [15] (input) speed [] fill [/]\n    build rect ((x) - (15)) ((y) + (15)) [40] [20] (input) speed [] fill [/]\nelse\n    build rect (x) (y) [10] [15] (input) speed [] fill [2]\n    build rect ((x) - (15)) ((y) + (15)) [40] [20] (input) speed [] fill [2]\nend\n\ndefine draw rect(tsp) (x) (y) (lx) (ly)\nchange pen (transparency v) by (80)\ndraw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1.2]\ndraw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1.2]\nchange pen (transparency v) by (-20)\ndraw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1.1]\ndraw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1.1]\nchange pen (transparency v) by (-30)\ndraw rect ((x) + (2)) ((y) + (2)) ((lx) - (4)) ((ly) - (4)) [1]\ndraw rect ((x) + (6)) ((y) + (6)) ((lx) - (12)) ((ly) - (12)) [1]\n\ndefine portal\nif <<(z rising lava time) < [0]> and <(__LEVEL__) > [00]>> then\n    set pen color to (#e8f0ff)\n    draw-rect(small) [-30] [-30] [80] [80] [] [20]\n    stop [this script v]\nend\nif <<(z rising lava time) < [10]> and <(__LEVEL__) > [00]>> then\n    set pen color to (#e8f0ff)\n    draw-rect(small) [-30] ((-30) + ((z rising lava time) * (3.5))) [80] ((80) - ((7) * (z rising lava time))) [] [20]\n    stop [this script v]\nend\nif <<(z rising lava time) < [20]> and <(__LEVEL__) > [0]>> then\n    set pen color to (#f0f5ff)\n    draw-rect(small) ((-65) + ((z rising lava time) * (3.5))) [5] ((150) - ((7) * (z rising lava time))) [10] [] [20]\n    stop [this script v]\nend\nif <<(z rising lava time) < [22]> and <(__LEVEL__) > [0]>> then\n    set pen color to (#ecf3ff)\n    draw-rect(small) [5] [5] [10] [10] [] []\nend\n\nif <(_Winning?) = [1]> then\n    set [z rising lava time v] to [0]\nend\n\ndefine level last\nset pen color to (#ffbb00)\nbuild rect [-200] [-150] [450] [80] [0] speed [] fill []\nset pen (color v) to (50)\nbuild rect [-300] [-150] [100] ((120) + ((15) * ([sin v] of (z rising lava time) ))) [0] speed [] fill []\nbuild rect [250] [-150] [100] ((120) + ((15) * ([sin v] of (z rising lava time) ))) [0] speed [] fill []\nif <[keys钥匙 v] contains [0]?> then\n    set pen color to (#7e7e7e)\n    draw-rect(small) [120] [-50] [70] [70] [] [20]\nelse\n    set pen color to (#f9f9f9)\n    draw-rect(small) [120] ((-50) + ((10) * ([sin v] of (timer) ))) [70] [70] [] []\n    build rect [120] ((-50) + ((10) * ([sin v] of (timer) ))) [70] [70] [11] speed [] fill [/]\n    simple write [@] [220] [145] [-90] [1] [5]\nend\nset pen color to (#ff3f00)\nbuild rect [130] ((35) + (<not <[keys钥匙 v] contains [0]?>> * ((10) * ([sin v] of (timer) )))) [10] [18] [1] speed [] fill (join (letter (item (1) of [keys钥匙 v]) of [apple]) [//])\nset pen color to (#00a9ff)\nbuild rect [150] ((35) + (<not <[keys钥匙 v] contains [0]?>> * ((10) * ([sin v] of (timer) )))) [10] [18] [1] speed [] fill (join (letter (item (2) of [keys钥匙 v]) of [apple]) [//])\nset pen color to (#eeff00)\nbuild rect [170] ((35) + (<not <[keys钥匙 v] contains [0]?>> * ((10) * ([sin v] of (timer) )))) [10] [18] [1] speed [] fill (join (letter (item (3) of [keys钥匙 v]) of [apple]) [//])\nset pen color to (#43c0ff)\nif <[keys钥匙 v] contains [0]?> then\n    build board [65] [-70] [You didn't collect all the keys, so the portal didn't open. You must go back and find them!] []\nelse\n    build board [65] [-70] [Now, we can leave the Darkside...] []\nend\n\ndefine set platforms\nif <(__LEVEL__) = [0]> then\n    level0\nend\nif <(__LEVEL__) = [1]> then\n    level 1\nend\nif <(__LEVEL__) = [2]> then\n    level 2\nend\nif <(__LEVEL__) = [3]> then\n    level 3\nend\nif <(__LEVEL__) = [4]> then\n    level 4\nend\nif <(__LEVEL__) = [5]> then\n    level 5\nend\nif <(__LEVEL__) = [6]> then\n    level 6\nend\nif <(__LEVEL__) = [7]> then\n    level last\nend\n\nWrite [] at x, y: [] [] color (RGBA): [] [] [] [] size: [] boldness: [] spacing: [] z: []\n\nset pen color to (#faff00)\n\nset pen color to (#bf00ff)\n\nwait until \n\nbuild board [-60] [380] [Wait...How did you found there?] []\n\nset pen color to (#35b1ff)\nbuild board [550] [-380] [Teleport to the end...] []\n\nsimple write [The last level,] [150] [-80] [-150] [1] [1.5]\nsimple write [Can you do it?] [150] [-80] [-170] [1] [1.5]\n\nchange [player size v] by (1)\n\n@fade\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    tick\nend\n\ndefine tick\nif < [0  ] contains (__LEVEL__)?> then\n    switch costume to (fade v)\n    set [ghost v] effect to (40)\n    go to x: (0) y: (0)\n    stop [this script v]\nend\nset [ghost v] effect to (0)\nif < [ 1 2 37] contains (__LEVEL__)?> then\n    switch costume to (costume1 v)\n    go to x: (0) y: (0)\nend\nif < [4 5 6] contains (__LEVEL__)?> then\n    go to x: (0) y: (0)\n    if < [4] contains (__LEVEL__)?> then\n        switch costume to (造型1 v)\n        if <(([py v] of [pen v]) - (@Scroll Y)) < [-50]> then\n            go to x: (0) y: (-50)\n        else\n            if <[50] < (([py v] of [pen v]) - (@Scroll Y))> then\n                go to x: (0) y: (50)\n            else\n                go to x: (0) y: (([py v] of [pen v]) - (@Scroll Y))\n            end\n        end\n    else\n        switch costume to (costume2 v)\n    end\nend\n\ngo to [back v] layer\n\n@buttons\n\nwhen I receive [ready v]\nhide\nset [i v] to [0]\nset [self.counuter v] to [0]\nclone as num# [1] x [-170] y [-50] costume [3]\nclone as num# [2] x [-170] y [-110] costume [4]\n\ndefine clone as num# (#) x (x) y (y) costume (cost)\nset [# v] to (#)\ngo to x: (x) y: (y)\nset [self.x v] to (x)\nset [self.y v] to (y)\nswitch costume to (cost)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nset [self.counuter v] to [0]\nif << (#) contains [a]?> or < (#) contains [b]?>> then\n    if < (#) contains [b]?> then\n        set [brightness v] effect to (-30)\n    end\n    if < (#) contains [a]?> then\n        set [brightness v] effect to ((30) * ([sin v] of (self.counuter) ))\n    end\n    set [ghost v] effect to (100)\n    repeat (5)\n        change [ghost v] effect by (-18)\n    end\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        if <(#) = [2]> then\n            replace item (2) of [clicks v] with [1]\n        end\n        if <(#) = [1]> then\n            set [_entering level v] to (item (length of [your level v]) of [your level v])\n            if <(_Entering Level) > [1]> then\n                if <(_Entering Level) < [7]> then\n                    say (join [Level ] (_Entering Level))\n                else\n                    say [The Portal]\n                end\n            end\n        end\n        if <not <(#) = [2]>> then\n            if <mouse down?> then\n                click test (#)\n            end\n        end\n        if <(self.counuter) < [90]> then\n            change [self.counuter v] by (18)\n        end\n    else\n        say []\n        if <(#) = [2]> then\n            replace item (2) of [clicks v] with [0]\n        end\n        if <[0] < (self.counuter)> then\n            change [self.counuter v] by (-30)\n        end\n        if <(self.counuter) < [0]> then\n            set [self.counuter v] to [0]\n        end\n    end\n    if <not << (#) contains [a]?> or < (#) contains [b]?>>> then\n        set size to ((90) + ((10) * ([cos v] of (self.counuter) ))) %\n        point in direction ((90) + ((3) * ([sin v] of (self.counuter) )))\n        set x to (self.x)\n        set y to ((self.y) + ((10) * ([cos v] of ([timer v] of [pen v]) )))\n    else\n        say []\n        point in direction ((90) + ())\n        go to x: (self.x) y: (self.y)\n        if < (#) contains [a]?> then\n            set size to ((62) + ((8) * ([sin v] of (self.counuter) ))) %\n            set [brightness v] effect to ((30) * ([sin v] of (self.counuter) ))\n        end\n    end\nend\n\ndefine click test (#)\nif <(#) = [1]> then\n    broadcast (play v)\nend\nif <(#) = [2]> then\n    if <(i) = [0]> then\n        set size to (62) %\n        repeat (6)\n            change [i v] by (1)\n            if <[your level v] contains (i)?> then\n                clone as num# (join [a] (i)) x ((-230) + ((35) * (i))) y [-160] costume (join [a] (i))\n            else\n                clone as num# (join [b] (i)) x ((-230) + ((35) * (i))) y [-160] costume (join [b] (i))\n            end\n        end\n        set [self.x v] to [-170]\n        set [self.y v] to [-110]\n        go to x: (self.x) y: ((self.y) + ((10) * ([cos v] of ([timer v] of [pen v]) )))\n        set size to ((90) + ((10) * ([cos v] of (self.counuter) ))) %\n        set [# v] to [2]\n        switch costume to (造型4 v)\n    else\n        broadcast (delete level buttons v)\n        set [i v] to [0]\n    end\nend\nif < (#) contains [a]?> then\n    set [_entering level v] to (letter (2) of (#))\n    set [i v] to [0]\n    stop [other scripts in sprite v]\n    broadcast (play v)\nend\n\nwhen I receive [play v]\nstart sound [传送瞬移音效_耳聆网_\[声音ID：17976\] v]\ndelete this clone\n\ndefine recording\ndelete all of [recording v]\nwait until <key (r v) pressed?>\nrepeat until <<key (r v) pressed?> and <(length of [recording v]) > [100]>>\n    add [] to [recording v]\n    for each [tick # v] in (length of [keys # v])\n        if <key ((item (tick #) of [keys # v]) v) pressed?> then\n            replace item (length of [recording v]) of [recording v] with (join (item (length of [recording v]) of [recording v]) (tick #))\n        end\n    end\nend\n\nwhen flag clicked\ndelete all of [your level v]\nadd [1] to [your level v]\ndelete all of [keys钥匙 v]\nrepeat (3)\n    add [0] to [keys钥匙 v]\nend\n\nwhen I receive [delete level buttons v]\nif << (#) contains [a]?> or < (#) contains [b]?>> then\n    delete this clone\nend\n\nwait until <not <mouse down?>>\n\nwhen I start as a clone\nif <(#) = [2]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            click test (#)\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\nswitch costume to (造型4 v)\n\ngo to x: (self.x) y: (self.y)\n\n@[font]Bump It Up\n\n@menu/main\n\nwhen flag clicked\nbroadcast (flag v)\n\nwhen I receive [ready v]\ngo to x: (0) y: (0)\nshow\nforever\n    if <<<[-200] < (mouse x)> and <(mouse x) < [200]>> and <<[70] < (mouse y)> and <(mouse y) < [160]>>> then\n        if <(self.counuter) < [90]> then\n            change [self.counuter v] by (18)\n        end\n    else\n        if <[0] < (self.counuter)> then\n            change [self.counuter v] by (-30)\n        end\n        if <(self.counuter) < [0]> then\n            set [self.counuter v] to [0]\n        end\n    end\n    set size to ((100) + ((10) * ([sin v] of (self.counuter) ))) %\n    point in direction ((90) + ((5) * ([sin v] of (self.counuter) )))\nend\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [flag v]\nbroadcast (ready v)\nset [_entering level v] to [1]\n\nif <mouse down?> then\nend\n\nwhen this sprite clicked\nif <(pick random (1) to (9)) = [1]> then\n    say (join [Hi, ] (username)) for (1) seconds\n    stop [this script v]\nend\nif <(pick random (1) to (70)) = [1]> then\n    say [The keys are in level 3,level 4 and level 6] for (1) seconds\nend\n\n@level intro\n\nwhen flag clicked\nhide\nset [clone v] to [0]\n\ndefine intro\nswitch costume to (__LEVEL__)\nset [ghost v] effect to (50)\nshow\nrepeat (10)\n    change [ghost v] effect by (-5)\nend\nwait (2.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nset [_winning? v] to [0]\n\nwhen I receive [level intro v]\nif <(clone) = [0]> then\n    intro\nend\nif <(clone) = [1]> then\n    switch costume to (black v)\n    go to [back v] layer\n    set [ghost v] effect to (100)\n    show\n    repeat (3)\n        change [ghost v] effect by (34)\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\nend\n\nwhen I receive [ready v]\nhide\n\n@Pen Text Engine - @-ShadowOfTheFuture-\n\nwhen flag clicked\n\nPTE - Add list\nforever\n    erase all\n    Write (join (join [hello, ] (username)) [!]) at x, y: (0122 2208 0824 2405) (0321 0325 1214) color (RGBA): (0) (125) (175) (0) size: (2) boldness: (1) spacing: (1)\nend\n\ndefine PTE - Add list\nset [pte chars v] to [abcdefghijklmnopqrstuvwxyz1234567890.,?!:;'"/\-_\(\)=+|<>\[\]]\ndelete (all) of [letter_data v]\nadd [0321 0325 1214] to [letter_data v]\nadd [0121 0104 0410 1014 1114 1420 2024 2124] to [letter_data v]\nadd [0205 0211 1122 2225] to [letter_data v]\nadd [0121 0104 0415 1524 2421] to [letter_data v]\nadd [0121 0105 1114 2125] to [letter_data v]\nadd [0121 0105 1114] to [letter_data v]\nadd [0211 0205 1122 2225 1525 1415] to [letter_data v]\nadd [0121 0525 1115] to [letter_data v]\nadd [0204 0323 2224] to [letter_data v]\nadd [0205 0419 1923 2322 2216] to [letter_data v]\nadd [0121 0511 1119 1925] to [letter_data v]\nadd [0121 2125] to [letter_data v]\nadd [0121 0118 1805 0525] to [letter_data v]\nadd [0121 0125 0525] to [letter_data v]\nadd [0206 0621 0205 0520 2024 2124] to [letter_data v]\nadd [0121 0104 0410 1014 1114] to [letter_data v]\nadd [0206 0621 0205 0515 1523 2125] to [letter_data v]\nadd [0121 0104 0410 1014 1114 1325] to [letter_data v]\nadd [0205 0206 0612 1214 1420 2024 2421] to [letter_data v]\nadd [0105 0323] to [letter_data v]\nadd [0116 1622 2224 2420 2005] to [letter_data v]\nadd [0123 0523] to [letter_data v]\nadd [0122 2208 0824 2405] to [letter_data v]\nadd [0125 0521] to [letter_data v]\nadd [0113 1305 1323] to [letter_data v]\nadd [0105 0521 2125] to [letter_data v]\nadd [0703 0323 2224] to [letter_data v]\nadd [0602 0204 0410 1021 2125] to [letter_data v]\nadd [0602 0204 0410 1014 1420 2024 2422 2216] to [letter_data v]\nadd [0311 1115 0924] to [letter_data v]\nadd [0401 0111 1114 1420 2024 2421] to [letter_data v]\nadd [1214 1420 2024 2422 2216 1604] to [letter_data v]\nadd [0105 0523] to [letter_data v]\nadd [1214 1420 2024 2422 2216 1612 0204 0206 0410 0612 1410] to [letter_data v]\nadd [1214 0204 0206 0410 0612 2210] to [letter_data v]\nadd [0206 0204 0410 0616 1020 1622 2224 2420 1016] to [letter_data v]\nadd [2323] to [letter_data v]\nadd [2223 2318] to [letter_data v]\nadd [0602 0204 0410 1018 2323] to [letter_data v]\nadd [0318 2323] to [letter_data v]\nadd [1313 2323] to [letter_data v]\nadd [1313 2223 2318] to [letter_data v]\nadd [0308] to [letter_data v]\nadd [0207 0409] to [letter_data v]\nadd [0422] to [letter_data v]\nadd [0224] to [letter_data v]\nadd [1214] to [letter_data v]\nadd [2125] to [letter_data v]\nadd [0408 0818 1824] to [letter_data v]\nadd [0208 0818 1822] to [letter_data v]\nadd [1214 1719] to [letter_data v]\nadd [0818 1115] to [letter_data v]\nadd [0323] to [letter_data v]\nadd [1210 1220] to [letter_data v]\nadd [0614 1416] to [letter_data v]\nadd [0403 0323 2324] to [letter_data v]\nadd [0203 0323 2223] to [letter_data v]\n\ndefine None\nset pen color to ((((a) * (16777216)) + ((r) * (65536))) + (((g) * (256)) + (b)))\nset pen size to ((s) * (bold))\nset [pte letter v] to [1]\nrepeat (length of (string))\n    set [pte i v] to [1]\n    repeat until <<(letter (pte i) of (pte chars)) = (letter (pte letter) of (string))> or <(pte i) > (length of (pte chars))>>\n        change [pte i v] by (1)\n    end\n    if <(pte i) > (length of (pte chars))> then\n        set [pte i v] to [0]\n    end\n    if <not <(pte i) = [0]>> then\n        set [pte j v] to [0]\n        repeat ([ceiling v] of ((length of (item (pte i) of [letter_data v])) / (5)) )\n            set [pte p1 v] to (join (letter ((pte j) + (1)) of (item (pte i) of [letter_data v])) (letter ((pte j) + (2)) of (item (pte i) of [letter_data v])))\n            set [pte p2 v] to (join (letter ((pte j) + (3)) of (item (pte i) of [letter_data v])) (letter ((pte j) + (4)) of (item (pte i) of [letter_data v])))\n            go to x: ((((s) * (((pte p1) - (1)) mod (5))) + (x)) + (((pte letter) - (1)) * ((s) * ((sp) * (6))))) y: ((((s) * (-2)) * ([floor v] of (((pte p1) - (1)) / (5)) )) + (y))\n            pen down\n            go to x: ((((s) * (((pte p2) - (1)) mod (5))) + (x)) + (((pte letter) - (1)) * ((s) * ((sp) * (6))))) y: ((((s) * (-2)) * ([floor v] of (((pte p2) - (1)) / (5)) )) + (y))\n            pen up\n            change [pte j v] by (5)\n        end\n    end\n    change [pte letter v] by (1)\nend\n\n@home\n\nwhen flag clicked\ngo to x: (-215) y: (157)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <not <(__LEVEL__) = [0]>> then\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (ready v)\n            set [__level__ v] to [0]\n        end\n    end\nend\n\ngo to [front v] layer\n\n@rain\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    wait (0.07) seconds\n    create clone of (_myself_ v)\nend\n\ndefine clone (size) (speed) (x) (tsp) (cost) (direct)\nset [self.speed v] to (speed)\nset [self.cost v] to (cost)\nset [self.size v] to (size)\nset [self.tsp v] to (tsp)\nset [self.x v] to (x)\npoint in direction (direct)\n\nwhen I start as a clone\nclone (pick random (10) to (100)) (pick random (23) to (33)) (pick random (-220) to (220)) (pick random (60) to (90)) (pick random (1) to (5)) (pick random (-175) to (-179))\nswitch costume to (self.cost)\nset size to (self.size) %\nset [ghost v] effect to (self.tsp)\ngo to x: (self.x) y: (180)\nshow\nrepeat until <<(x position) < [-230]> or <(y position) < [-179]>>\n    move (self.speed) steps\nend\ndelete this clone\n\nwhen I receive [you win v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@hint\n\nsay []\n\nwhen flag clicked\ngo to x: (240) y: (-180)\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nset [clone id v] to [0]\nset [_hint v] to []\nforever\n    say (_Hint)\nend\n\nwhen I start as a clone\ngo to x: (-240) y: (-130)\n\nwhen I receive [load v]\nif <not <(clone id) = [0]>> then\n    ask [Enter your level codes here:] and wait\nend\n\n@save/load\n\nwhen flag clicked\nshow list [save codes v]\nforever\n    if <key (s v) pressed?> then\n        broadcast (save v) and wait\n    end\n    if <key (l v) pressed?> then\n        broadcast (load v) and wait\n        loading (answer)\n    end\n    set [_my game codes v] to (item (item (length of [your level v]) of [your level v]) of [code for each level v])\n    delete all of [save codes v]\n    add [Copy the codes below ] to [save codes v]\n    add (join (_My Game Codes) (join (Keys钥匙) (join [505] (join (pick random (100000) to (999999)) [\]])))) to [save codes v]\n    add [Press C to close] to [save codes v]\nend\n\nwhen I receive [save v]\nhide list [save codes v]\nwait until <key (c v) pressed?>\nshow list [save codes v]\n\ndefine string.cut (str) (\[) (\])\nset [j v] to (\[)\nset [_cutting v] to []\nrepeat (((\]) - (\[)) + (1))\n    set [_cutting v] to (join (_cutting) (letter (j) of (str)))\n    change [j v] by (1)\nend\n\ndefine loading (string)\nstring.cut (string) (length of (string)) (length of (string))\nif <(_cutting) = [\]]> then\n    string.cut (string) [1] [6]\n    if <[code for each level v] contains (_cutting)?> then\n        delete all of [your level v]\n        set [i v] to [0]\n        repeat (item # of (_cutting) in [code for each level v])\n            change [i v] by (1)\n            add (i) to [your level v]\n        end\n    else\n        stop [this script v]\n    end\n    string.cut (string) [7] [9]\n    delete all of [keys钥匙 v]\n    set [i v] to [0]\n    repeat (3)\n        change [i v] by (1)\n        add (letter (i) of (_cutting)) to [keys钥匙 v]\n    end\nend\n\nwhen [space v] key pressed\nif <(username) = [biggboss01]> then\n    loading [233219111\]]\nend\n\n@MyKeys\n\nwhen flag clicked\ninit\n\nwhen I start as a clone\nshow\nforever\n    if <(item (#) of [keys钥匙 v]) = [1]> then\n        switch costume to (#)\n        set [ghost v] effect to (0)\n    else\n        switch costume to (/ v)\n        set [ghost v] effect to (50)\n    end\nend\n\ndefine init\ngo to x: (190) y: (158)\nhide\nset [ghost v] effect to (50)\nset [# v] to [0]\nrepeat (3)\n    change [# v] by (1)\n    create clone of (_myself_ v)\n    change x by (15)\nend\n\n@outro\n\nwhen flag clicked\nhide\n\nwhen I receive [you win v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [clone id v] to [1]\nrepeat (4)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\nforever\n    wait until <(Outro timer) > [30]>\n    clone (pick random (2) to (3))\n    wait (0) seconds\nend\n\nwhen I start as a clone\nswitch costume to (clone id)\nshow\nif <(clone id) = [4]> then\n    show\n    set [ghost v] effect to (100)\n    repeat (15)\n        change [ghost v] effect by (-7)\n    end\nend\nif <(clone id) = [1]> then\n    show\n    set [ghost v] effect to (100)\n    wait until <(Outro timer) > [15]>\n    go to [front v] layer\n    repeat (16)\n        change [ghost v] effect by (-6)\n    end\nend\nif <(clone id) = [2]> then\n    show\n    set [ghost v] effect to (100)\n    wait until <(Outro timer) > [18]>\n    go to [front v] layer\n    repeat (16)\n        change [ghost v] effect by (-6)\n        go to x: (160) y: ((-70) + ((20) * ([sin v] of ([timer v] of [pen v]) )))\n    end\n    forever\n        go to x: (160) y: ((-70) + ((20) * ([sin v] of ([timer v] of [pen v]) )))\n    end\nend\nif <(clone id) = [3]> then\n    hide\n    wait until <(Outro timer) > [160]>\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\nif <(clone id) = [5]> then\n    if <(Outro timer) < [160]> then\n        go to [front v] layer\n        go to x: (150) y: (pick random (-170) to (170))\n        set [ghost v] effect to (20)\n        set size to (pick random (80) to (150)) %\n        repeat (60)\n            change [ghost v] effect by (1.5)\n            change x by (() - (self.speed))\n        end\n    else\n        go to [front v] layer\n        go to x: (240) y: (pick random (-170) to (150))\n        set [ghost v] effect to (20)\n        set size to (pick random (80) to (120)) %\n        repeat (20)\n            change [ghost v] effect by (5)\n            change x by (() - (self.speed))\n        end\n    end\n    delete this clone\nend\n\ndefine clone (n)\nrepeat (n)\n    set [self.speed v] to (pick random (3) to (5))\n    create clone of (_myself_ v)\nend\n\nwhen I receive [you win v]\nset [outro timer v] to [0]\nforever\n    change [outro timer v] by (1)\nend\n\nwait until <(Outro timer) > [20]>\n\nwait until <(Outro timer) > [20]>\n\n@thb2\n\nwhen flag clicked\nswitch costume to (dksdthb v)\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\n\ngo to [front v] layer\n\nwhen I receive [you win v]\nchange [☁ so cool! you win! v] by (1)\nwait (1) seconds\nwait until <(Outro timer) > [300]>\ngo to [front v] layer\nswitch costume to (dksdthb2 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nstop [all v]\n\n