notebook platformer
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (level)\nend\n\n@Sprite1\n\nwhen flag clicked\nset [deaths v] to [1]\nset [time v] to [0]\nset [score v] to [1000]\nforever\n    if <key (r v) pressed?> then\n        broadcast (RESET v)\n    end\nend\n\nwhen I receive [level v]\nbroadcast (RESET v)\n\nwhen I receive [reset v]\nset size to (100) %\nswitch costume to (idle v)\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-194) y: (-123)\n\nwhen flag clicked\ngo to x: (-194) y: (-123)\nset [level v] to [1]\nbroadcast (level v)\nforever\n    if <<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.5)\n    end\n    if <<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.5)\n    end\n    set [xv v] to ((XV) * (0.85))\n    change x by (XV)\n    if <touching (ground v)?> then\n        change y by (4)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((XV) * (-1))\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            if <(XV) = [0]> then\n                set [xv v] to [-10]\n            else\n                set [xv v] to [10]\n            end\n            set [xv v] to [15]\n        else\n            set [xv v] to [0]\n        end\n    end\n    change [yv v] by (-1)\n    change y by (YV)\n    if <touching (ground v)?> then\n        change y by ((YV) - ((YV) * (2)))\n        set [yv v] to [0]\n    end\n    if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n        switch costume to (idle v)\n    else\n        switch costume to (idle v)\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        set [yv v] to [15]\n    end\n    change y by (1)\n    if <touching (end level v)?> then\n        broadcast (level v) and wait\n        change [level v] by (1)\n    end\n    if <<<touching (spikes v)?> or <touching (lava v)?>> or <touching (enemy v)?>> then\n        broadcast (RESET v)\n        broadcast (Enemy respawn v)\n        change [deaths v] by (1)\n        create clone of (_myself_ v)\n    else\n        if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n            switch costume to (idle v)\n        else\n            switch costume to (idle v)\n        end\n        if <(y position) < [-178]> then\n            broadcast (RESET v)\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\n@end level\n\nwhen flag clicked\ngo to x: (229) y: (-93)\nforever\n    turn right (11000000005) degrees\nend\n\nwhen flag clicked\nforever\n    if <(level) = [20]> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Lava\n\nwhen flag clicked\ngo to x: (36) y: (25)\ngo to [back v] layer\nforever\n    repeat (7)\n        change y by (1)\n    end\n    repeat (7)\n        change y by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nforever\n    repeat (100)\n        change [ghost v] effect by (1)\n        change [color v] effect by (1)\n    end\n    hide\nend\n\n
WASD or arrow to move\nдвигаться со стрелками\n\nIf your have a suggestion leave in a comment below\nЕсли у вас есть предложения, оставьте комментарий ниж\nhigh score the deeper the negative the better высокий балл чем глубже отрицательный, тем лучше\n