Ball Physics Platformer | 100% Pen

Instructions: ❰ LAG LINK ❱\nhttps://turbowarp.org/846715587\n\n❰ Part 2 Appears!! ❱\nhttps://scratch.mit.edu/projects/886985803/

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to ((_LEVEL) mod (2))\nend\n\n@Pen\n\ndefine Add Ball | Mass: (m) Elastic: (e) Position: (x) (y) Velocity: (xv) (yv) Radius: (r) Color: (c) Type: (type)\nadd (m) to [ball v]\nadd (e) to [ball v]\nadd (x) to [ball v]\nadd (y) to [ball v]\nadd (xv) to [ball v]\nadd (yv) to [ball v]\nadd (r) to [ball v]\nadd (c) to [ball v]\nadd (type) to [ball v]\n\nwhen flag clicked\nset [_level v] to [1]\nSetup Data\nReset\nforever\n    erase all\n    Render\n    Update\n    Player\n    Auto Zoom\nend\n\ndefine Delete Ball (index)\nrepeat (length of [\(ball infromation\) v])\n    delete ((index) + (1)) of [ball v]\nend\n\ndefine Check Collied Ball\nset [#other v] to [0]\nrepeat ((length of [ball v]) / (length of [\(ball infromation\) v]))\n    if <not <(#other) = (#ball)>> then\n        Get Vector from (item ((#ball) + (3)) of [ball v]) (item ((#ball) + (4)) of [ball v]) to (item ((#other) + (3)) of [ball v]) (item ((#other) + (4)) of [ball v])\n        Normalize Vector\n        if < (item ((#other) + (9)) of [ball v]) contains [magnetic]?> then\n            Magnetic Between Balls\n        end\n        set [depth v] to (((item ((#ball) + (7)) of [ball v]) + (item ((#other) + (7)) of [ball v])) - (distance))\n        if <(depth) > [0]> then\n            if <(#ball) = [0]> then\n                set [solid v] to [1]\n                if < (item ((#other) + (9)) of [ball v]) contains [small]?> then\n                    set [size v] to [10]\n                    Delete Ball (#other)\n                else\n                    if < (item ((#other) + (9)) of [ball v]) contains [normal]?> then\n                        set [size v] to [20]\n                        Delete Ball (#other)\n                    else\n                        if < (item ((#other) + (9)) of [ball v]) contains [big]?> then\n                            set [size v] to [30]\n                            Delete Ball (#other)\n                        else\n                            if < (item ((#other) + (9)) of [ball v]) contains [lava]?> then\n                                replace item (9) of [ball v] with [lava]\n                                Delete Ball (#other)\n                            end\n                        end\n                    end\n                end\n            end\n            set [depth v] to ((depth) / (2))\n            Change ((#ball) + (3)) by ((cos) * ((0) - (depth)))\n            Change ((#ball) + (4)) by ((sin) * ((0) - (depth)))\n            Change ((#other) + (3)) by ((cos) * (depth))\n            Change ((#other) + (4)) by ((sin) * (depth))\n            Calculate Ball Collided Velocity\n        end\n    end\n    change [#other v] by (length of [\(ball infromation\) v])\nend\n\ndefine Get Vector from (x1) (y1) to (x2) (y2)\nset [vector x v] to ((x2) - (x1))\nset [vector y v] to ((y2) - (y1))\nset [distance v] to ([sqrt v] of (((vector x) * (vector x)) + ((vector y) * (vector y))) )\n\ndefine Normalize Vector\nset [cos v] to ((vector x) / (distance))\nset [sin v] to ((vector y) / (distance))\n\ndefine Setup Data\nset [click distance v] to [10]\nset [platfrom radius v] to [10]\nset [_zoom v] to [1]\n\ndefine Player\nHandle Keys\nreplace item (7) of [ball v] with (((item (7) of [ball v]) * (0.8)) + ((size) * (0.2)))\n[ Player ] Horizental\n[ Player ] Vertical\n[ Player ] Heavy\nset [solid v] to [0]\n\ndefine Check Collide Platfrom\nset [#platfrom v] to [0]\nrepeat ((length of [platfrom v]) / (length of [\(platfrom information\) v]))\n    Get Vector from (item ((#platfrom) + (2)) of [platfrom v]) (item ((#platfrom) + (3)) of [platfrom v]) to (item ((#ball) + (3)) of [ball v]) (item ((#ball) + (4)) of [ball v])\n    set [projection v] to (((vector x) * (item ((#platfrom) + (6)) of [platfrom v])) + ((vector y) * (item ((#platfrom) + (7)) of [platfrom v])))\n    if <(projection) < [0]> then\n        set [projection v] to [0]\n    end\n    if <(projection) > (item ((#platfrom) + (8)) of [platfrom v])> then\n        set [projection v] to (item ((#platfrom) + (8)) of [platfrom v])\n    end\n    Collied Ball at Point ((item ((#platfrom) + (2)) of [platfrom v]) + ((projection) * (item ((#platfrom) + (6)) of [platfrom v]))) ((item ((#platfrom) + (3)) of [platfrom v]) + ((projection) * (item ((#platfrom) + (7)) of [platfrom v])))\n    change [#platfrom v] by (length of [\(platfrom information\) v])\nend\n\ndefine Add Platfrom | Elastic: (e) Start Position: (x1) (y1) End Position: (x2) (y2) Radius: (r) Color: (c) Type: (type)\nadd (e) to [platfrom v]\nadd (x1) to [platfrom v]\nadd (y1) to [platfrom v]\nadd (x2) to [platfrom v]\nadd (y2) to [platfrom v]\nGet Vector from (x1) (y1) to (x2) (y2)\nNormalize Vector\nadd (cos) to [platfrom v]\nadd (sin) to [platfrom v]\nadd (distance) to [platfrom v]\nadd (r) to [platfrom v]\nadd (c) to [platfrom v]\nadd (type) to [platfrom v]\n\ndefine Reset\nset [gravity v] to [-0.98]\nset [size v] to [20]\ndelete all of [ball v]\ndelete all of [platfrom v]\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\n\ndefine Convert (x) (y) to Draw Coordinates\nset [scroll x v] to (((x) - (target x)) / (_zoom))\nset [scroll y v] to (((y) - (target y)) / (_zoom))\n\ndefine Draw Convert Line from (x1) (y1) to (x2) (y2) with Radius (r)\nConvert (x1) (y1) to Draw Coordinates\nset [x1 v] to (scroll x)\nset [y1 v] to (scroll y)\nConvert (x2) (y2) to Draw Coordinates\npen up\nset pen size to ((2) * ((r) / (_zoom)))\nswitch costume to (position debug v)\ngo to x: (x1) y: (y1)\npen down\ngo to x: (scroll x) y: (scroll y)\nswitch costume to (render v)\n\ndefine Auto Zoom\nset [target y v] to (((target y) * (0.8)) + ((item (4) of [ball v]) * (0.2)))\nset [target x v] to (((target x) * (0.8)) + ((item (3) of [ball v]) * (0.2)))\nset [_zoom v] to (((_zoom) * (0.95)) + (0.05))\nif <key (z v) pressed?> then\n    set [_zoom v] to (((_zoom) * (0.95)) + (0.15))\nend\nif <<([abs v] of (scroll y) ) > [700]> or <key (r v) pressed?>> then\n    Reset\nend\n\ndefine Handle Keys\nset [_left v] to <<key (left arrow v) pressed?> or <key (a v) pressed?>>\nset [_right v] to <<key (right arrow v) pressed?> or <key (d v) pressed?>>\nset [_up v] to <<key (up arrow v) pressed?> or <key (w v) pressed?>>\nset [_down v] to <<key (down arrow v) pressed?> or <key (s v) pressed?>>\nset [_space v] to <key (space v) pressed?>\nset [x axis v] to ((_right) - (_left))\nset [y axis v] to ((_up) - (_down))\n\ndefine Level 1\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [0] [20] Velocity: [0] [0] Radius: [20] Color: (join [0x] [0080FF]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [300] [-20] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [-100] [220] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [950] [120] End Position: [950] [200] Radius: [20] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [750] [120] End Position: [750] [200] Radius: [20] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [300] [-20] End Position: [550] [120] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [550] [120] End Position: [650] [120] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [650] [120] End Position: [1250] [120] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1250] [120] End Position: [1450] [-50] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1450] [-50] End Position: [1800] [-50] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1800] [-50] End Position: [1800] [150] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [60] Elastic: [0.3] Position: [1200] [160] Velocity: [0] [0] Radius: [40] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1800] [150] End Position: [2100] [150] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2100] [160] End Position: [2400] [0] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2100] [230] End Position: [2400] [70] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2100] [230] End Position: [2100] [530] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2400] [70] End Position: [2400] [530] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2400] [-10] End Position: [2700] [-10] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2700] [-100] End Position: [2700] [120] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [30] Elastic: [0.3] Position: [2490] [10] Velocity: [0] [0] Radius: [25] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [5] Elastic: [0.3] Position: [2550] [0] Velocity: [0] [0] Radius: [13] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [20] Elastic: [0.3] Position: [2600] [5] Velocity: [0] [0] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2700] [130] End Position: [2900] [130] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2900] [130] End Position: [3100] [100] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3160] [40] End Position: [3160] [400] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3160] [40] End Position: [2960] [10] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2700] [-100] End Position: [3100] [-110] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [70] Elastic: [0.3] Position: [2900] [-30] Velocity: [0] [0] Radius: [60] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3100] [-110] End Position: [3400] [-110] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3600] [-110] End Position: [3600] [90] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3560] [-110] End Position: [3600] [-110] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.9] Start Position: [3400] [-110] End Position: [3560] [-110] Radius: [10] Color: (join [0x] [2894FF]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3600] [90] End Position: [3900] [90] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3900] [90] End Position: [3900] [290] Radius: [20] Color: (join [0x] [00EC00]) Type: [finish]\n\ndefine Level 2\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [0] [10] Velocity: [0] [0] Radius: [20] Color: (join [0x] [0080FF]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [300] [-20] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [-100] [220] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [300] [-20] End Position: [600] [40] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [20] Elastic: [0.1] Position: [150] [60] Velocity: [0] [0] Radius: [70] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1200] [40] End Position: [1500] [40] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [600] [-40] End Position: [1200] [-40] Radius: [10] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [600] [40] End Position: [600] [-40] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1200] [-40] End Position: [1200] [40] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1500] [40] End Position: [1500] [-200] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1560] [30] End Position: [1560] [30] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1620] [20] End Position: [1620] [20] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1680] [10] End Position: [1680] [10] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1740] [0] End Position: [2000] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1500] [100] Velocity: [0] [0] Radius: [26] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1560] [90] Velocity: [0] [0] Radius: [26] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1620] [80] Velocity: [0] [0] Radius: [26] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1680] [70] Velocity: [0] [0] Radius: [26] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2000] [0] End Position: [2000] [100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2000] [100] End Position: [2200] [100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2200] [100] End Position: [2500] [-100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2500] [-100] End Position: [2940] [-100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2400] [80] End Position: [2500] [15] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2400] [80] End Position: [2400] [400] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2500] [15] End Position: [2500] [400] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [2100] [150] Velocity: [0] [0] Radius: [50] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2500] [60] End Position: [2600] [60] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [2633] [70] Velocity: [0] [0] Radius: [32] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2670] [60] End Position: [2700] [60] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [20] Elastic: [0.2] Position: [2680] [80] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2700] [60] End Position: [2900] [40] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2950] [40] End Position: [2950] [40] Radius: [5] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3000] [40] End Position: [3000] [40] Radius: [5] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3050] [40] End Position: [3050] [40] Radius: [5] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3100] [40] End Position: [3100] [40] Radius: [5] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3150] [40] End Position: [3150] [40] Radius: [5] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [2950] [50] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [3000] [50] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [3050] [50] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [3100] [50] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [3150] [50] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3200] [-20] End Position: [3200] [200] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2940] [-140] End Position: [3200] [-140] Radius: [10] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [2940] [-100] End Position: [2940] [-140] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3200] [-140] End Position: [3200] [-100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3200] [-100] End Position: [3500] [-100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0] Start Position: [3500] [100] End Position: [3900] [100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [10] Elastic: [0] Position: [3600] [50] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [10] Elastic: [0] Position: [3800] [20] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3900] [-100] End Position: [4200] [-100] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [1.1] Start Position: [3500] [-100] End Position: [3900] [-100] Radius: [10] Color: (join [0x] [2894FF]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [4200] [-100] End Position: [4200] [100] Radius: [10] Color: (join [0x] [00EC00]) Type: [finish]\n\ndefine Level 3\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [0] [20] Velocity: [0] [0] Radius: [20] Color: (join [0x] [0080FF]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [300] [-20] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [-100] [220] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [200] [150] End Position: [215] [150] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [215] [150] End Position: [400] [130] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [320] [-20] End Position: [600] [40] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [130] [150] End Position: [130] [500] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [170] [170] Velocity: [0] [0] Radius: [30] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [5] Elastic: [0.2] Position: [211] [170] Velocity: [0] [0] Radius: [10] Color: (join [0x] [00EC00]) Type: [small]\nAdd Platfrom | Elastic: [0.2] Start Position: [440] [130] End Position: [440] [500] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [651] [-92] End Position: [651] [-92] Radius: [150] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [440] [130] End Position: [700] [180] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [850] [158] End Position: [850] [158] Radius: [150] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [950] [-85] End Position: [950] [-85] Radius: [90] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [750] [-15] End Position: [900] [-25] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [5] Elastic: [0.2] Position: [1000] [20] Velocity: [0] [0] Radius: [10] Color: (join [0x] [921AFF]) Type: [normal]\nAdd Platfrom | Elastic: [0.2] Start Position: [950] [-15] End Position: [1200] [-5] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [950] [150] End Position: [1250] [150] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1200] [-50] End Position: [1180] [50] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1200] [-30] End Position: [1360] [-20] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1250] [160] End Position: [1270] [60] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1380] [40] End Position: [1360] [-40] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1380] [40] End Position: [1700] [0] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [100] Elastic: [0.2] Position: [1350] [120] Velocity: [0] [0] Radius: [80] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1850] [-20] End Position: [1950] [150] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1950] [150] End Position: [2200] [0] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2050] [140] End Position: [2200] [50] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2050] [140] End Position: [2200] [50] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2250] [220] End Position: [2600] [190] Radius: [10] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0] Start Position: [2300] [305] End Position: [2600] [280] Radius: [10] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Ball | Mass: [1] Elastic: [0.2] Position: [1950] [180] Velocity: [0] [0] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [1.3] Start Position: [2200] [0] End Position: [2250] [0] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2200] [50] End Position: [2200] [200] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2200] [200] End Position: [2190] [200] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2050] [140] End Position: [2190] [200] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2250] [0] End Position: [2250] [220] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [1] Elastic: [0.2] Position: [2200] [210] Velocity: [0] [0] Radius: [10] Color: (join [0x] [FF8000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [2250] [220] End Position: [2210] [260] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2050] [190] End Position: [2210] [260] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2300] [305] End Position: [2300] [700] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2600] [280] End Position: [2600] [700] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2600] [190] End Position: [2800] [190] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2800] [190] End Position: [3100] [150] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2800] [230] End Position: [3100] [190] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [2830] [230] End Position: [2830] [700] Radius: [10] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [1] Elastic: [0.2] Position: [2820] [230] Velocity: [0] [0] Radius: [10] Color: (join [0x] [00EC00]) Type: [small]\nAdd Platfrom | Elastic: [0.2] Start Position: [3500] [140] End Position: [3500] [340] Radius: [20] Color: (join [0x] [00EC00]) Type: [finish]\nAdd Platfrom | Elastic: [0.2] Start Position: [3100] [140] End Position: [3500] [140] Radius: [20] Color: (join [0x] [4F4F4F]) Type: []\n\ndefine Level 4\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [0] [10] Velocity: [0] [0] Radius: [20] Color: (join [0x] [0080FF]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [200] [-20] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-100] [-20] End Position: [-100] [220] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [200] [-20] End Position: [250] [-20] Radius: [10] Color: (join [0x] [73BF00]) Type: [up]\nAdd Platfrom | Elastic: [0.2] Start Position: [200] [190] End Position: [250] [200] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [250] [200] End Position: [800] [200] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [800] [200] End Position: [850] [200] Radius: [10] Color: (join [0x] [73BF00]) Type: [down]\nAdd Platfrom | Elastic: [0.2] Start Position: [450] [200] End Position: [450] [150] Radius: [20] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [1000] [200] End Position: [1300] [200] Radius: [10] Color: (join [0x] [3C3C3C]) Type: [none]\nAdd Platfrom | Elastic: [0.2] Start Position: [1000] [200] End Position: [1000] [-20] Radius: [10] Color: (join [0x] [3C3C3C]) Type: [none]\nAdd Platfrom | Elastic: [0.2] Start Position: [1300] [200] End Position: [1300] [-20] Radius: [10] Color: (join [0x] [3C3C3C]) Type: [none]\nAdd Platfrom | Elastic: [0.2] Start Position: [650] [200] End Position: [650] [150] Radius: [20] Color: (join [0x] [FF0000]) Type: [lava]\nAdd Platfrom | Elastic: [0.2] Start Position: [1510] [-30] End Position: [1510] [400] Radius: [5] Color: (join [0x] [3C3C3C]) Type: [nograv none]\nAdd Platfrom | Elastic: [0.2] Start Position: [1500] [-30] End Position: [1500] [400] Radius: [5] Color: (join [0x] [3C3C3C]) Type: [down none]\nAdd Platfrom | Elastic: [0.2] Start Position: [2110] [-30] End Position: [2110] [400] Radius: [5] Color: (join [0x] [3C3C3C]) Type: [down none]\nAdd Platfrom | Elastic: [0.2] Start Position: [2100] [-30] End Position: [2100] [400] Radius: [5] Color: (join [0x] [3C3C3C]) Type: [nograv none]\nAdd Platfrom | Elastic: [0.2] Start Position: [800] [-20] End Position: [850] [-30] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [1500] [400] End Position: [2110] [400] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [850] [-30] End Position: [2300] [-30] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1090] [30] Velocity: [0] [0] Radius: [11] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1100] [20] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1110] [40] Velocity: [0] [0] Radius: [12] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1130] [50] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1150] [70] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1130] [30] Velocity: [0] [0] Radius: [13] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1120] [20] Velocity: [0] [0] Radius: [12] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [1125] [50] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1800] [200] Velocity: [0] [0] Radius: [90] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1850] [100] Velocity: [0] [0] Radius: [50] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [2000] [200] Velocity: [0] [0] Radius: [80] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1900] [100] Velocity: [0] [0] Radius: [60] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1800] [300] Velocity: [0] [0] Radius: [70] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1900] [300] Velocity: [0] [0] Radius: [50] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1700] [300] Velocity: [0] [0] Radius: [80] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [1700] [100] Velocity: [0] [0] Radius: [60] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [50] Elastic: [0.2] Position: [2000] [100] Velocity: [0] [0] Radius: [50] Color: (join [0x] [D0D0D0]) Type: [nograv]\nAdd Ball | Mass: [1] Elastic: [0.2] Position: [1800] [100] Velocity: [0] [0] Radius: [10] Color: (join [0x] [00EC00]) Type: [nograv small]\nAdd Platfrom | Elastic: [0.2] Start Position: [2300] [-30] End Position: [2600] [30] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Ball | Mass: [20] Elastic: [0.2] Position: [2200] [100] Velocity: [0] [0] Radius: [10] Color: (join [0x] [921AFF]) Type: [normal gravity]\nAdd Ball | Mass: [5000] Elastic: [0.2] Position: [2700] [200] Velocity: [0] [0] Radius: [140] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [3000] Elastic: [0.2] Position: [3000] [400] Velocity: [0] [0] Radius: [120] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Platfrom | Elastic: [0.2] Start Position: [3159] [370] End Position: [3600] [370] Radius: [10] Color: (join [0x] [D0D0D0]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [3600] [370] End Position: [3600] [570] Radius: [10] Color: (join [0x] [00EC00]) Type: [finish]\n\ndefine Magnetic Between Balls\nif <(distance) < [200]> then\n    set [magnetic v] to (((20) * ((item ((#ball) + (1)) of [ball v]) * (item ((#other) + (1)) of [ball v]))) / ((distance) * (distance)))\n    Change ((#ball) + (5)) by (((magnetic) * (cos)) / (item ((#ball) + (1)) of [ball v]))\n    Change ((#ball) + (6)) by (((magnetic) * (sin)) / (item ((#ball) + (1)) of [ball v]))\n    Change ((#other) + (5)) by (((0) - ((magnetic) * (cos))) / (item ((#other) + (1)) of [ball v]))\n    Change ((#other) + (6)) by (((0) - ((magnetic) * (sin))) / (item ((#other) + (1)) of [ball v]))\nend\n\ndefine Platfrom Type\nif <(item ((#platfrom) + (11)) of [platfrom v]) = [finish]> then\n    change [_level v] by (1)\n    Reset\nend\nif <<(item ((#platfrom) + (11)) of [platfrom v]) = [lava]> and <not <(item (9) of [ball v]) = [lava]>>> then\n    Reset\nend\nif < (item ((#platfrom) + (11)) of [platfrom v]) contains [up]?> then\n    set [gravity v] to [0.98]\nend\nif < (item ((#platfrom) + (11)) of [platfrom v]) contains [down]?> then\n    set [gravity v] to [-0.98]\nend\nif < (item ((#platfrom) + (11)) of [platfrom v]) contains [nograv]?> then\n    set [gravity v] to [0]\nend\n\ndefine [ Player ] Horizental\nChange [5] by ((x axis) * ((item (7) of [ball v]) * (0.02)))\nif <(item (5) of [ball v]) > ((item (7) of [ball v]) * (0.5))> then\n    replace item (5) of [ball v] with ((item (7) of [ball v]) * (0.5))\nend\nif <(item (5) of [ball v]) < ((item (7) of [ball v]) * (-0.5))> then\n    replace item (5) of [ball v] with ((item (7) of [ball v]) * (-0.5))\nend\n\ndefine [ Player ] Vertical\nchange [falling v] by (1)\nif <(solid) > [0]> then\n    set [falling v] to [0]\nend\nif <<(y axis) > [0]> and <not <(GRAVITY) = [0]>>> then\n    if <<(falling) < [1]> or <(jumping) > [0]>> then\n        change [jumping v] by (1)\n        if <(jumping) < [11]> then\n            replace item (6) of [ball v] with ((item (7) of [ball v]) * (((GRAVITY) / (-0.98)) * (0.45)))\n        end\n    end\nelse\n    set [jumping v] to [0]\n    if <(y axis) < [0]> then\n        Change [6] by ((item (7) of [ball v]) * (((GRAVITY) / (-0.98)) * (-0.05)))\n    end\nend\nif <(GRAVITY) = [0]> then\n    Change [6] by ((y axis) * ((item (7) of [ball v]) * (0.02)))\n    if <(item (6) of [ball v]) > ((item (7) of [ball v]) * (0.5))> then\n        replace item (6) of [ball v] with ((item (7) of [ball v]) * (0.5))\n    end\n    if <(item (6) of [ball v]) < ((item (7) of [ball v]) * (-0.5))> then\n        replace item (6) of [ball v] with ((item (7) of [ball v]) * (-0.5))\n    end\nend\n\ndefine Render\nset [#ball v] to [0]\nrepeat ((length of [ball v]) / (length of [\(ball infromation\) v]))\n    pen up\n    set pen color to (item ((#ball) + (8)) of [ball v])\n    set pen size to (((2) * (item ((#ball) + (7)) of [ball v])) / (_zoom))\n    Convert (item ((#ball) + (3)) of [ball v]) (item ((#ball) + (4)) of [ball v]) to Draw Coordinates\n    switch costume to (position debug v)\n    go to x: (scroll x) y: (scroll y)\n    pen down\n    switch costume to (render v)\n    change [#ball v] by (length of [\(ball infromation\) v])\nend\nset [#platfrom v] to [0]\nrepeat ((length of [platfrom v]) / (length of [\(platfrom information\) v]))\n    pen up\n    set pen color to (item ((#platfrom) + (10)) of [platfrom v])\n    Draw Convert Line from (item ((#platfrom) + (2)) of [platfrom v]) (item ((#platfrom) + (3)) of [platfrom v]) to (item ((#platfrom) + (4)) of [platfrom v]) (item ((#platfrom) + (5)) of [platfrom v]) with Radius (item ((#platfrom) + (9)) of [platfrom v])\n    change [#platfrom v] by (length of [\(platfrom information\) v])\nend\n\ndefine Update\nset [#ball v] to [0]\nrepeat ((length of [ball v]) / (length of [\(ball infromation\) v]))\n    Change ((#ball) + (3)) by (item ((#ball) + (5)) of [ball v])\n    Change ((#ball) + (4)) by (item ((#ball) + (6)) of [ball v])\n    Check Collied Ball\n    Check Collide Platfrom\n    if < (item ((#ball) + (9)) of [ball v]) contains [gravity]?> then\n        Change ((#ball) + (6)) by [-0.98]\n    else\n        if < (item ((#ball) + (9)) of [ball v]) contains [nograv]?> then\n            Change ((#ball) + (6)) by [0]\n        else\n            Change ((#ball) + (6)) by (GRAVITY)\n        end\n    end\n    change [#ball v] by (length of [\(ball infromation\) v])\nend\n\ndefine Change (index) by (value)\nreplace item (index) of [ball v] with ((item (index) of [ball v]) + (value))\n\ndefine Calculate Ball Collided Velocity\nset [v1 normal v] to (((cos) * (item ((#ball) + (5)) of [ball v])) + ((sin) * (item ((#ball) + (6)) of [ball v])))\nset [v1 tangent v] to ((((0) - (sin)) * (item ((#ball) + (5)) of [ball v])) + ((cos) * (item ((#ball) + (6)) of [ball v])))\nset [v2 normal v] to (((cos) * (item ((#other) + (5)) of [ball v])) + ((sin) * (item ((#other) + (6)) of [ball v])))\nset [v2 tangent v] to ((((0) - (sin)) * (item ((#other) + (5)) of [ball v])) + ((cos) * (item ((#other) + (6)) of [ball v])))\nset [mass ratio 1 v] to ((item ((#ball) + (2)) of [ball v]) * ((item ((#other) + (1)) of [ball v]) * ((v2 normal) - (v1 normal))))\nset [mass ratio 2 v] to ((item ((#other) + (2)) of [ball v]) * ((item ((#ball) + (1)) of [ball v]) * ((v1 normal) - (v2 normal))))\nset [momentum v] to (((item ((#ball) + (1)) of [ball v]) * (v1 normal)) + ((item ((#other) + (1)) of [ball v]) * (v2 normal)))\nset [v1 v] to (((mass ratio 1) + (momentum)) / ((item ((#ball) + (1)) of [ball v]) + (item ((#other) + (1)) of [ball v])))\nset [v2 v] to (((mass ratio 2) + (momentum)) / ((item ((#ball) + (1)) of [ball v]) + (item ((#other) + (1)) of [ball v])))\nreplace item ((#ball) + (5)) of [ball v] with (((v1) * (cos)) + ((v1 tangent) * ((0) - (sin))))\nreplace item ((#ball) + (6)) of [ball v] with (((v1) * (sin)) + ((v1 tangent) * (cos)))\nreplace item ((#other) + (5)) of [ball v] with (((v2) * (cos)) + ((v2 tangent) * ((0) - (sin))))\nreplace item ((#other) + (6)) of [ball v] with (((v2) * (sin)) + ((v2 tangent) * (cos)))\n\ndefine Collied Ball at Point (x) (y)\nGet Vector from (x) (y) to (item ((#ball) + (3)) of [ball v]) (item ((#ball) + (4)) of [ball v])\nset [m v] to (((item ((#platfrom) + (5)) of [platfrom v]) - (item ((#platfrom) + (3)) of [platfrom v])) / ((item ((#platfrom) + (4)) of [platfrom v]) - (item ((#platfrom) + (2)) of [platfrom v])))\nset [depth v] to (((item ((#platfrom) + (9)) of [platfrom v]) + (item ((#ball) + (7)) of [ball v])) - (distance))\nif <(depth) > [0]> then\n    if <(#ball) = [0]> then\n        if <([abs v] of (m) ) < [3]> then\n            set [solid v] to [1]\n        end\n        Platfrom Type\n    end\n    if <not << (item ((#platfrom) + (11)) of [platfrom v]) contains [none]?> and <(#ball) = [0]>>> then\n        Normalize Vector\n        if <(sin) < [0]> then\n            change [depth v] by (0.1)\n        end\n        Change ((#ball) + (3)) by ((depth) * (cos))\n        Change ((#ball) + (4)) by ((depth) * (sin))\n        set [v1 normal v] to (((item ((#ball) + (5)) of [ball v]) * (cos)) + ((item ((#ball) + (6)) of [ball v]) * (sin)))\n        set [v1 normal v] to (((-1) - (item ((#platfrom) + (1)) of [platfrom v])) * (v1 normal))\n        Change ((#ball) + (5)) by ((v1 normal) * (cos))\n        Change ((#ball) + (6)) by ((v1 normal) * (sin))\n    end\nend\n\ndefine [ Player ] Heavy\nif <(_space) > [0]> then\n    replace item (1) of [ball v] with ((item (7) of [ball v]) * (2))\n    if <(item (9) of [ball v]) = [lava]> then\n        replace item (8) of [ball v] with (join [0x] [844200])\n    else\n        replace item (8) of [ball v] with (join [0x] [003060])\n    end\nelse\n    replace item (1) of [ball v] with ((item (7) of [ball v]) / (2))\n    if <(item (9) of [ball v]) = [lava]> then\n        replace item (8) of [ball v] with (join [0x] [FF8000])\n    else\n        replace item (8) of [ball v] with (join [0x] [0080FF])\n    end\nend\nif <(item (6) of [ball v]) < [-30]> then\n    replace item (6) of [ball v] with [-30]\nend\n\ndefine Level 5\nset [gravity v] to [0]\nAdd Ball | Mass: [10] Elastic: [0.2] Position: [0] [0] Velocity: [0] [0] Radius: [20] Color: (join [0x] [0080FF]) Type: [nograv]\nAdd Platfrom | Elastic: [0.2] Start Position: [-200] [-200] End Position: [400] [-200] Radius: [40] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [-200] [-200] End Position: [-200] [200] Radius: [40] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [400] [200] End Position: [400] [-200] Radius: [40] Color: (join [0x] [4F4F4F]) Type: []\nAdd Platfrom | Elastic: [0.2] Start Position: [400] [200] End Position: [-200] [200] Radius: [40] Color: (join [0x] [4F4F4F]) Type: []\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-170] [50] Velocity: [0] [0] Radius: [11] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-150] [-120] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-130] [60] Velocity: [0] [0] Radius: [12] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-120] [70] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-100] [-20] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-80] [-130] Velocity: [0] [0] Radius: [25] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-70] [40] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-50] [20] Velocity: [0] [0] Radius: [17] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [-20] [180] Velocity: [0] [0] Radius: [11] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [0] [-20] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [20] [-50] Velocity: [0] [0] Radius: [12] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [40] [140] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [80] [70] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [100] [0] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [130] [20] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [150] [-50] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [170] [50] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [180] [80] Velocity: [0] [0] Radius: [25] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [190] [-20] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [200] [0] Velocity: [0] [0] Radius: [17] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [230] [0] Velocity: [0] [0] Radius: [11] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [250] [0] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [290] [0] Velocity: [0] [0] Radius: [12] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [310] [0] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [320] [0] Velocity: [0] [0] Radius: [10] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [340] [0] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [370] [0] Velocity: [0] [0] Radius: [20] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\nAdd Ball | Mass: [30] Elastic: [0.2] Position: [370] [0] Velocity: [0] [0] Radius: [15] Color: (join [0x] [D0D0D0]) Type: [magnetic nograv]\n\n@Appearance\n\nwhen flag clicked\nhide\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (timer)\nshow\n\n