Darkness to Rise (Platformer)

Instructions: ㅤㅤㅤㅤㅤㅤㅤㅤ- Dark Place -\n\n▸ One day , you wake up in a jungle full of cruel monsters !\n▸ You need to get out of here ! \n\nInstructions: \n▸ Arrow keys to move , tap on mobile !\n▸ Don't touch spikes (duh)\n▸ Like and fav !\n\nCredits :\n▸ @001409 for platforming engine\n▸ Rest all by me !\n▸ Top loved !\n\nI spent a lot of time on this, so a love and favourite will be appreciated!\n\nFollow for more cool projects\n\nI would really appreciate it if you propose this project to be featured . You can do that here ! -\nhttps://scratch.mit.edu/studios/4228481/\n\n#Games #Trending #Dark #FrontPage #TopLoved

@Stage\n\nwhen flag clicked\nforever\n    play sound [1-31 Cloudy Court Galaxy v] until done\nend\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\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 [0] at [6] [3]\nAdd Block [1] key [0] at [7] [3]\nAdd Block [1] key [0] 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 [1] key [0] at [4] [1]\nAdd Block [1] key [1] at [6] [2]\nAdd Block [1] key [1] at [7] [2]\nAdd Block [1] key [1] at [8] [2]\nAdd Block [1] key [1] at [9] [2]\nAdd Block [1] key [0] at [11] [1]\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 [0] 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]\n\ndefine Level 4\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 [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 [0] at [10] [4]\nAdd Block [1] key [0] at [10] [5]\nAdd Block [1] key [0] at [10] [6]\nAdd Block [1] key [0] at [10] [7]\nAdd Block [1] key [0] at [10] [8]\nAdd Block [1] key [1] at [8] [1]\nAdd Block [1] key [1] at [9] [1]\nAdd Block [1] key [1] at [10] [1]\nAdd Block [1] key [1] at [11] [1]\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 [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 [1] key [0] at [1] [3]\nAdd Block [1] key [0] at [2] [3]\nAdd Block [5] key [0] at [3] [3]\nAdd Block [5] key [0] at [4] [3]\nAdd Block [3] key [0] at [5] [1]\nAdd Block [3] key [0] at [5] [2]\nAdd Block [3] key [0] at [5] [3]\nAdd Block [3] key [0] at [5] [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 [5] [8]\nAdd Block [5] key [2] at [6] [3]\nAdd Block [5] key [2] 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 [7] key [0] at [6] [1]\nAdd Block [7] key [0] at [7] [1]\n\ndefine Level 7\nAdd Block [1] key [0] at [1] [3]\nAdd Block [1] key [0] at [2] [3]\nAdd Block [5] key [1] at [3] [3]\nAdd Block [5] key [1] at [3] [3]\nAdd Block [5] key [1] 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 [2] at [3] [2]\nAdd Block [1] key [2] at [4] [2]\nAdd Block [1] key [2] at [5] [2]\nAdd Block [1] key [2] at [6] [2]\nAdd Block [1] key [2] at [7] [2]\nAdd Block [1] key [2] at [8] [2]\nAdd Block [1] key [2] at [9] [2]\nAdd Block [1] key [2] at [10] [2]\nAdd Block [1] key [2] at [11] [2]\nAdd Block [1] key [2] at [12] [2]\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 [5] key [1] 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 [2] at [3] [2]\nAdd Block [1] key [2] at [4] [2]\nAdd Block [1] key [2] at [5] [2]\nAdd Block [1] key [2] at [6] [2]\nAdd Block [1] key [2] at [7] [2]\nAdd Block [1] key [2] at [8] [2]\nAdd Block [1] key [2] at [9] [2]\nAdd Block [1] key [2] at [10] [2]\nAdd Block [1] key [2] at [11] [2]\nAdd Block [1] key [2] at [12] [2]\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]\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 [1] key [0] at [5] [1]\nAdd Block [1] key [4] at [9] [3]\nAdd Block [1] key [4] at [10] [3]\nAdd Block [1] key [0] at [14] [5]\nAdd Block [7] key [0] at [14] [8]\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]\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    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    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 <<<[-190] > (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\n@Sprite1\n\ngo to x: (0) y: (20)\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n