Night platformer (мой первый платформер)
@Stage\n\n@игрок\n\nwhen flag clicked\nhide\n\nwhen I receive [след. уровень v]\ngo to x: (-230) y: (-57)\n\nwhen I start as a clone\nrepeat (6)\n    change size by (-2)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen I receive [начало проекта v]\nshow\ngo to x: (-220) y: (110)\nset [прыгать по стенам? v] to [1]\nforever\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-0.8)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (платформа v)?> then\n        change y by (1)\n    end\n    if <touching (платформа v)?> then\n        change y by (1)\n    end\n    if <touching (платформа v)?> then\n        change y by (1)\n    end\n    if <touching (платформа v)?> then\n        change y by (1)\n    end\n    if <touching (платформа v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <(прыгать по стенам?) = [1]> then\n            if <key (up arrow v) pressed?> then\n                if <(x) > [0]> then\n                    set [x v] to [-5]\n                else\n                    set [x v] to [5]\n                end\n                set [y v] to [11]\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (платформа v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (платформа v)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [11]\n    end\n    change y by (1)\nend\n\nwhen I receive [начало проекта v]\nswitch costume to (1 v)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (1 v)\n    else\n        if <key (left arrow v) pressed?> then\n            switch costume to (2 v)\n        else\n            if <key (up arrow v) pressed?> then\n                switch costume to (3 v)\n            else\n                if <<(y) > [0]> and <not <key (up arrow v) pressed?>>> then\n                    switch costume to (4 v)\n                else\n                    switch costume to (5 v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [начало проекта v]\nforever\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        broadcast (след. уровень v)\n        change [.уровень v] by (1)\n    end\nend\n\nwhen I receive [начало проекта v]\nforever\n    if <touching (препятствие v)?> then\n        go to x: (-230) y: (-57)\n    end\n    if <touching (батут v)?> then\n        set [y v] to [30]\n    end\nend\n\nwhen flag clicked\nset [.уровень v] to [1]\n\n@платформа\n\nwhen I receive [начало проекта v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (.уровень)\nend\n\nwhen flag clicked\nshow list [night platformer 2 v]\nhide\n\nwhen I receive [начало проекта v]\nwait until <(.уровень) = [15]>\nhide list [night platformer 2 v]\n\n@препятствие\n\nwhen I receive [начало проекта v]\nset [таймер v] to [0]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (.уровень)\nend\n\nwhen flag clicked\nhide variable [счет v]\nhide\n\nwhen I receive [начало проекта v]\nforever\n    wait (1) seconds\n    change [таймер v] by (1)\nend\n\nwhen I receive [начало проекта v]\nshow variable [счет v]\nforever\n    set [счет v] to (join (join [best score: ] (☁ лучший)) (join [  ] (join [your score:  ] (таймер))))\nend\n\nwhen I receive [начало проекта v]\nwait until <(.уровень) = [12]>\nif <(таймер) < (☁ лучший)> then\n    set [☁ лучший v] to (таймер)\nend\n\nset [☁ лучший v] to [99999]\n\n@батут\n\nwhen I receive [начало проекта v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (.уровень)\nend\n\nwhen flag clicked\nhide\n\n@свет\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [начало проекта v]\nshow\nforever\n    go to [back v] layer\n    go to (игрок v)\nend\n\nwhen I receive [начало проекта v]\nforever\n    repeat (8)\n        change size by (6)\n    end\n    repeat (8)\n        change size by (-6)\n    end\nend\n\n@обложка\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    play sound [melodiya-nochi--i-zvezd v] until done\nend\n\n@Заставка\n\nwhen flag clicked\nhide\nerase all\npen up\nset pen color to (#0a9c00)\nset pen size to (200)\ngo to x: (-240) y: (160)\nrepeat (5)\n    repeat (6)\n        pen down\n        move (80) steps\n    end\n    set x to (-240)\n    change y by (-80)\nend\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nrepeat (5)\n    wait (0.3) seconds\n    create clone of (_myself_ v)\n    next costume\nend\nwait (1) seconds\nbroadcast (начало проекта v)\nerase all\n\nwhen I start as a clone\nshow\nset size to (260) %\nrepeat (8)\n    change size by (-20)\nend\n\nwhen I receive [начало проекта v]\ndelete this clone\n\n
v0.1.12\n=========================================\n■■■■■■■■■■■■      РУССКИЙ     ■■■■■■■■■■■■\n=========================================\nКоличество уровней -         14\nКоличество скинов -            1 \nКоличество видом света -   1\n■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n                          Список версий:\n0.1.1  -- Сделана игра.\n0.1.5  -- Добавлено 3 уровня.\n0.1.9 --  Добавлен ефект света и счет.\n0.1.12 -- Добавлено 3 уровня.\n=========================================\n■■■■■■■■■■■■      ENGLISH     ■■■■■■■■■■■■\n=========================================\nNumber of levels - 14\nNumber of skins - 1\nNumber of types of light - 1\n■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n                           Version list:\n0.1.1 - The game is made.\n0.1.5 - Added 3 levels.\n0.1.9 - Added light effect and score.\n0.1.12 - Added 3 levels.