Pen Platformer


@Stage\n\n@Pen\n\nwhen flag clicked\nSetup\nbroadcast (Game v)\n\ndefine Setup\nOptimize\nErase All\nPen Up\nSet Level to [1]\nTiny [5]\nset [camera x v] to [0]\nset [camera y v] to [0]\nset [editor v] to [0]\nset [project state v] to [1]\nset [frame v] to [0]\nset [toggle frame v] to [0]\npoint in direction (90)\nswitch costume to (pen v)\nshow\n\ndefine Erase All\nerase all\n\ndefine Pen Up\npen up\n\ndefine Pen Down\npen down\n\ndefine Go to x: (x) y: (y)\ngo to x: (x) y: (y)\n\ndefine Set Level to (level)\nset [level v] to (level)\n\ndefine Game Start\nset [player x v] to [0]\nset [player y v] to [10]\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling v] to [Infinity]\nset [playerspeed v] to [2]\nset [friction v] to [0.8]\nset [gravity v] to [2]\nset [jump height v] to [14]\nset [max gravity v] to [-18]\nset [player size v] to [10]\nset [max speed x v] to [9]\nset [type v] to [0]\nset [fade v] to [0]\nset [ice v] to [0.99]\nset [stick v] to [0]\nset [origpensize v] to [5]\nset [offset v] to ((OrigPenSize) + (1))\nset [dieanimate v] to [20]\nset [right v] to [0]\nset [left v] to [0]\nset [up v] to [0]\nset [down v] to [0]\nset [mobile v] to [50]\nset [frame v] to [0]\nset [toggle frame v] to [0]\nset [platform/danger toggle v] to [0]\nset [game state v] to []\nset [exit v] to []\nshow variable [level title v]\ndelete all of [level v]\n\ndefine Game - Win\nrepeat (((DieAnimate) / (5)) + (1))\n    Erase All\n    Clear Data\n    Render\n    change [fade v] by ([ceiling v] of (((100) / (DieAnimate)) * (5)) )\nend\nSet Level to ((Level) + (1))\nset [camera x v] to [0]\nset [camera y v] to [0]\nwait (1) seconds\n\ndefine Check Controls\nset [right v] to <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (((Player X) - (Camera X)) + ((Player Size) + ((Offset) + (Mobile))))>>>>\nset [left v] to <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (((Player X) - (Camera X)) - ((Player Size) - ((Offset) - (Mobile))))>>>>\nset [up v] to <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (((Player Y) - (Camera Y)) + ((Player Size) + ((Offset) + (Mobile))))>>>>\nset [down v] to <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (((Player Y) - (Camera Y)) - ((Player Size) - ((Offset) - (Mobile))))>>>>\nset [x axis v] to ((Right) - (Left))\nset [y axis v] to ((Up) - (Down))\n\ndefine Player Physics\nchange [frame v] by (1)\nchange [toggle frame v] by (0.07)\nchange [platform/danger toggle v] by (0.01)\nset [disco frame floor v] to ([floor v] of (Toggle Frame) )\nset [disco2 v] to ((Disco Frame Floor) mod (2))\nset [disco3 v] to ((Disco Frame Floor) mod (3))\nset [disco4 v] to ((Disco Frame Floor) mod (4))\nset [disco5 v] to ((Disco Frame Floor) mod (5))\nset [disco6 v] to ((Disco Frame Floor) mod (6))\nset [platform/danger disco v] to (([floor v] of (Platform/Danger Toggle) ) mod (2))\nif <(Game State) = []> then\n    set [game state v] to [1]\nend\nif <not <(Level Length) = (length of [level v])>> then\n    set [level length v] to (length of [level v])\nend\nif <(Editor) = [1]> then\n    Handle Keys - God Mode\n    Limit Player Edge x: [-225] Edge y: [-166]\nelse\n    Handle Keys - Jump\n    Move Player Y (Speed Y)\n    Test\n    Handle Keys - Right Left\n    Move Player X (Speed X)\n    Test\n    Limit Player Edge x: [-256] Edge y: [-200]\nend\nMove Camera  [5] [10]\nLimit Camera Edge x: [0] Edge y: [0]\nset [thumbnail? v] to [1]\n\ndefine Render Player\nRender Player at (Player X) (Player Y) (Player Size) (Fade)\n\ndefine Render Level\nif <(Level) = [1]> then\n    Level 1\nelse\n    if <(Level) = [2]> then\n        Level 2\n    else\n        if <(Level) = [3]> then\n            Level 3\n        else\n            if <(Level) = [4]> then\n                Level 4\n            else\n                if <(Level) = [5]> then\n                    Level 5\n                else\n                    if <(Level) = [6]> then\n                        Level 6\n                    else\n                        if <(Level) = [7]> then\n                            Level 7\n                        else\n                            if <(Level) = [8]> then\n                                Level 8\n                            else\n                                Thank You!!!\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Draw Line from (x1) (y1) to (x2) (y2) <add?> (type) (fade)\nSet Pen Size to (OrigPenSize)\nSet Color (type) <> [50]\nif <(Exit) > []> then\n    set pen (transparency v) to (fade)\nelse\n    set pen (transparency v) to (pick random (1) to (50))\nend\nset pen (transparency v) to (fade)\nif <not <add?>> then\n    if <((Player X) + (240)) > (x1)> then\n        if <((Player X) - (240)) < (x2)> then\n            if <((Player Y) + (180)) > (y1)> then\n                if <((Player Y) - (180)) < (y2)> then\n                    Add Lists (x1) (y1) (x2) (y2) (type)\n                end\n            end\n        end\n    end\nend\nPen Up\nGo to x: ((x1) - (Camera X)) y: ((y1) - (Camera Y))\nPen Down\nGo to x: ((x2) - (Camera X)) y: ((y2) - (Camera Y))\nPen Up\n\ndefine Render Player at (x) (y) (size) (fade)\nDraw Line from ((x) - (size)) ((y) - (size)) to ((x) + (size)) ((y) - (size))  [0] (fade)\nDraw Line from ((x) + (size)) ((y) - (size)) to ((x) + (size)) ((y) + (size))  [0] (fade)\nDraw Line from ((x) + (size)) ((y) + (size)) to ((x) - (size)) ((y) + (size))  [0] (fade)\nDraw Line from ((x) - (size)) ((y) + (size)) to ((x) - (size)) ((y) - (size))  [0] (fade)\n\ndefine Handle Keys - Right Left\nif <<not <(Type) = (item # of [Ice] in [type v])>> and <not <(Type) = (item # of [Slime] in [type v])>>> then\n    set [speed x v] to (((X Axis) * (PlayerSpeed)) + ((Speed X) * (Friction)))\n    if <([abs v] of (Speed X) ) > (Max Speed X)> then\n        if <(Speed X) > [0]> then\n            set [speed x v] to (Max Speed X)\n        else\n            set [speed x v] to (() - (Max Speed X))\n        end\n    end\nelse\n    if <(Type) = (item # of [Ice] in [type v])> then\n        set [speed x v] to (((X Axis) * (PlayerSpeed)) + ((Speed X) * (Ice)))\n        if <<(Y Axis) > [0]> or <(Speed Y) < [0]>> then\n            set [type v] to [0]\n        end\n    else\n        set [speed x v] to (((X Axis) * (PlayerSpeed)) + ((Speed X) * (Stick)))\n    end\nend\n\ndefine Move Player X (speed x)\nchange [player x v] by (speed x)\nCollision Detection\nif <(Colliding?) = [1]> then\n    repeat until <not <(Colliding?) = [1]>>\n        if <(speed x) > [0]> then\n            change [player x v] by (-1)\n        else\n            change [player x v] by (1)\n        end\n        Collision Detection\n        set [speed x v] to [0]\n    end\nend\n\ndefine Handle Keys - Jump\nchange [speed y v] by (() - (Gravity))\nif <(Speed Y) < (Max Gravity)> then\n    set [speed y v] to (Max Gravity)\nend\nif <not <(Type) = (item # of [Slime] in [type v])>> then\n    if <(Y Axis) > [0]> then\n        if <(Falling) < [4]> then\n            set [speed y v] to (Jump Height)\n        end\n    end\nend\n\ndefine Move Player Y (speed y)\nchange [player y v] by (speed y)\nchange [falling v] by (1)\nCollision Detection\nif <(Colliding?) = [1]> then\n    repeat until <not <(Colliding?) = [1]>>\n        if <(speed y) > [0]> then\n            change [player y v] by (-1)\n        else\n            change [player y v] by (1)\n            set [falling v] to [0]\n        end\n        Collision Detection\n        set [speed y v] to [0]\n    end\nend\n\ndefine Move Camera <delay?> (x delay) (y delay)\nif <delay?> then\n    change [camera x v] by (((Player X) - (Camera X)) / (x delay))\nelse\n    set [camera x v] to (round (Player X))\nend\nchange [camera y v] by (round (((Player Y) - (Camera Y)) / (y delay)))\n\ndefine Limit Camera Edge x: (edge x) Edge y: (edge y)\nif <(Camera X) < (edge x)> then\n    set [camera x v] to (edge x)\nend\nif <(Camera Y) < (edge y)> then\n    set [camera y v] to (edge y)\nend\n\ndefine Collision Detection\nCollision Detection w/ <not > ?\n\ndefine Draw Level from (x1) (y1) to (x2) (y2)\nDraw Line from (x1) (y1) to (x2) (y2) <> (item # of [Platforms] in [type v]) []\n\ndefine Add Lists (x1) (y1) (x2) (y2) (type)\nadd (type) to [level v]\nif <<(x1) < (x2)> or <(y1) < (y2)>> then\n    add (x1) to [level v]\n    add (y1) to [level v]\n    add (x2) to [level v]\n    add (y2) to [level v]\nelse\n    add (x2) to [level v]\n    add (y2) to [level v]\n    add (x1) to [level v]\n    add (y1) to [level v]\nend\n\ndefine Draw Danger from (x1) (y1) to (x2) (y2)\nDraw Line from (x1) (y1) to (x2) (y2) <> (item # of [Danger] in [type v]) []\n\ndefine Test - Die (trigger)\nif <(Type) = (trigger)> then\n    set [exit v] to [Die]\nend\n\ndefine Set Pen Color to (color) (sat) (bright)\nset pen (color v) to (color)\nset pen (saturation v) to (sat)\nset pen (brightness v) to (bright)\n\ndefine Set Color (type) <flicker?> (flicker effect)\nif <(type) = [0]> then\n    Set Pen Color to [58] [74] [100]\n    Set Pen Color to [58] [63] [100]\nelse\n    if <[type v] contains (item (type) of [type v])?> then\n        set [color index v] to [1]\n        set [col features v] to ((length of (item (1) of [colors v])) / (3))\n        set [color v] to []\n        set [saturation v] to []\n        set [col brightness v] to []\n        repeat (Col Features)\n            set [color v] to (join (Color) (letter (Color Index) of (item (type) of [colors v])))\n            change [color index v] by (1)\n        end\n        set [color index v] to [1]\n        repeat (Col Features)\n            set [saturation v] to (join (Saturation) (letter ((Color Index) + (Col Features)) of (item (type) of [colors v])))\n            change [color index v] by (1)\n        end\n        set [color index v] to [1]\n        repeat (Col Features)\n            set [col brightness v] to (join (Col Brightness) (letter ((Color Index) + ((Col Features) * (2))) of (item (type) of [colors v])))\n            change [color index v] by (1)\n        end\n        Set Pen Color to (Color) (Saturation) (Col Brightness)\n    else\n        Set Pen Color to [] [] []\n    end\nend\n\ndefine Spawn\nset [fade v] to [100]\nrepeat ((DieAnimate) / (5))\n    Erase All\n    Clear Data\n    Render\n    change [fade v] by (() - ([ceiling v] of (((100) / (DieAnimate)) * (5)) ))\nend\n\ndefine Render\nRender Background\nRender Level\nRender Player\n\ndefine Render Background\nSet Pen Color to [] [] []\nset pen (transparency v) to (0)\nGo to x: [] y: []\nSet Pen Size to [1000]\nPen Down\nPen Up\n\ndefine Set Pen Size to (size)\nset pen size to (size)\n\ndefine Limit Player Edge x: (edge x) Edge y: (edge y)\nif <(Player X) < (edge x)> then\n    set [player x v] to (edge x)\n    set [speed x v] to [0]\n    if <(Editor) < [1]> then\n        set [exit v] to [Die]\n    end\nend\nif <(Player Y) < (edge y)> then\n    set [player y v] to (edge y)\n    set [speed y v] to [0]\n    if <(Editor) < [1]> then\n        set [exit v] to [Die]\n    end\nend\n\ndefine Draw Trampoline from (x1) (y1) to (x2) (y2) with Height: (height)\nDraw Line from (x1) (y1) to (x2) (y2) <> (item # of [Trampoline] in [type v]) []\nTest - Trampoline (item # of [Trampoline] in [type v]) (height)\n\ndefine Test - Trampoline (trigger) (height)\nif <(Editor) < [1]> then\n    if <(Type) = (trigger)> then\n        set [type v] to (item # of [Platforms] in [type v])\n        set [speed y v] to (height)\n    end\nend\n\ndefine Draw Flag at (x) (y)\nDraw Flag at (x) (y) [50] [10]\n\ndefine Test - Win (trigger)\nif <(Type) = (trigger)> then\n    set [exit v] to [Win]\nend\n\ndefine Test\nTest - Win (item # of [Flag] in [type v])\nTest - Die (item # of [Danger] in [type v])\n\ndefine Game - Die\nset [fade v] to [0]\nrepeat (DieAnimate)\n    Erase All\n    Clear Data\n    Render\n    change [fade v] by ([ceiling v] of ((100) / (DieAnimate)) )\nend\n\ndefine Draw Spike at (x) (y) (width) (height) (dir) (size)\nif <(dir) = [Up]> then\n    Draw Line from ((x) - ((width) / (2))) (y) to ((x) + ((width) / (2))) (y) <> [2] []\n    Draw Line from ((x) - ((width) / (2))) (y) to (x) ((y) + (height))  [2] []\n    Draw Line from ((x) + ((width) / (2))) (y) to (x) ((y) + (height))  [2] []\n    Draw Line from (x) (((y) + (height)) - (1)) to (x) (((y) + (height)) - (1)) <> [2] []\nend\nif <(dir) = [Down]> then\n    Draw Line from ((x) - ((width) / (2))) (y) to ((x) + ((width) / (2))) (y) <> [2] []\n    Draw Line from ((x) - ((width) / (2))) (y) to (x) ((y) - (height))  [2] []\n    Draw Line from ((x) + ((width) / (2))) (y) to (x) ((y) - (height))  [2] []\n    Draw Line from (x) (((y) - (height)) + (1)) to (x) (((y) - (height)) + (1)) <> [2] []\nend\nif <(dir) = [Right]> then\n    Draw Line from (x) ((y) - ((height) / (2))) to (x) ((y) + ((height) / (2))) <> [2] []\n    Draw Line from (x) ((y) - ((height) / (2))) to ((x) + (width)) (y)  [2] []\n    Draw Line from (x) ((y) + ((height) / (2))) to ((x) + (width)) (y)  [2] []\n    Draw Line from (((x) + (width)) - (1)) (y) to (((x) + (width)) - (1)) (y) <> [2] []\nend\nif <(dir) = [Left]> then\n    Draw Line from (x) ((y) - ((height) / (2))) to (x) ((y) + ((height) / (2))) <> [2] []\n    Draw Line from (x) ((y) - ((height) / (2))) to ((x) - (width)) (y)  [2] []\n    Draw Line from (x) ((y) + ((height) / (2))) to ((x) - (width)) (y)  [2] []\n    Draw Line from (((x) - (width)) + (1)) (y) to (((x) - (width)) + (1)) (y) <> [2] []\nend\n\ndefine Clear Data\ndelete all of [level v]\n\ndefine Draw Flag at (x) (y) (h) (z)\nDraw Line from (x) (y) to (x) ((y) + (h)) <> (item # of [Flag] in [type v]) []\nDraw Line from (x) ((y) + (h)) to (x) ((y) + ((h) - (OrigPenSize))) <> (item # of [Flag] in [type v]) []\nDraw Line from (x) ((y) + ((h) - (5))) to ((x) + (z)) ((y) + (h)) <> (item # of [Flag] in [type v]) []\nDraw Line from ((x) + (z)) ((y) + (h)) to ((x) + ((z) * (2))) ((y) + ((h) - (5))) <> (item # of [Flag] in [type v]) []\nDraw Line from ((x) + ((z) * (2))) ((y) + ((h) - (5))) to ((x) + ((z) * (3))) ((y) + (h)) <> (item # of [Flag] in [type v]) []\nDraw Line from ((x) + ((z) * (3))) ((y) + (h)) to ((x) + ((z) * (3))) ((y) + ((z) * (3))) <> (item # of [Flag] in [type v]) []\nDraw Line from ((x) + ((z) * (3))) ((y) + ((z) * (3))) to ((x) + ((z) * (2))) ((y) + (((h) - (5)) - ((z) * (2)))) <> (item # of [Flag] in [type v]) []\nDraw Line from ((x) + ((z) * (2))) ((y) + (((h) - (5)) - ((z) * (2)))) to ((x) + (z)) ((y) + ((z) * (3))) <> (item # of [Flag] in [type v]) []\nDraw Line from ((x) + (z)) ((y) + ((z) * (3))) to (x) ((y) + (((h) - (5)) - ((z) * (2)))) <> (item # of [Flag] in [type v]) []\n\nwhen I receive [game v]\nforever\n    Game Start\n    Spawn\n    repeat until <(Exit) > []>\n        Erase All\n        Check Controls\n        Player Physics\n        Clear Data\n        Render\n        Optimize\n    end\n    if <(Exit) = [Win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Collision Detection w/ <god mode?> ?\nset [colliding? v] to [0]\nset [collision index v] to [0]\nif <god mode?> then\n    if <<not <(Type) = (item # of [Flag] in [type v])>> and <not <(Type) = (item # of [Trampoline] in [type v])>>> then\n        set [type v] to [0]\n    end\nend\nrepeat until <(length of [level v]) = (Collision Index)>\n    change [collision index v] by (5)\n    if <((Player X) - ((Player Size) + (Offset))) < (item ((Collision Index) - (1)) of [level v])> then\n        if <((Player X) + ((Player Size) + (Offset))) > (item ((Collision Index) - (3)) of [level v])> then\n            if <((Player Y) - ((Player Size) + (Offset))) < (item ((Collision Index) - (0)) of [level v])> then\n                if <((Player Y) + ((Player Size) + (Offset))) > (item ((Collision Index) - (2)) of [level v])> then\n                    set [type v] to (item ((Collision Index) - (4)) of [level v])\n                    if <(Editor) < [1]> then\n                        set [colliding? v] to [1]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Optimize\nGo to x: [0] y: [0]\nswitch costume to (pen v)\nshow\n\nwhen [m v] key pressed\nif <(username) = [ImRohan10187]> then\n    set [mouse x abs v] to (round ([abs v] of (mouse x) ))\n    set [mouse y abs v] to (round ([abs v] of (mouse y) ))\n    if <<(Mouse X Abs) < [240]> and <(Mouse Y Abs) < [180]>> then\n        set [mouse x v] to (round ((mouse x) + (Camera X)))\n        set [mouse y v] to (round ((mouse y) + (Camera Y)))\n        set [mouse v] to (join (Mouse X) (join [,] (join [ ] (Mouse Y))))\n        show variable [mouse v]\n    else\n        hide variable [mouse v]\n    end\nend\n\nwhen [timer v] > (Tiny)\nThumbnail\n\ndefine Draw Moving Platform at (x) (y) (move?) with Length: (length) and Speed: (speed) Distance: (distance) Type: (type)\nset [movepx v] to ((((x) * (2)) - ((length) / (2))) + (([sin v] of ((Frame) * (speed)) ) * (distance)))\nset [movepy v] to ((y) + (([sin v] of ((Frame) * (speed)) ) * (distance)))\nif < (move?) contains [H]?> then\n    Draw Line from ((MovePX) - ((length) / (2))) (y) to ((MovePX) + ((length) / (2))) (y) <> (type) []\nend\nif < (move?) contains [V]?> then\n    Draw Line from ((x) - ((length) / (2))) (MovePY) to ((x) + ((length) / (2))) (MovePY) <> (type) []\nend\n\nwhen [0 v] key pressed\nif <(username) = [ImRohan10187]> then\n    \n        stop [other scripts in sprite v]\n    end\n    change [editor v] by (1)\n    set [editor v] to ((Editor) mod (2))\n    if <not <(Editor) = [1]>> then\n        set [type v] to [1]\n    end\n    \n        broadcast (Game v)\n    end\nend\n\nwhen I receive [game v]\nforever\n    reset timer\nend\n\ndefine Handle Keys - God Mode\nset [god speed v] to ((PlayerSpeed) + (1))\nset [speed x v] to (((X Axis) * (God Speed)) + ((Speed X) * (Friction)))\nset [speed y v] to (((Y Axis) * (God Speed)) + ((Speed Y) * (Friction)))\nMove Player X (Speed X)\nMove Player Y (Speed Y)\n\nwhen [l v] key pressed\nif <(Project State) > []> then\n    stop [other scripts in sprite v]\n    set [thumbnail? v] to [0]\n    ask (join [Enter Level Number \(Current ] (join (Level) [\)])) and wait\n    if <(answer) = [Blank]> then\n        set [level v] to [Blank]\n        broadcast (Game v)\n    end\n    if <<(round (answer)) < [1]> or <(round (answer)) > [10]>> then\n        broadcast (Game v)\n        stop [this script v]\n    end\n    set [level v] to (round (answer))\n    broadcast (Game v)\nend\n\ndefine Draw Ice from (x1) (y1) to (x2) (y2)\nDraw Line from (x1) (y1) to (x2) (y2) <> (item # of [Ice] in [type v]) []\n\ndefine Draw Slime from (x1) (y1) to (x2) (y2)\nDraw Line from (x1) (y1) to (x2) (y2) <> (item # of [Slime] in [type v]) []\n\ndefine Draw Box at (x) (y) and Type: (type) With Length: (length) Width: (width) Height: (tramp height)\nif <not <(type) = [3]>> then\n    Draw Line from ((x) - ((length) / (2))) ((y) + ((width) / (2))) to ((x) + ((length) / (2))) ((y) + ((width) / (2))) <> (type) []\n    Draw Line from ((x) - ((length) / (2))) ((y) - ((width) / (2))) to ((x) + ((length) / (2))) ((y) - ((width) / (2))) <> (type) []\n    Draw Line from ((x) + ((length) / (2))) ((y) - ((width) / (2))) to ((x) + ((length) / (2))) ((y) + ((width) / (2))) <> (type) []\n    Draw Line from ((x) - ((length) / (2))) ((y) - ((width) / (2))) to ((x) - ((length) / (2))) ((y) + ((width) / (2))) <> (type) []\nelse\n    Draw Trampoline from ((x) - ((length) / (2))) ((y) + ((width) / (2))) to ((x) + ((length) / (2))) ((y) + ((width) / (2))) with Height: (tramp height)\n    Draw Trampoline from ((x) - ((length) / (2))) ((y) - ((width) / (2))) to ((x) + ((length) / (2))) ((y) - ((width) / (2))) with Height: (tramp height)\n    Draw Trampoline from ((x) + ((length) / (2))) ((y) - ((width) / (2))) to ((x) + ((length) / (2))) ((y) + ((width) / (2))) with Height: (tramp height)\n    Draw Trampoline from ((x) - ((length) / (2))) ((y) - ((width) / (2))) to ((x) - ((length) / (2))) ((y) + ((width) / (2))) with Height: (tramp height)\nend\n\ndefine Draw Moving Box at (x) (y) (move?) with Length: (length) Width: (width) and Speed: (speed) Distance: (distance) Type: (type) Delay: (float delay)\nset [movexoffset v] to ((x) + ((length) + (distance)))\nset [moveyoffset v] to ((y) + ((width) + (distance)))\nif <(move?) = [h]> then\n    set [movebx+ v] to ((((MoveXOffset) - ((length) / (2))) + (([sin v] of ((Frame) * (speed)) ) * (distance))) + ((length) / (2)))\n    set [movebx- v] to ((((MoveXOffset) - ((length) / (2))) + (([sin v] of ((Frame) * (speed)) ) * (distance))) - ((length) / (2)))\n    set [moveby+ v] to ((y) + ((width) / (2)))\n    set [moveby- v] to ((y) - ((width) / (2)))\nend\nif <(move?) = [v]> then\n    set [movebx+ v] to ((x) + ((length) / (2)))\n    set [movebx- v] to ((x) - ((length) / (2)))\n    set [moveby+ v] to ((((MoveYOffset) - ((width) / (2))) + (([sin v] of ((Frame) * (speed)) ) * (distance))) - ((width) / (2)))\n    set [moveby- v] to ((((MoveYOffset) - ((width) / (2))) + (([sin v] of ((Frame) * (speed)) ) * (distance))) + ((width) / (2)))\nend\nif <<(move?) = [l]> or <(move?) = [t]>> then\n    set [movebx+ v] to ((x) + ((length) / (2)))\n    set [movebx- v] to ((x) - ((length) / (2)))\n    set [moveby+ v] to ((y) - ((width) / (2)))\n    set [moveby- v] to ((((MoveYOffset) - ((width) / (2))) + (([sin v] of (((Frame) - (float delay)) * (speed)) ) * (distance))) - ((width) / (2)))\nend\nDraw Line from (MoveBX-) (MoveBY+) to (MoveBX+) (MoveBY+) <> (type) []\nDraw Line from (MoveBX-) (MoveBY-) to (MoveBX+) (MoveBY-) <> (type) []\nDraw Line from (MoveBX-) (MoveBY+) to (MoveBX-) (MoveBY-) <> (type) []\nDraw Line from (MoveBX+) (MoveBY+) to (MoveBX+) (MoveBY-) <> (type) []\n\ndefine _Print Text: (text) at: (x) (y) Size: (size) Color: (col) (sat) (bright) Thickness: (thickness) Width: (width) Height: (height) Spacing: (spacing)\nPrint Text: (text) at (x) (y) Size: (size) Color: (col) (sat) (bright) Thickness: (thickness) Width: (width) Height: (height) Spacing: (spacing)\n\ndefine Setup Chars\nif <(length of [text v]) < [54]> then\n    delete all of [text v]\n    add [/00/0444404202] to [text v]\n    add [/00/0434320232424000] to [text v]\n    add [/44/040040] to [text v]\n    add [/00/043443413000] to [text v]\n    add [/40/000232020444] to [text v]\n    add [/00/0232020444] to [text v]\n    add [/44/0400404222] to [text v]\n    add [/00/0402424044] to [text v]\n    add [/04/4424200040] to [text v]\n    add [/24/2000] to [text v]\n    add [/34/010004011240] to [text v]\n    add [/04/0040] to [text v]\n    add [/00/04224440] to [text v]\n    add [/00/044044] to [text v]\n    add [/00/04444000] to [text v]\n    add [/00/04444202] to [text v]\n    add [/00/044440004022] to [text v]\n    add [/00/043432024240] to [text v]\n    add [/44/14031232413000] to [text v]\n    add [/20/240444] to [text v]\n    add [/04/004044] to [text v]\n    add [/04/2044] to [text v]\n    add [/04/00224044] to [text v]\n    add [/00/44/04/40] to [text v]\n    add [/04/22202244] to [text v]\n    add [/04/440040] to [text v]\n    add [/00/0444400044] to [text v]\n    add [/13/24201030] to [text v]\n    add [/04/4442020040] to [text v]\n    add [/04/444212424000] to [text v]\n    add [/04/02424044] to [text v]\n    add [/44/0402424000] to [text v]\n    add [/44/040242400004] to [text v]\n    add [/04/4420] to [text v]\n    add [/00/044440000242] to [text v]\n    add [/00/404202044442] to [text v]\n    add [/20/20/22/24] to [text v]\n    add [/00/14/30/44/01/41/03/43] to [text v]\n    add [/04/14130304/40/30314140/00/44] to [text v]\n    add [/13/2433] to [text v]\n    add [/12/34/32/14] to [text v]\n    add [/20/111324] to [text v]\n    add [/20/313324] to [text v]\n    add [/12/32] to [text v]\n    add [/21/23221232] to [text v]\n    add [/00/40] to [text v]\n    add [/13/33/11/31] to [text v]\n    add [/00/44] to [text v]\n    add [/20/20] to [text v]\n    add [/10/21] to [text v]\n    add [/20/20/22/424424] to [text v]\n    add [/23/24] to [text v]\n    add [/13/14/33/34] to [text v]\n    add [/21/21/23/23] to [text v]\nend\nset [characters v] to [ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#%^*\(\)-+_=/.,?'":]\n\ndefine Level Display: (title)\nif <(Editor) = [0]> then\n    set [level title v] to (title)\nelse\n    set [level title v] to (join (title) (join [ - ] [Editor]))\nend\n\nwhen [r v] key pressed\nif <(Project State) > []> then\n    if <(Game State) > []> then\n        set [camera x v] to [0]\n        set [camera y v] to [0]\n        Game Start\n        Spawn\n    end\nend\n\ndefine Print Text: (text) at (x) (y) Size: (size) Color: (col) (sat) (bright) Thickness: (thickness) Width: (width) Height: (height) Spacing: (spacing)\nSetup Chars\nSet Pen Size to (((size) / (4.5)) * (thickness))\nSet Pen Color to (col) (sat) (bright)\nset pen (transparency v) to (0)\nset [xint v] to (x)\nset [ilength v] to [0]\nset [text v] to [1]\nrepeat (length of [text v])\n    change [ilength v] by (1)\n    set [iletter v] to [0]\n    repeat until <<(letter (iLength) of (text)) = (letter (iLetter) of (Characters))> or <(iLetter) > (length of [text v])>>\n        change [iletter v] by (1)\n    end\n    if <(iLetter) < ((length of (Characters)) + (1))> then\n        set [idetect v] to [0]\n        set [detectxy v] to [1]\n        repeat (length of (item (iLetter) of [text v]))\n            change [idetect v] by (1)\n            if <(letter (iDetect) of (item (iLetter) of [text v])) = [/]> then\n                set [text v] to (() - (Text))\n                if <(Text) = [1]> then\n                    Pen Down\n                else\n                    Pen Up\n                end\n            else\n                set [detectxy v] to (() - (DetectXY))\n                if <(DetectXY) = [1]> then\n                    set [writey v] to ((y) + ((((size) * (height)) * (0.2)) * (letter (iDetect) of (item (iLetter) of [text v]))))\n                    go to x: ((WriteX) - (Camera X)) y: ((WriteY) - (Camera Y))\n                else\n                    set [writex v] to ((xInt) + ((((size) * (width)) * (0.2)) * (letter (iDetect) of (item (iLetter) of [text v]))))\n                end\n            end\n        end\n    end\n    change [xint v] by ((width) * ((size) * (((spacing) * (0.5)) + (1))))\nend\nPen Up\n\ndefine _Print tMoving Text: (text) at (x) (y) Size: (size) Color: (col) (sat) (bright) Thickness: (thickness) Width: (width) Height: (height) Spacing: (spacing) Speed: (speed) Distance: (distance) Move: (move?)\nset [movetx v] to (((x) + (distance)) + (([sin v] of ((Frame) * (speed)) ) * (distance)))\nset [movety v] to (((y) + (distance)) + (([sin v] of ((Frame) * (speed)) ) * (distance)))\nif < (move?) contains [h]?> then\n    Print Text: (text) at (MoveTX) (y) Size: (size) Color: (col) (sat) (bright) Thickness: (thickness) Width: (width) Height: (height) Spacing: (spacing)\nend\nif < (move?) contains [v]?> then\n    Print Text: (text) at (x) (MoveTY) Size: (size) Color: (col) (sat) (bright) Thickness: (thickness) Width: (width) Height: (height) Spacing: (spacing)\nend\n\ndefine Level 1\nLevel Display: [Yikes! Spikes!]\nLevel Display: [Bright Beginnings]\n_Print Text: [Level 1] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Jump!] at: [415] [75] Size: [11] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Level from [300] [0] to [300] [-45]\nDraw Level from [300] [-45] to [600] [-45]\nDraw Level from [400] [0] to [400] [40]\nDraw Level from [400] [40] to [500] [40]\nDraw Level from [500] [40] to [500] [-5]\nDraw Level from [500] [-5] to [600] [-5]\nDraw Level from [600] [-5] to [600] [-45]\nDraw Level from [300] [0] to [400] [0]\nDraw Box at [850] [-50] and Type: [1] With Length: [200] Width: [30] Height: []\n_Print Text: [Don't touch] at: [740] [50] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Red] at: [920] [50] Size: [10] Color: [] [100] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Spike at [835] [-35] [30] [30] [Up] [1]\nDraw Spike at [869] [-35] [30] [30] [Up] [1]\nDraw Box at [1100] [10] and Type: [1] With Length: [100] Width: [25] Height: []\nDraw Box at [1300] [10] and Type: [1] With Length: [100] Width: [25] Height: []\nDraw Box at [1500] [10] and Type: [1] With Length: [100] Width: [25] Height: []\n_Print Text: [Green Flag] at: [1435] [120] Size: [10] Color: [33] [100] [78] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [1500] [25]\n\ndefine Level 2\nLevel Display: [Stair-Gazing]\n_Print Text: [Level 2] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [200] Width: [50] Height: []\n_Print Text: [My Old Enemy...] at: [265] [-55] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [0.95]\n_Print Text: [Stairs!] at: [275] [-120] Size: [20] Color: [] [] [100] Thickness: [0.7] Width: [1] Height: [1] Spacing: [1]\nDraw Level from [250] [-25] to [310] [-25]\nDraw Level from [250] [-25] to [250] [-75]\nDraw Level from [250] [-75] to [490] [-75]\nDraw Level from [310] [-25] to [310] [25]\nDraw Level from [310] [25] to [370] [25]\nDraw Level from [370] [25] to [370] [75]\nDraw Level from [370] [75] to [430] [75]\nDraw Level from [430] [75] to [430] [125]\nDraw Level from [430] [125] to [490] [125]\nDraw Level from [490] [125] to [490] [-75]\nDraw Box at [675] [110] and Type: [1] With Length: [150] Width: [30] Height: []\nDraw Spike at [675] [125] [30] [30] [Up] [1]\nDraw Box at [950] [155] and Type: [1] With Length: [150] Width: [30] Height: []\nDraw Spike at [950] [170] [30] [30] [Up] [1]\nDraw Box at [1225] [200] and Type: [1] With Length: [150] Width: [30] Height: []\nDraw Spike at [1225] [215] [30] [30] [Up] [1]\n_Print Text: [Drop!] at: [1325] [300] Size: [13] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1470] [-115] and Type: [1] With Length: [300] Width: [35] Height: []\n_Print Text: [Avoid] at: [1465] [30] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Lava!] at: [1460] [0] Size: [13] Color: [] [100] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Danger from [1455] [-97.5] to [1550] [-97.5]\nDraw Box at [1725] [-60] and Type: [1] With Length: [60] Width: [25] Height: []\nDraw Box at [1840] [0] and Type: [1] With Length: [60] Width: [25] Height: []\nDraw Box at [1725] [65] and Type: [1] With Length: [60] Width: [25] Height: []\nDraw Box at [1840] [130] and Type: [1] With Length: [60] Width: [25] Height: []\nDraw Box at [1725] [195] and Type: [1] With Length: [60] Width: [25] Height: []\nDraw Box at [1840] [260] and Type: [1] With Length: [60] Width: [25] Height: []\nDraw Box at [2000] [300] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Green Flag] at: [1935] [400] Size: [10] Color: [33] [100] [79] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [2000] [315]\n\ndefine Level 3\nLevel Display: [Tramp-topia]\n_Print Text: [Level 3] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Box at [350] [-50] and Type: [1] With Length: [100] Width: [35] Height: []\n_Print Text: [Trampoline!] at: [525] [20] Size: [10] Color: [15] [100] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [600] [-50] and Type: [3] With Length: [100] Width: [35] Height: [40]\n_Print Text: [Woah!] at: [655] [450] Size: [14] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [700] [330] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [900] [380] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Let's Try That] at: [1000] [550] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [One More Time!] at: [985] [520] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1.2] Height: [1] Spacing: [1]\nDraw Box at [1100] [430] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Drop!] at: [1230] [450] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1300] [200] and Type: [3] With Length: [250] Width: [30] Height: [40]\n_Print Text: [So Fun xD] at: [1525] [650] Size: [11] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1700] [525] and Type: [1] With Length: [500] Width: [30] Height: []\nDraw Spike at [1545] [540] [30] [30] [Up] [1]\nDraw Spike at [1655] [540] [30] [30] [Up] [1]\nDraw Spike at [1765] [540] [30] [30] [Up] [1]\nDraw Spike at [1875] [540] [30] [30] [Up] [1]\nDraw Box at [2125] [525] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Green Flag] at: [2065] [640] Size: [10] Color: [33] [100] [79] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [2125] [540]\n\ndefine Level 4\nLevel Display: [Moving Mania]\n_Print Text: [Level 4] at: [-75] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\n_Print Text: [Moving Platforms!] at: [230] [85] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Moving Box at [450] [-50] [h] with Length: [100] Width: [35] and Speed: [2] Distance: [-150] Type: [1] Delay: []\nDraw Box at [600] [-50] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Box at [800] [-50] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Moving Box at [700] [-50] [l] with Length: [100] Width: [35] and Speed: [5] Distance: [9] Type: [2] Delay: []\n_Print Text: [Floating Lava!] at: [600] [50] Size: [10] Color: [] [100] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [900] [-50] and Type: [3] With Length: [100] Width: [35] Height: [40]\nDraw Box at [1100] [300] and Type: [1] With Length: [200] Width: [30] Height: []\nDraw Spike at [1084] [315] [30] [30] [Up] []\nDraw Spike at [1116] [315] [30] [30] [Up] []\nDraw Moving Box at [1250] [-65] [v] with Length: [100] Width: [30] and Speed: [2] Distance: [175.5] Type: [1] Delay: []\n_Print Text: [An Elevator!] at: [1150] [400] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1350] [-50] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1550] [-50] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [1450] [-47.5] [l] with Length: [100] Width: [35] and Speed: [5] Distance: [7] Type: [2] Delay: []\nDraw Box at [1700] [0] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1810] [60] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1700] [120] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1810] [180] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1700] [240] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1810] [300] and Type: [1] With Length: [50] Width: [20] Height: []\n_Print tMoving Text: [Moving Words!] at [1795] [350] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [0.6] Speed: [2] Distance: [150] Move: [h]\nDraw Moving Box at [1835] [300] [h] with Length: [100] Width: [20] and Speed: [2] Distance: [147.5] Type: [1] Delay: []\nDraw Box at [2280] [295] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Green Flag] at: [2210] [400] Size: [10] Color: [33] [100] [79] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [2280] [310]\n\ndefine Level 5\nLevel Display: [Level 5]\nLevel Display: [Danger Dilemma]\n_Print Text: [Level 5] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Moving Box at [150] [-50] [h] with Length: [100] Width: [35] and Speed: [4] Distance: [100] Type: [1] Delay: []\nDraw Box at [500] [-50] and Type: [1] With Length: [100] Width: [35] Height: []\n_Print Text: [Watch Out...] at: [630] [-55] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Danger] at: [590] [-87] Size: [10] Color: [] [100] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Incoming!] at: [690] [-87] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [700] [0] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [900] [0] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1100] [0] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [650] [40] [h] with Length: [75] Width: [25] and Speed: [1.5] Distance: [212.5] Type: [2] Delay: []\nDraw Box at [1250] [90] and Type: [3] With Length: [30] Width: [50] Height: [30]\nDraw Box at [700] [200] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [900] [200] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1100] [200] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [650] [240] [h] with Length: [75] Width: [25] and Speed: [1.5] Distance: [212.5] Type: [2] Delay: []\nDraw Box at [575] [290] and Type: [3] With Length: [30] Width: [50] Height: [30]\nDraw Box at [1250] [90] and Type: [3] With Length: [30] Width: [50] Height: [30]\nDraw Box at [700] [400] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [900] [400] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1100] [400] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [650] [440] [h] with Length: [75] Width: [25] and Speed: [1.5] Distance: [212.5] Type: [2] Delay: []\nDraw Box at [1350] [400] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1550] [400] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [1450] [400] [l] with Length: [100] Width: [30] and Speed: [5] Distance: [8] Type: [2] Delay: []\nDraw Moving Box at [1650] [85] [v] with Length: [100] Width: [30] and Speed: [2] Distance: [150] Type: [1] Delay: []\n_Print Text: [Wait for it...] at: [1570] [500] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1750] [100] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1950] [100] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [1850] [100] [l] with Length: [100] Width: [30] and Speed: [5] Distance: [8] Type: [2] Delay: []\nDraw Box at [2150] [100] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [2050] [100] [l] with Length: [100] Width: [30] and Speed: [5] Distance: [8] Type: [2] Delay: []\nDraw Box at [2500] [100] and Type: [1] With Length: [350] Width: [30] Height: []\n_Print Text: [Careful Now!] at: [2330] [30] Size: [12] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Moving Box at [2400] [120] [v] with Length: [25] Width: [60] and Speed: [10] Distance: [50] Type: [2] Delay: []\nDraw Moving Box at [2495] [220] [v] with Length: [25] Width: [60] and Speed: [10] Distance: [-50] Type: [2] Delay: []\nDraw Moving Box at [2590] [120] [v] with Length: [25] Width: [60] and Speed: [10] Distance: [50] Type: [2] Delay: []\nDraw Moving Box at [2675] [100] [h] with Length: [100] Width: [30] and Speed: [3] Distance: [100] Type: [1] Delay: []\nDraw Box at [3025] [100] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [3250] [100] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [3135] [80] [v] with Length: [25] Width: [60] and Speed: [5] Distance: [50] Type: [2] Delay: []\n_Print Text: [Green Flag] at: [3190] [200] Size: [10] Color: [33] [100] [78] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [3250] [115]\n\ndefine Level 6\nLevel Display: [Slippery Slopes]\n_Print Text: [Level 6] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Box at [300] [-50] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Moving Box at [200] [-50] [l] with Length: [100] Width: [35] and Speed: [5] Distance: [8.5] Type: [2] Delay: []\nDraw Moving Box at [350] [-50] [h] with Length: [100] Width: [35] and Speed: [3] Distance: [100] Type: [1] Delay: []\nDraw Box at [700] [-50] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Box at [925] [-50] and Type: [1] With Length: [50] Width: [35] Height: []\nDraw Box at [825] [-50] and Type: [4] With Length: [150] Width: [35] Height: []\n_Print Text: [Ice] at: [718] [50] Size: [10] Color: [52] [55] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Is Slippery!] at: [775] [50] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Moving Box at [1000] [-67.5] [v] with Length: [100] Width: [35] and Speed: [2] Distance: [100] Type: [1] Delay: []\nDraw Box at [1137.5] [150] and Type: [1] With Length: [175] Width: [35] Height: []\nDraw Spike at [1150] [167.5] [30] [30] [Up] [1]\n_Print Text: [Critical] at: [1340] [290] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Jump!] at: [1362.5] [260] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1275] [150] and Type: [4] With Length: [100] Width: [35] Height: []\nDraw Box at [1525] [150] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Moving Box at [1400] [150] [l] with Length: [150] Width: [35] and Speed: [5] Distance: [8.5] Type: [2] Delay: []\nDraw Box at [1660] [90] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1600] [30] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1660] [-30] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1600] [-90] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Box at [1660] [-150] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Moving Box at [1685] [-150] [h] with Length: [100] Width: [20] and Speed: [2] Distance: [150] Type: [1] Delay: []\nDraw Box at [2135] [-150] and Type: [1] With Length: [100] Width: [20] Height: []\nDraw Box at [2250] [-90] and Type: [3] With Length: [20] Width: [20] Height: [40]\nDraw Box at [2350] [270] and Type: [4] With Length: [100] Width: [35] Height: []\nDraw Box at [2500] [270] and Type: [4] With Length: [100] Width: [35] Height: []\nDraw Box at [2650] [270] and Type: [4] With Length: [100] Width: [35] Height: []\nDraw Moving Box at [2425] [270] [l] with Length: [50] Width: [35] and Speed: [5] Distance: [8.5] Type: [2] Delay: []\nDraw Moving Box at [2575] [270] [l] with Length: [50] Width: [35] and Speed: [5] Distance: [8.5] Type: [2] Delay: []\n_Print Text: [So Slippery...] at: [2400] [200] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Phew...] at: [2810] [400] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [That was Hard!] at: [2755] [370] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [2850] [270] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Moving Box at [2950] [252.5] [v] with Length: [100] Width: [35] and Speed: [2] Distance: [-100] Type: [1] Delay: []\nDraw Box at [3050] [70] and Type: [1] With Length: [100] Width: [35] Height: []\n_Print Text: [Double] at: [3020] [-20] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Decker!] at: [3015] [-50] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Moving Box at [2950] [52.5] [v] with Length: [100] Width: [35] and Speed: [2] Distance: [-100] Type: [1] Delay: []\nDraw Box at [3050] [-130] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Box at [3450] [-130] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Box at [3250] [-130] and Type: [4] With Length: [300] Width: [35] Height: []\nDraw Spike at [3180] [-112.5] [30] [30] [Up] []\nDraw Spike at [3320] [-112.5] [30] [30] [Up] []\nDraw Level from [3225] [-112.5] to [3275] [-112.5]\nDraw Box at [3550] [-130] and Type: [3] With Length: [100] Width: [35] Height: [40]\nDraw Box at [3650] [210] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Green Flag] at: [3590] [310] Size: [10] Color: [33] [100] [78] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [3650] [225]\n\nwhen I receive [game v]\ndelete all of [features v]\nadd [Spikes] to [features v]\nadd [Stairs] to [features v]\nadd [Trampolines] to [features v]\nadd [Moving Platforms and Floating Lava and Elevators] to [features v]\nadd [Moving Danger] to [features v]\nadd [Ice] to [features v]\nadd [Slime] to [features v]\nadd [Moving Ice, Moving Slime] to [features v]\nadd [Moving Enemies \(Square Danger\)] to [features v]\nadd [Lava Fill] to [features v]\n\ndefine Tiny (decimal)\nset [tiny v] to [0.]\nrepeat ((decimal) - (1))\n    set [tiny v] to (join (Tiny) [0])\nend\nset [tiny v] to (join (Tiny) [1])\n\nwhen I receive [game v]\ndelete all of [type v]\nadd [Platforms] to [type v]\nadd [Danger] to [type v]\nadd [Trampoline] to [type v]\nadd [Ice] to [type v]\nadd [Slime] to [type v]\nadd [Flag] to [type v]\nColors List (length of [type v])\n\ndefine Colors List (types)\ndelete all of [colors v]\nrepeat (types)\n    add [] to [colors v]\nend\nreplace item (item # of [Platforms] in [type v]) of [colors v] with [000000100]\nreplace item (item # of [Danger] in [type v]) of [colors v] with [000100100]\nreplace item (item # of [Trampoline] in [type v]) of [colors v] with [015100100]\nreplace item (item # of [Ice] in [type v]) of [colors v] with [053055099]\nreplace item (item # of [Slime] in [type v]) of [colors v] with [083084087]\nreplace item (item # of [Flag] in [type v]) of [colors v] with [033100079]\n\nwhen [t v] key pressed\nif <(username) = [ImRohan10187]> then\n    stop [other scripts in sprite v]\n    Thumbnail\n    stop [all v]\nend\n\ndefine Thumbnail\nif <(Thumbnail?) > [0]> then\n    set [project state v] to []\n    Erase All\n    Pen Up\n    Go to x: [0] y: [0]\n    switch costume to (thumbnail v)\n    stamp\n    switch costume to (pen v)\n    Clear Data\n    set [thumbnail? v] to [0]\n    hide variable [level title v]\n    hide variable [type v]\nend\n\ndefine Level 7\nLevel Display: [Stagnant Slime]\n_Print Text: [Level 7] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Box at [430] [0] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Box at [430] [0] and Type: [5] With Length: [175] Width: [35] Height: []\n_Print Text: [This is] at: [355] [-8] Size: [10] Color: [] [] [100] Thickness: [1] Width: [0.8] Height: [2] Spacing: [1]\n_Print Text: [Slime] at: [447] [-8] Size: [10] Color: [83] [84] [100] Thickness: [1] Width: [0.8] Height: [2] Spacing: [1]\n_Print Text: [So Slow.....] at: [300] [-47] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1.5] Height: [1] Spacing: [1.1]\nDraw Box at [750] [-50] and Type: [1] With Length: [75] Width: [35] Height: []\nDraw Box at [1025] [-50] and Type: [1] With Length: [75] Width: [35] Height: []\nDraw Box at [887.5] [-50] and Type: [5] With Length: [200] Width: [35] Height: []\n_Print Text: [No Jumping :\(] at: [800] [-56.5] Size: [12] Color: [] [] [100] Thickness: [1] Width: [0.83] Height: [1.3] Spacing: [0.9]\n_Print Text: [Slime] at: [780] [-100] Size: [10] Color: [83] [84] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [is Sticky] at: [865] [-100] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [So you can't Jump] at: [765] [-130] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [1220] [0] and Type: [3] With Length: [100] Width: [35] Height: [40]\nDraw Box at [1450] [370] and Type: [4] With Length: [100] Width: [35] Height: []\nDraw Box at [1350] [370] and Type: [5] With Length: [100] Width: [35] Height: []\nDraw Box at [1550] [370] and Type: [5] With Length: [100] Width: [35] Height: []\nDraw Box at [1990] [370] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Moving Box at [1600] [370] [h] with Length: [100] Width: [35] and Speed: [3] Distance: [120] Type: [1] Delay: []\n_Print Text: [Did you miss it?] at: [1897] [500] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Comment Down!] at: [1920] [470] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [2190] [370] and Type: [4] With Length: [100] Width: [35] Height: []\nDraw Box at [2295] [370] and Type: [5] With Length: [110] Width: [35] Height: []\nDraw Moving Box at [2090] [370] [l] with Length: [100] Width: [35] and Speed: [5] Distance: [8.5] Type: [2] Delay: []\nDraw Moving Box at [2400] [355] [v] with Length: [100] Width: [35] and Speed: [2] Distance: [-100] Type: [1] Delay: []\nDraw Moving Box at [2500] [-45] [v] with Length: [100] Width: [35] and Speed: [2] Distance: [100] Type: [1] Delay: []\nDraw Moving Box at [2550] [-27.5] [h] with Length: [100] Width: [35] and Speed: [2] Distance: [150] Type: [1] Delay: []\n_Print Text: [This is Annoying xD] at: [2960] [30] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [3300] [-27.5] and Type: [1] With Length: [100] Width: [35] Height: []\nDraw Box at [3100] [-27.5] and Type: [5] With Length: [300] Width: [35] Height: []\nDraw Box at [3450] [20] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [3550] [80] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [3450] [140] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [3550] [200] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [3450] [260] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [3550] [320] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Level from [3700] [320] to [3750] [320]\nDraw Level from [3700] [320] to [3700] [100]\nDraw Level from [3750] [320] to [3750] [150]\nDraw Level from [3750] [150] to [3950] [150]\nDraw Level from [3950] [150] to [3950] [225]\nDraw Level from [3950] [225] to [4000] [225]\nDraw Level from [4000] [225] to [4000] [100]\nDraw Level from [3700] [100] to [4000] [100]\nDraw Box at [3860] [275] and Type: [1] With Length: [50] Width: [20] Height: []\nDraw Ice from [3700] [320] to [3750] [320]\nDraw Ice from [3835] [285] to [3885] [285]\nDraw Ice from [3950] [225] to [4000] [225]\nDraw Slime from [3750] [150] to [3900] [150]\nDraw Box at [4150] [200] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [4310] [200] and Type: [1] With Length: [20] Width: [30] Height: []\nDraw Box at [4250] [200] and Type: [5] With Length: [100] Width: [30] Height: []\nDraw Box at [4470] [200] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Moving Box at [4370] [200] [l] with Length: [100] Width: [30] and Speed: [5] Distance: [7.5] Type: [2] Delay: []\nDraw Box at [4700] [150] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Green Flag] at: [4635] [250] Size: [10] Color: [33] [100] [79] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [4700] [165]\n\ndefine Level 8\nLevel Display: [Let's Disco!]\nLevel Display: [Disco Dance!]\nLevel Display: [Disco!]\nLevel Display: [Ice n' Slime - Disco!]\nLevel Display: [Disco!]\n_Print Text: [Level 8] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\nDraw Box at [300] [0] and Type: [1] With Length: [100] Width: [35] Height: []\n_Print Text: [Disco!] at: [460] [70] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [500] [-50] and Type: ((4) + (Disco2)) With Length: [100] Width: [35] Height: []\nDraw Box at [700] [0] and Type: ((5) - (Disco2)) With Length: [100] Width: [35] Height: []\nDraw Box at [900] [-50] and Type: ((4) + (Disco2)) With Length: [100] Width: [35] Height: []\nDraw Box at [1100] [0] and Type: ((5) - (Disco2)) With Length: [100] Width: [35] Height: []\nDraw Box at [1250] [50] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [1360] [110] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [1250] [170] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [1360] [230] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [1250] [290] and Type: [1] With Length: [50] Width: [25] Height: []\nDraw Box at [1360] [350] and Type: [1] With Length: [50] Width: [25] Height: []\n_Print Text: [Sticky n' Slippery] at: [1395] [420] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Moving Box at [1385] [350] [h] with Length: [100] Width: [25] and Speed: [3] Distance: [75] Type: ((4) + (Disco2)) Delay: []\nDraw Box at [1685] [348.5] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1835] [348.5] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [1985] [348.5] and Type: [1] With Length: [100] Width: [30] Height: []\nDraw Box at [2135] [348.5] and Type: [1] With Length: [100] Width: [35] Height: []\n_Print Text: [Wow!] at: [1500] [450] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Moving Box at [1760] [348.5] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: []\nDraw Moving Box at [1910] [348.5] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [10]\nDraw Moving Box at [2060] [348.5] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [20]\nDraw Box at [2375] [40] and Type: [1] With Length: [100] Width: [30] Height: []\nif <(Disco2) = [0]> then\n    _Print Text: [Sometimes Normal, Sometimes Lava...] at: [1920] [295] Size: [11] Color: [] [] [100] Thickness: [1] Width: [0.65] Height: [1] Spacing: [1]\nelse\n    _Print Text: [Sometimes Normal, Sometimes Lava...] at: [1920] [295] Size: [11] Color: [] [100] [100] Thickness: [1] Width: [0.65] Height: [1] Spacing: [1]\nend\nDraw Box at [2215] [250] and Type: ((1) + (Platform/Danger Disco)) With Length: [50] Width: [30] Height: []\nDraw Box at [2300] [180] and Type: ((1) + (Platform/Danger Disco)) With Length: [50] Width: [30] Height: []\nDraw Box at [2215] [110] and Type: ((1) + (Platform/Danger Disco)) With Length: [50] Width: [30] Height: []\nDraw Box at [2300] [40] and Type: ((1) + (Platform/Danger Disco)) With Length: [50] Width: [30] Height: []\nDraw Moving Box at [2425] [40] [h] with Length: [100] Width: [30] and Speed: [3] Distance: [100] Type: [1] Delay: []\nDraw Box at [2580] [80] and Type: [2] With Length: [20] Width: [20] Height: []\nDraw Box at [2775] [40] and Type: [1] With Length: [100] Width: [30] Height: []\nif <(Disco2) = [0]> then\n    _Print Text: [I am a Disco Dancer!] at: [2980] [270] Size: [10] Color: [83] [84] [87] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nelse\n    _Print Text: [I am a Disco Dancer!] at: [2980] [270] Size: [10] Color: [52] [55] [99] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nend\nDraw Moving Box at [2850] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: []\nDraw Moving Box at [2900] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [5]\nDraw Moving Box at [2950] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [10]\nDraw Moving Box at [3000] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [15]\nDraw Moving Box at [3050] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [20]\nDraw Moving Box at [3100] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [25]\nDraw Moving Box at [3150] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [30]\nDraw Moving Box at [3200] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [35]\nDraw Moving Box at [3250] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [40]\nDraw Moving Box at [3300] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [45]\nDraw Moving Box at [3350] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [50]\nDraw Moving Box at [3400] [40] [l] with Length: [50] Width: [30] and Speed: [3] Distance: [75] Type: ((5) - (Disco2)) Delay: [55]\nDraw Box at [3600] [40] and Type: [1] With Length: [100] Width: [30] Height: []\n_Print Text: [Green Flag] at: [3532] [135] Size: [10] Color: [33] [100] [78] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Flag at [3600] [55]\n\n_Print Text: [] at: [] [] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n\ndefine Level 9\nLevel Display: [Level 9]\n_Print Text: [Level 9] at: [-70] [85] Size: [15] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [100] [-50] and Type: [1] With Length: [500] Width: [35] Height: []\nDraw Moving Box at [120] [-16] [h] with Length: [22] Width: [22] and Speed: [3] Distance: [100] Type: [2] Delay: []\nDraw Moving Box at [327.5] [-16] [h] with Length: [22] Width: [22] and Speed: [3] Distance: [-100] Type: [2] Delay: []\nDraw Box at [225] [-50] and Type: ((4) + (Disco2)) With Length: [250] Width: [35] Height: []\nDraw Box at [] [] and Type: [] With Length: [] Width: [] Height: []\n\ndefine Thank You!!!\nDraw Line from [-160] [140] to [160] [140] <> [] []\n_Print Text: [Thank You for Playing!] at: [-160] [120] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\n_Print Text: [Please Love, Fave and Follow :\)] at: [-225] [85] Size: [10] Color: [] [] [100] Thickness: [1] Width: [1] Height: [1] Spacing: [1]\nDraw Box at [0] [-50] and Type: [1] With Length: [300] Width: [35] Height: []\n\nwhen [x v] key pressed\nif <(Project State) > []> then\n    change [level v] by (1)\n    Game Start\n    Spawn\nend\n\n