Pareliter platformer / Mobile friendly


@Stage\n\nwhen I receive [start v]\nforever\n    wait (0.1) seconds\n    play sound [\[MP3DOWNLOAD v] until done\n    wait (0.1) seconds\n    play sound [Vexento - Tevo \(Original Mix\).mp3 v] until done\n    wait (0.1) seconds\n    play sound [Alan-Walker-Spectre v] until done\nend\n\n@player\n\ndefine eyes movement\nforever\n    if <<<mouse down?> and <(mouse y) > (y position)>> or <<<key (space v) pressed?> or <key (w v) pressed?>> or <key (up arrow v) pressed?>>> then\n        switch costume to (up v)\n    else\n        switch costume to (stand - afk type v)\n    end\n    if <<key (s v) pressed?> or <key (down arrow v) pressed?>> then\n        switch costume to (down v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (right v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        switch costume to (left v)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <<key (space v) pressed?> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>>> or <<<mouse down?> and <(mouse y) > (y position)>> and <<mouse down?> and <(x position) > (mouse x)>>>> then\n        switch costume to (up left v)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <<key (s v) pressed?> or <key (down arrow v) pressed?>>> or <<<mouse down?> and <(x position) > (mouse x)>> and <<mouse down?> and <(y position) > (mouse y)>>>> then\n        switch costume to (down left v)\n    end\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <<key (s v) pressed?> or <key (down arrow v) pressed?>>> or <<<mouse down?> and <(y position) > (mouse y)>> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (down right v)\n    end\n    if <<<<mouse down?> and <(mouse x) > (x position)>> and <<mouse down?> and <(mouse y) > (y position)>>> or <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <<key (space v) pressed?> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>>>> then\n        switch costume to (up right v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (stand - afk type v)\n    end\n    if <<<key (s v) pressed?> or <key (down arrow v) pressed?>> and <<<key (space v) pressed?> or <key (w v) pressed?>> or <key (up arrow v) pressed?>>> then\n        switch costume to (stand - afk type v)\n    end\nend\n\ndefine setup\nset [xvel v] to [0]\nset [yvel v] to [0]\ngo to x: (-206) y: (-62)\npoint in direction (90)\nshow\nset size to (100) %\nforever\n    if <<not <(level) = [15]>> and <(x position) > [239]>> then\n        change [level v] by (1)\n        go to x: (-206) y: (-62)\n    end\n    if <<(level) = [15]> and <(x position) > [239]>> then\n        change [level v] by (1)\n        go to x: (-206) y: (-62)\n    end\n    if <<not <<(level) = [16]> or <(level) = [17]>>> and <<touching (danger v)?> or <[-186] > (y position)>>> then\n        go to x: (-206) y: (-110)\n    end\n    if <<<(level) = [16]> or <(level) = [17]>> and <<touching (danger v)?> or <[-186] > (y position)>>> then\n        go to x: (-206) y: (-110)\n    end\n    if <touching (trampoline v)?> then\n        set [yvel v] to [20]\n    end\nend\n\nwhen flag clicked\nsetup\n\ndefine  movement and gravity\nforever\n    change [yvel v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xvel v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [xvel v] by (-1)\n    end\n    set [xvel v] to ((Xvel) * (0.86))\n    change x by (Xvel)\n    if <<touching (level v)?> or <touching (hover board v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (hover board v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (hover board v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (hover board v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (hover board v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (hover board v)?>> then\n                            change y by (1)\n                        end\n                        if <<touching (level v)?> or <touching (hover board v)?>> then\n                            change y by (-6)\n                            change x by ((Xvel) * (-1))\n                            set [xvel v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yvel)\n    if <<touching (hover board v)?> or <touching (level v)?>> then\n        change y by ((Yvel) * (-1))\n        set [yvel v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <<key (space v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> and <<touching (level v)?> or <touching (hover board v)?>>> then\n        set [yvel v] to [15]\n    end\n    change y by (1)\nend\n\nwhen I receive [start v]\neyes movement\n\nwhen I receive [start v]\n movement and gravity\n\n@level\n\nwhen flag clicked\nshow\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\n@cloud\n\nwhen I receive [start v]\nset [brightness v] effect to (25)\n\n@danger\n\nwhen I receive [start v]\nforever\n    if <<<<(level) = [22]> or <<(level) = [21]> or <<(level) = [20]> or <(level) = [23]>>>> or <<(level) = [11]> or <(level) = [16]>>> or <<<(level) = [15]> or <(level) = [14]>> or <<(level) = [24]> or <<<(level) = [4]> or <(level) = [5]>> or <<(level) = [10]> or <(level) = [8]>>>>>> then\n        show\n    else\n        hide\n    end\n    if <(level) = [4]> then\n        go to x: (-69) y: (-135)\n        switch costume to (spike 1 v)\n    end\n    if <(level) = [5]> then\n        go to x: (-69) y: (-135)\n        switch costume to (spike 2 v)\n    end\n    if <(level) = [8]> then\n        go to x: (78) y: (68)\n        switch costume to (spike 1 v)\n    end\n    if <(level) = [10]> then\n        go to x: (68) y: (-136)\n        switch costume to (spike 1 v)\n    end\n    if <(level) = [14]> then\n        go to x: (202) y: (-86)\n        switch costume to (spike 3 v)\n    end\n    if <(level) = [15]> then\n        go to x: (202) y: (-86)\n        switch costume to (spike 4 v)\n    end\n    if <(level) = [16]> then\n        go to x: (125) y: (-158)\n        switch costume to (spike 5 v)\n    end\n    if <(level) = [11]> then\n        go to x: (125) y: (-138)\n        switch costume to (spike 1 v)\n    end\n    if <(level) = [20]> then\n        go to x: (8) y: (-140)\n        switch costume to (spike 1 v)\n    end\n    if <(level) = [22]> then\n        go to x: (127) y: (-161)\n        switch costume to (spike 7 v)\n    end\n    if <(level) = [21]> then\n        go to x: (-120) y: (-135)\n        switch costume to (spike 6 v)\n    end\n    if <(level) = [23]> then\n        go to x: (-120) y: (-135)\n        switch costume to (spike 8 v)\n    end\n    if <(level) = [24]> then\n        go to x: (-120) y: (-135)\n        switch costume to (spike 9 v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@invisblocks\n\nwhen I receive [start v]\nforever\n    if <(level) = [7]> then\n        go to x: (0) y: (0)\n        show\n    else\n        hide\n    end\nend\n\n@trampoline\n\nwhen I receive [start v]\nset size to (75) %\nforever\n    if <<<(level) = [8]> or <(level) = [10]>> or <(level) = [24]>> then\n        show\n    else\n        hide\n    end\n    if <(level) = [8]> then\n        go to x: (27) y: (-49)\n    end\n    if <(level) = [10]> then\n        go to x: (-85) y: (-49)\n    end\n    if <(level) = [24]> then\n        go to x: (-67) y: (95)\n    end\n    if <touching (player v)?> then\n        switch costume to (crouch v)\n    else\n        switch costume to (normal v)\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (00) y: (0)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.1) seconds\nend\nbroadcast (start v)\n\n@hover board\n\nwhen flag clicked\nforever\n    if <<(level) = [19]> or <<(level) = [20]> or <(level) = [18]>>> then\n        show\n        go to x: (167) y: (-161)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    change x by (10)\n    wait (0.1) seconds\nend\n\nif <touching (_edge_ v)?> then\nend\nif <touching (level v)?> then\n    change x by (10)\nend\n\ngo to x: (2) y: (2)\n\nwait (0.1) seconds\n\nchange x by (10)\n\ngo to x: (256) y: (-58)\ngo to x: (167) y: (-161)\n\nset rotation style [left-right v]\n\nwhen flag clicked\nforever\n    glide (3) secs to x: (-112) y: (-157)\n    glide (3) secs to x: (196) y: (-157)\nend\n\n