3D game - A platformer #Games #All

Instructions: Original : https://scratch.mit.edu/projects/610413673/\n\n100% coding by me\nArrow keys or WASD\n\nLag ?\nhttps://turbowarp.org/613497006

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    play sound [Vexento - Sad Robot v] until done\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        hide variable [level v]\n        switch backdrop to (backdrop2 v)\n    else\n        show variable [level v]\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\ndefine Touch Ground <up?>\nrepeat until <not <<touching (jump here for the next level! v)?> or <<touching color (#c17e4d)?> or <<touching color (#59d455)?> or <touching color (#6cff66)?>>>>>\n    if <up?> then\n        change y by (-1)\n    else\n        set [falling? v] to [0]\n        change y by (1)\n    end\n    set [yv v] to [0]\nend\n\ndefine Physics\nchange [yv v] by (-1)\nchange y by (Yv)\nchange [falling? v] by (1)\nTouch Ground <(Yv) > [0]>\nif <<<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> or <mouse down?>> and <(falling?) < [3]>> then\n    set [yv v] to [13]\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [xv v] by (-1.7)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xv v] by (1.7)\nend\nset [xv v] to ((Xv) * (0.85))\nchange x by (Xv)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <<touching (jump here for the next level! v)?> or <<touching color (#c17e4d)?> or <<touching color (#59d455)?> or <touching color (#6cff66)?>>>>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((Xv) * (-1))\n    change y by ((slope) * (-1))\n    if <<mouse down?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>>> then\n        if <(Xv) > [0]> then\n            set [xv v] to ((-15) * (0.8))\n        else\n            set [xv v] to ((15) * (0.8))\n        end\n        set [yv v] to ((15) * (0.8))\n    end\nend\nif <<touching (jump here for the next level! v)?> or <<touching color (#c17e4d)?> or <<touching color (#59d455)?> or <touching color (#6cff66)?>>>> then\n    if <<mouse down?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>>> then\n        set [yv v] to [7]\n    else\n        set [yv v] to [-1.5]\n    end\nend\nif <touching color (#ff0000)?> then\n    set [yv v] to [21]\nend\nif <<touching color (#e3ff41)?> or <touching (gai v)?>> then\n    go to x: (-225) y: (0)\nend\nif <(x position) > [235]> then\n    go to x: (-225) y: (0)\n    change [level v] by (1)\nend\n\nwhen flag clicked\ngo to x: (-211) y: (-14)\nset [xv v] to [0]\nset [yv v] to [0]\nset [falling? v] to [0]\nforever\n    Physics\nend\n\nwhen flag clicked\nswitch costume to (player v)\nforever\n    create clone of (_myself_ v)\nend\n\ngo to x: (-131) y: (18)\n\nwhen flag clicked\nforever\n    switch costume to (player v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nswitch costume to (player2 v)\nTên khối\ndelete this clone\n\ndefine Tên khối\nset [brightness v] effect to (0)\nset rotation style [don't rotate v]\npoint towards (sprite1 v)\nrepeat (10)\n    move (2) steps\n    change [brightness v] effect by (-1)\n    stamp\nend\n\n@Name...uhh... (:\n\nwhen flag clicked\nwait (0.03) seconds\nforever\n    switch costume to (Level)\n    Vẽ 3D\nend\n\ndefine Vẽ 3D\nerase all\nset [brightness v] effect to (-70)\nset size to (40) %\nrepeat until <(size) = [100]>\n    stamp\n    change [brightness v] effect by (1)\n    change size by (1)\nend\nclear graphic effects\n\n@Jump here for the Next Level!\n\nwhen flag clicked\ngo to x: (10) y: (43)\nforever\n    if <([costume # v] of [name...uhh... \(: v]) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\n@Gai\n\ndefine Vẽ 3D\nset [brightness v] effect to (-70)\nset size to (80) %\nrepeat until <(size) = [100]>\n    stamp\n    change [brightness v] effect by (1)\n    change size by (1)\nend\nclear graphic effects\n\nwhen flag clicked\nwait (0.03) seconds\nforever\n    switch costume to (Level)\n    Vẽ 3D\nend\n\n@Sprite1\n\n