Keyboard Platformer: Level Pack
@Stage\n\n@level\n\ndefine Add Block (type) key (key) at (x) (y)\nadd (type) to [blocks v]\nadd (key) to [blocks v]\nadd (x) to [blocks v]\nadd (y) to [blocks v]\n\nwhen flag clicked\nhide\nset [level v] to [1]\nLevel (level)\n\ndefine Generate\nset [i v] to [1]\nrepeat until <(i) > (length of [blocks v])>\n    set [type v] to (item (i) of [blocks v])\n    change [i v] by (1)\n    set [key v] to (item (i) of [blocks v])\n    change [i v] by (1)\n    go to x: (((item (i) of [blocks v]) * (30)) - (240)) y: (((item ((i) + (1)) of [blocks v]) * (30)) - (180))\n    create clone of (_myself_ v)\n    change [i v] by (2)\nend\n\nwhen I start as a clone\nswitch costume to (join (type) (join [ - ] (key)))\nshow\n\nwhen I receive [tick v]\nif <(key) > [0]> then\n    if <touching (player v)?> then\n        switch costume to (join ((type) - (1)) (join [ - ] (key)))\n    else\n        if <<(key) = [1]> and <key (up arrow v) pressed?>> then\n            switch costume to (join (type) (join [ - ] [1]))\n        else\n            if <<(key) = [2]> and <key (right arrow v) pressed?>> then\n                switch costume to (join (type) (join [ - ] [2]))\n            else\n                if <<(key) = [3]> and <key (down arrow v) pressed?>> then\n                    switch costume to (join (type) (join [ - ] [3]))\n                else\n                    if <<(key) = [4]> and <key (left arrow v) pressed?>> then\n                        switch costume to (join (type) (join [ - ] [4]))\n                    else\n                        switch costume to (join ((type) - (1)) (join [ - ] (key)))\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Level (level)\ndelete all of [blocks 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\nif <(level) = [6]> then\n    Level 6\nend\nif <(level) = [7]> then\n    Level 7\nend\nif <(level) = [8]> then\n    Level 8\nend\nif <(level) = [9]> then\n    Level 9\nend\nif <(level) = [10]> then\n    Level 10\nend\nif <(level) = [11]> then\n    Level 11\nend\nGenerate\n\ndefine Level 1\nAdd Block [1] key [4] at [1] [9]\nAdd Block [1] key [3] at [2] [9]\nAdd Block [1] key [2] at [3] [9]\nAdd Block [1] key [1] at [2] [10]\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [0] at [3] [1]\nAdd Block [1] key [0] at [4] [1]\nAdd Block [1] key [1] at [6] [3]\nAdd Block [1] key [1] at [7] [3]\nAdd Block [1] key [1] at [8] [3]\nAdd Block [1] key [0] at [9] [3]\nAdd Block [3] key [0] at [9] [4]\nAdd Block [1] key [0] at [10] [3]\nAdd Block [1] key [0] at [11] [3]\nAdd Block [7] key [0] at [13] [6]\n\nwhen I receive [next level v]\nbroadcast (Delete Clones v) and wait\nchange [level v] by (1)\nLevel (level)\n\ndefine Level 2\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [0] at [3] [1]\nAdd Block [5] key [3] at [4] [1]\nAdd Block [1] key [3] at [6] [2]\nAdd Block [1] key [3] at [7] [2]\nAdd Block [1] key [3] at [8] [2]\nAdd Block [1] key [3] at [9] [2]\nAdd Block [1] key [0] at [9] [1]\nAdd Block [1] key [0] at [9] [4]\nAdd Block [1] key [0] at [9] [5]\nAdd Block [1] key [0] at [9] [6]\nAdd Block [3] key [0] at [9] [7]\nAdd Block [3] key [0] at [9] [8]\nAdd Block [1] key [0] at [12] [1]\nAdd Block [1] key [0] at [13] [1]\nAdd Block [1] key [0] at [14] [1]\nAdd Block [7] key [3] at [14] [4]\n\nwhen I receive [delete clones v]\ndelete this clone\n\nwhen [r v] key pressed\nbroadcast (Delete Clones v) and wait\nLevel (level)\n\ndefine Level 3\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [0] at [3] [1]\nAdd Block [1] key [0] at [4] [1]\nAdd Block [1] key [0] at [5] [1]\nAdd Block [1] key [0] at [6] [1]\nAdd Block [1] key [0] at [7] [1]\nAdd Block [1] key [0] at [8] [1]\nAdd Block [1] key [0] at [9] [1]\nAdd Block [1] key [0] at [10] [1]\nAdd Block [1] key [0] at [11] [1]\nAdd Block [3] key [2] at [4] [2]\nAdd Block [3] key [2] at [4] [3]\nAdd Block [3] key [4] at [4] [4]\nAdd Block [3] key [4] at [4] [5]\nAdd Block [3] key [4] at [4] [6]\nAdd Block [3] key [2] at [4] [7]\nAdd Block [3] key [2] at [4] [8]\nAdd Block [3] key [4] at [8] [2]\nAdd Block [3] key [4] at [8] [3]\nAdd Block [3] key [2] at [8] [4]\nAdd Block [3] key [2] at [8] [5]\nAdd Block [3] key [2] at [8] [6]\nAdd Block [3] key [4] at [8] [7]\nAdd Block [3] key [4] at [8] [8]\nAdd Block [7] key [0] at [13] [1]\nAdd Block [7] key [0] at [14] [1]\nAdd Block [1] key [2] at [10] [2]\nAdd Block [1] key [2] at [10] [3]\nAdd Block [1] key [2] at [10] [4]\nAdd Block [1] key [2] at [10] [5]\nAdd Block [1] key [2] at [10] [6]\nAdd Block [1] key [2] at [10] [7]\nAdd Block [1] key [2] at [10] [8]\nAdd Block [1] key [2] at [11] [2]\nAdd Block [1] key [2] at [11] [3]\nAdd Block [1] key [2] at [11] [4]\nAdd Block [1] key [2] at [11] [5]\nAdd Block [1] key [2] at [11] [6]\nAdd Block [1] key [2] at [11] [7]\nAdd Block [1] key [2] at [11] [8]\n\nAdd Block [1] key [2] at [9] [2]\nAdd Block [1] key [2] at [9] [3]\nAdd Block [1] key [2] at [9] [4]\nAdd Block [1] key [2] at [9] [5]\nAdd Block [1] key [2] at [9] [6]\nAdd Block [1] key [2] at [9] [7]\nAdd Block [1] key [2] at [9] [8]\n\ndefine Level 4\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [0] at [3] [1]\nAdd Block [1] key [0] at [4] [1]\nAdd Block [1] key [0] at [5] [4]\nAdd Block [3] key [0] at [5] [5]\nAdd Block [3] key [0] at [5] [6]\nAdd Block [1] key [0] at [5] [7]\nAdd Block [1] key [1] at [6] [4]\nAdd Block [1] key [1] at [7] [4]\nAdd Block [1] key [1] at [8] [4]\nAdd Block [1] key [1] at [9] [4]\nAdd Block [1] key [2] at [10] [4]\nAdd Block [1] key [2] at [10] [5]\nAdd Block [1] key [2] at [10] [6]\nAdd Block [1] key [2] at [10] [7]\nAdd Block [3] key [2] at [10] [8]\nAdd Block [1] key [0] at [8] [1]\nAdd Block [1] key [0] at [9] [1]\nAdd Block [1] key [0] at [10] [1]\nAdd Block [1] key [0] at [11] [1]\nAdd Block [1] key [0] at [10] [2]\nAdd Block [1] key [0] at [10] [3]\nAdd Block [7] key [1] at [13] [1]\nAdd Block [7] key [1] at [14] [1]\n\ndefine Level 5\nAdd Block [1] key [0] at [1] [3]\nAdd Block [1] key [0] at [2] [3]\nAdd Block [1] key [0] at [3] [3]\nAdd Block [1] key [0] at [4] [3]\nAdd Block [3] key [1] at [8] [6]\nAdd Block [3] key [1] at [9] [6]\nAdd Block [1] key [4] at [6] [5]\nAdd Block [1] key [4] at [7] [5]\nAdd Block [1] key [4] at [8] [5]\nAdd Block [1] key [4] at [9] [5]\nAdd Block [1] key [2] at [11] [7]\nAdd Block [1] key [2] at [12] [7]\nAdd Block [1] key [2] at [13] [7]\nAdd Block [1] key [2] at [14] [7]\nAdd Block [7] key [0] at [15] [11]\n\ndefine Level 6\nAdd Block [5] key [0] at [0] [4]\nAdd Block [1] key [0] at [1] [4]\nAdd Block [1] key [0] at [2] [4]\nAdd Block [3] key [0] at [3] [4]\nAdd Block [1] key [0] at [4] [4]\nAdd Block [3] key [0] at [4] [1]\nAdd Block [3] key [0] at [5] [1]\nAdd Block [1] key [0] at [5] [4]\nAdd Block [3] key [0] at [5] [5]\nAdd Block [3] key [0] at [5] [6]\nAdd Block [3] key [0] at [5] [7]\nAdd Block [3] key [0] at [5] [8]\nAdd Block [5] key [2] at [6] [3]\nAdd Block [5] key [4] at [7] [3]\nAdd Block [1] key [0] at [8] [3]\nAdd Block [1] key [0] at [9] [3]\nAdd Block [7] key [0] at [3] [1]\nAdd Block [7] key [0] at [4] [1]\nAdd Block [1] key [0] at [6] [1]\nAdd Block [1] key [0] at [7] [1]\n\ndefine Level 7\nAdd Block [1] key [0] at [3] [3]\nAdd Block [7] key [0] at [4] [3]\nAdd Block [3] key [0] at [5] [3]\nAdd Block [5] key [1] at [6] [3]\nAdd Block [5] key [1] at [7] [3]\nAdd Block [5] key [1] at [8] [3]\nAdd Block [5] key [1] at [9] [3]\nAdd Block [5] key [1] at [10] [3]\nAdd Block [3] key [0] at [11] [3]\nAdd Block [5] key [1] at [12] [3]\nAdd Block [7] key [0] at [13] [3]\nAdd Block [7] key [0] at [14] [3]\nAdd Block [1] key [0] at [3] [2]\nAdd Block [1] key [0] at [4] [2]\nAdd Block [1] key [0] at [5] [2]\nAdd Block [1] key [0] at [6] [2]\nAdd Block [1] key [0] at [7] [2]\nAdd Block [1] key [0] at [8] [2]\nAdd Block [1] key [0] at [9] [2]\nAdd Block [1] key [0] at [10] [2]\nAdd Block [1] key [0] at [11] [2]\nAdd Block [1] key [0] at [12] [2]\nAdd Block [1] key [2] at [1] [0]\nAdd Block [1] key [2] at [2] [0]\nAdd Block [1] key [2] at [3] [0]\nAdd Block [1] key [2] at [4] [0]\nAdd Block [1] key [2] at [5] [0]\nAdd Block [1] key [2] at [6] [0]\nAdd Block [1] key [2] at [7] [0]\nAdd Block [1] key [2] at [8] [0]\nAdd Block [1] key [2] at [9] [0]\nAdd Block [1] key [2] at [10] [0]\nAdd Block [1] key [2] at [11] [0]\nAdd Block [1] key [2] at [12] [0]\nAdd Block [1] key [2] at [13] [0]\nAdd Block [1] key [2] at [14] [0]\nAdd Block [3] key [0] at [5] [4]\nAdd Block [3] key [0] at [5] [5]\nAdd Block [3] key [0] at [5] [6]\nAdd Block [3] key [0] at [5] [7]\nAdd Block [3] key [0] at [8] [6]\nAdd Block [3] key [0] at [8] [7]\nAdd Block [3] key [0] at [8] [8]\nAdd Block [3] key [0] at [8] [9]\nAdd Block [3] key [0] at [11] [4]\nAdd Block [3] key [0] at [11] [5]\nAdd Block [3] key [0] at [11] [6]\nAdd Block [3] key [0] at [11] [7]\nAdd Block [3] key [0] at [5] [3]\nAdd Block [5] key [1] at [6] [3]\nAdd Block [5] key [1] at [7] [3]\nAdd Block [5] key [1] at [8] [3]\nAdd Block [5] key [1] at [9] [3]\nAdd Block [5] key [1] at [10] [3]\nAdd Block [3] key [0] at [11] [3]\nAdd Block [5] key [1] at [12] [3]\nAdd Block [1] key [1] at [13] [3]\nAdd Block [1] key [1] at [14] [3]\nAdd Block [3] key [0] at [5] [4]\nAdd Block [3] key [0] at [5] [5]\nAdd Block [3] key [0] at [5] [6]\nAdd Block [3] key [0] at [5] [7]\nAdd Block [3] key [0] at [8] [6]\nAdd Block [3] key [0] at [8] [7]\nAdd Block [3] key [0] at [8] [8]\nAdd Block [3] key [0] at [8] [9]\nAdd Block [3] key [0] at [11] [4]\nAdd Block [3] key [0] at [11] [5]\nAdd Block [3] key [0] at [11] [6]\nAdd Block [3] key [0] at [11] [7]\nAdd Block [1] key [0] at [3] [4]\nAdd Block [1] key [0] at [3] [5]\nAdd Block [1] key [0] at [3] [6]\nAdd Block [1] key [0] at [3] [7]\n\ndefine Level 8\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [0] at [3] [1]\nAdd Block [3] key [2] at [3] [2]\nAdd Block [3] key [2] at [3] [3]\nAdd Block [3] key [0] at [3] [4]\nAdd Block [3] key [0] at [3] [5]\nAdd Block [3] key [0] at [3] [6]\nAdd Block [1] key [0] at [4] [1]\nAdd Block [5] key [0] at [5] [1]\nAdd Block [1] key [0] at [1] [7]\nAdd Block [1] key [3] at [2] [7]\nAdd Block [1] key [3] at [3] [7]\nAdd Block [1] key [0] at [4] [7]\nAdd Block [3] key [0] at [5] [7]\nAdd Block [5] key [1] at [13] [5]\nAdd Block [1] key [1] at [14] [5]\nAdd Block [7] key [0] at [3] [10]\nAdd Block [1] key [0] at [4] [10]\nAdd Block [3] key [0] at [3] [9]\n\ndefine Level 9\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [1] at [3] [1]\nAdd Block [1] key [2] at [4] [1]\nAdd Block [1] key [3] at [5] [1]\nAdd Block [1] key [4] at [6] [1]\nAdd Block [1] key [3] at [7] [1]\nAdd Block [1] key [2] at [8] [1]\nAdd Block [1] key [2] at [9] [1]\nAdd Block [1] key [1] at [10] [1]\nAdd Block [1] key [3] at [11] [1]\nAdd Block [1] key [4] at [12] [1]\nAdd Block [1] key [4] at [13] [1]\nAdd Block [1] key [1] at [14] [1]\nAdd Block [1] key [2] at [3] [2]\nAdd Block [1] key [3] at [4] [2]\nAdd Block [1] key [4] at [5] [2]\nAdd Block [1] key [3] at [6] [2]\nAdd Block [1] key [3] at [7] [2]\nAdd Block [1] key [1] at [8] [2]\nAdd Block [1] key [2] at [9] [2]\nAdd Block [1] key [1] at [10] [2]\nAdd Block [1] key [3] at [11] [2]\nAdd Block [1] key [3] at [12] [2]\nAdd Block [1] key [1] at [13] [2]\nAdd Block [1] key [4] at [14] [2]\nAdd Block [1] key [2] at [3] [2]\nAdd Block [1] key [3] at [4] [2]\nAdd Block [1] key [4] at [5] [2]\nAdd Block [1] key [3] at [6] [2]\nAdd Block [1] key [3] at [7] [2]\nAdd Block [1] key [1] at [8] [2]\nAdd Block [1] key [2] at [9] [2]\nAdd Block [1] key [1] at [10] [2]\nAdd Block [1] key [3] at [11] [2]\nAdd Block [1] key [3] at [12] [2]\nAdd Block [1] key [1] at [13] [2]\nAdd Block [1] key [4] at [14] [2]\nAdd Block [1] key [3] at [3] [3]\nAdd Block [1] key [2] at [4] [3]\nAdd Block [1] key [4] at [5] [3]\nAdd Block [1] key [1] at [6] [3]\nAdd Block [1] key [3] at [7] [3]\nAdd Block [1] key [2] at [8] [3]\nAdd Block [1] key [4] at [9] [3]\nAdd Block [1] key [4] at [10] [3]\nAdd Block [1] key [1] at [11] [3]\nAdd Block [1] key [2] at [12] [3]\nAdd Block [1] key [4] at [13] [3]\nAdd Block [1] key [3] at [14] [3]\nAdd Block [1] key [2] at [3] [4]\nAdd Block [1] key [4] at [4] [4]\nAdd Block [1] key [1] at [5] [4]\nAdd Block [1] key [2] at [6] [4]\nAdd Block [1] key [2] at [7] [4]\nAdd Block [1] key [3] at [8] [4]\nAdd Block [1] key [1] at [9] [4]\nAdd Block [1] key [3] at [10] [4]\nAdd Block [1] key [4] at [11] [4]\nAdd Block [1] key [2] at [12] [4]\nAdd Block [1] key [2] at [13] [4]\nAdd Block [1] key [1] at [14] [4]\nAdd Block [1] key [3] at [3] [5]\nAdd Block [1] key [4] at [4] [5]\nAdd Block [1] key [1] at [5] [5]\nAdd Block [1] key [2] at [6] [5]\nAdd Block [1] key [4] at [7] [5]\nAdd Block [1] key [1] at [8] [5]\nAdd Block [1] key [3] at [9] [5]\nAdd Block [1] key [2] at [10] [5]\nAdd Block [1] key [1] at [11] [5]\nAdd Block [1] key [1] at [12] [5]\nAdd Block [1] key [4] at [13] [5]\nAdd Block [1] key [3] at [14] [5]\nAdd Block [1] key [4] at [3] [6]\nAdd Block [1] key [1] at [4] [6]\nAdd Block [1] key [2] at [5] [6]\nAdd Block [1] key [3] at [6] [6]\nAdd Block [1] key [1] at [7] [6]\nAdd Block [1] key [2] at [8] [6]\nAdd Block [1] key [2] at [9] [6]\nAdd Block [1] key [3] at [10] [6]\nAdd Block [1] key [4] at [11] [6]\nAdd Block [1] key [4] at [12] [6]\nAdd Block [1] key [1] at [13] [6]\nAdd Block [1] key [2] at [14] [6]\nAdd Block [1] key [1] at [3] [7]\nAdd Block [1] key [2] at [4] [7]\nAdd Block [1] key [3] at [5] [7]\nAdd Block [1] key [1] at [6] [7]\nAdd Block [1] key [3] at [7] [7]\nAdd Block [1] key [4] at [8] [7]\nAdd Block [1] key [2] at [9] [7]\nAdd Block [1] key [3] at [10] [7]\nAdd Block [1] key [4] at [11] [7]\nAdd Block [1] key [1] at [12] [7]\nAdd Block [1] key [2] at [13] [7]\nAdd Block [1] key [4] at [14] [7]\nAdd Block [7] key [2] at [13] [9]\nAdd Block [7] key [4] at [14] [9]\n\ndefine Level 10\nAdd Block [1] key [0] at [1] [1]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [3] at [3] [10]\nAdd Block [1] key [3] at [5] [10]\nAdd Block [1] key [3] at [3] [9]\nAdd Block [1] key [3] at [4] [9]\nAdd Block [1] key [3] at [5] [9]\nAdd Block [1] key [3] at [4] [8]\nAdd Block [1] key [3] at [4] [7]\nAdd Block [1] key [3] at [7] [7]\nAdd Block [1] key [3] at [7] [8]\nAdd Block [1] key [3] at [7] [9]\nAdd Block [1] key [3] at [7] [10]\nAdd Block [1] key [3] at [8] [7]\nAdd Block [1] key [3] at [8] [10]\nAdd Block [1] key [3] at [9] [7]\nAdd Block [1] key [3] at [9] [8]\nAdd Block [1] key [3] at [9] [9]\nAdd Block [1] key [3] at [9] [10]\nAdd Block [1] key [3] at [11] [7]\nAdd Block [1] key [3] at [11] [8]\nAdd Block [1] key [3] at [11] [9]\nAdd Block [1] key [3] at [11] [10]\nAdd Block [1] key [3] at [12] [7]\nAdd Block [1] key [3] at [13] [7]\nAdd Block [1] key [3] at [13] [8]\nAdd Block [1] key [3] at [13] [9]\nAdd Block [1] key [3] at [13] [10]\nAdd Block [1] key [1] at [3] [5]\nAdd Block [1] key [1] at [3] [4]\nAdd Block [1] key [1] at [4] [3]\nAdd Block [1] key [1] at [5] [5]\nAdd Block [1] key [1] at [5] [4]\nAdd Block [1] key [1] at [6] [3]\nAdd Block [1] key [1] at [7] [5]\nAdd Block [1] key [1] at [7] [4]\nAdd Block [1] key [1] at [9] [3]\nAdd Block [1] key [1] at [9] [4]\nAdd Block [1] key [1] at [9] [5]\nAdd Block [1] key [1] at [11] [3]\nAdd Block [1] key [1] at [11] [4]\nAdd Block [1] key [1] at [11] [5]\nAdd Block [1] key [1] at [12] [4]\nAdd Block [1] key [1] at [13] [3]\nAdd Block [1] key [1] at [13] [4]\nAdd Block [1] key [1] at [13] [5]\nAdd Block [7] key [0] at [14] [10]\n\ndefine Level 11\nAdd Block [1] key [0] at [1] [8]\nAdd Block [1] key [0] at [5] [8]\nAdd Block [1] key [0] at [1] [2]\nAdd Block [1] key [0] at [5] [2]\nAdd Block [1] key [0] at [2] [1]\nAdd Block [1] key [0] at [3] [1]\nAdd Block [1] key [0] at [4] [1]\n\n@player\n\nwhen flag clicked\nshow\ngo to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    set [codetest v] to [0]\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((xv) * (0.9))\n    Move X (round (xv))\n    change [yv v] by (-1)\n    set [can jump v] to [0]\n    set [codetest v] to [1]\n    Move Y (yv)\n    if <<(can jump) = [1]> and <key (up arrow v) pressed?>> then\n        set [yv v] to [15]\n    end\n    if <<<[-178] > (y position)> or <touching color (#ff0000)?>> or <key (r v) pressed?>> then\n        go to x: (-200) y: (0)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <touching color (#a200ff)?> then\n        set [yv v] to [21]\n    end\n    if <touching color (#ffe600)?> then\n        broadcast (Next Level v) and wait\n        go to x: (-200) y: (0)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    broadcast (Tick v) and wait\nend\n\ndefine Move X (xv)\nchange x by (xv)\nrepeat until <not <touching color (#000000)?>>\n    set [xv v] to [0]\n    change x by (() - ((xv) / ([abs v] of (xv) )))\nend\nchange x by (() - ((xv) / ([abs v] of (xv) )))\n\ndefine Move Y (yv)\nchange y by (yv)\nrepeat until <not <touching color (#000000)?>>\n    if <(yv) < [0]> then\n        set [can jump v] to [1]\n    end\n    set [yv v] to [0]\n    change y by (() - ((yv) / ([abs v] of (yv) )))\nend\nchange y by (() - ((yv) / ([abs v] of (yv) )))\n\nwhen [r v] key pressed\ngo to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\n\nhide\n\nwhen flag clicked\nforever\n    if <<(can jump) = [1]> and <key (up arrow v) pressed?>> then\n        play sound [Jump v] until done\n    end\n    if <touching color (#a200ff)?> then\n        play sound [Jump v] until done\n    end\nend\n\nset [codetest v] to [1]\nset [codetest v] to [1]\n\nwhen [s v] key pressed\nbroadcast (Next Level v) and wait\ngo to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    play sound [Anaconda v] until done\nend\n\ngo to x: (0) y: (0)\nshow\nset size to (100) %\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    set [fps v] to (FPSCounter)\n    set [fpscounter v] to [0]\nend\n\nwhen I receive [tick v]\nchange [fpscounter v] by (1)\n\n