Platformer プラットフォーマー
@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen I receive [следующий lvl v]\nwait (2) seconds\nnext backdrop\n\n@player\n\nwhen flag clicked\nhide\n\nwhen I receive [начать игру v]\ngo to x: (-226) y: (-100)\nshow\nset size to (120) %\nclear graphic effects\ngo to x: (-226) y: (-100)\nset rotation style [left-right v]\nset [lvl v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (land v)?> then\n        change y by (1)\n        if <touching (land v)?> then\n            change y by (1)\n            if <touching (land v)?> then\n                change y by (1)\n                if <touching (land v)?> then\n                    change y by (1)\n                    if <touching (land v)?> then\n                        change y by (1)\n                        if <touching (land v)?> then\n                            change y by (1)\n                            if <touching (land v)?> then\n                                change y by (-6)\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (land v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (land v)?> and <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y v] to [13]\n    end\n    change y by (1)\n    if <touching (finish v)?> then\n        broadcast (следующий lvl v)\n        hide\n        wait (0.7) seconds\n        change [lvl v] by (1)\n        wait (1.8) seconds\n        show\n        go to x: (-226) y: (-100)\n    end\n    if <<touching (lava v)?> or <<touching (mstr 1 v)?> or <<touching (saw v)?> or <touching color (#cb4343)?>>>> then\n        анимация смерти\n        go to x: (-226) y: (-100)\n        clear graphic effects\n    end\nend\n\nwait (0.5) seconds\nchange [lvl v] by (1)\nwait (2) seconds\nshow\ngo to x: (-226) y: (-100)\n\nwhen I receive [начать игру v]\nforever\n    switch costume to (2 v)\n    repeat until <not <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>>\n        switch costume to (2 v)\n        wait (0.01) seconds\n        switch costume to (3 v)\n        wait (0.01) seconds\n        switch costume to (4 v)\n        wait (0.01) seconds\n        switch costume to (5 v)\n        wait (0.01) seconds\n        switch costume to (6 v)\n        wait (0.01) seconds\n        switch costume to (7 v)\n        wait (0.01) seconds\n        switch costume to (8 v)\n        wait (0.01) seconds\n        switch costume to (9 v)\n        wait (0.01) seconds\n        switch costume to (2 v)\n        wait (0.01) seconds\n    end\nend\n\ndefine анимация смерти\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nset [y v] to [2]\nif <(x) > [0]> then\n    set [x v] to [-5]\nelse\n    set [x v] to [5]\nend\n\nwhen flag clicked\nset [lvl v] to [1]\n\n@land\n\nwhen I receive [начать игру v]\nshow\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [следующий lvl v]\nwait (2) seconds\nnext costume\n\n@lava\n\nwhen flag clicked\nhide\n\nwhen I receive [начать игру v]\nshow\ngo to [back v] layer\nswitch costume to (1 v)\n\nwhen I receive [следующий lvl v]\nwait (2) seconds\nnext costume\n\n@finish\n\nwhen flag clicked\nhide\n\nwhen I receive [начать игру v]\nshow\ngo to [back v] layer\nswitch costume to (1 v)\n\nwhen I receive [следующий lvl v]\nwait (2) seconds\nnext costume\n\n@mstr 1\n\nwhen flag clicked\nhide\n\nwhen I receive [начать игру v]\nforever\n    hide\n    if <(lvl) = [6]> then\n        show\n        switch costume to (1 v)\n        go to x: (0) y: (0)\n        repeat until <(lvl) = [7]>\n            repeat (15)\n                change y by (-10)\n            end\n            repeat (15)\n                change y by (10)\n            end\n            wait (0.5) seconds\n        end\n    end\n    if <(lvl) = [7]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (2 v)\n        repeat until <(lvl) = [8]>\n            repeat (20)\n                change y by (-10)\n            end\n            repeat (20)\n                change y by (10)\n            end\n            wait (1) seconds\n        end\n    end\n    if <(lvl) = [8]> then\n        go to x: (0) y: (0)\n        hide\n    end\nend\n\n@mstr 2\n\nwhen flag clicked\nhide\nforever\n    pr \nend\n\ndefine pr \nforever\n    hide\n    if <(lvl) = [8]> then\n        show\n        go to [back v] layer\n        switch costume to (1 v)\n        go to [back v] layer\n        repeat until <(lvl) = [9]>\n            wait (1) seconds\n            switch costume to (1 v)\n            wait (1.5) seconds\n            switch costume to (2 v)\n            wait (0.5) seconds\n            switch costume to (3 v)\n        end\n    end\n    if <(lvl) = [9]> then\n        show\n        go to [back v] layer\n        switch costume to (4 v)\n        go to [back v] layer\n        repeat until <(lvl) = [10]>\n            wait (1) seconds\n            switch costume to (4 v)\n            wait (1.5) seconds\n            switch costume to (5 v)\n            wait (0.5) seconds\n            switch costume to (6 v)\n        end\n    end\n    if <(lvl) = [10]> then\n        show\n        go to [back v] layer\n        switch costume to (7 v)\n        go to [back v] layer\n        repeat until <(lvl) = [11]>\n            wait (1) seconds\n            switch costume to (7 v)\n            wait (1.5) seconds\n            switch costume to (8 v)\n            wait (0.5) seconds\n            switch costume to (9 v)\n        end\n    end\n    if <(lvl) = [11]> then\n        hide\n    end\nend\n\n@saw\n\nwhen flag clicked\nhide\n\nwhen I receive [начать игру v]\nforever\n    pr\nend\n\ndefine pr\nforever\n    hide\n    if <(lvl) = [11]> then\n        show\n        go to x: (-30) y: (45)\n        repeat until <(lvl) = [12]>\n            turn right (10) degrees\n        end\n    end\n    if <(lvl) = [12]> then\n        show\n        go to x: (126) y: (95)\n        repeat until <(lvl) = [13]>\n            repeat (30)\n                change x by (-10)\n            end\n            repeat (30)\n                change x by (10)\n            end\n        end\n    end\n    if <(lvl) = [13]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(lvl) = [12]> then\n        turn right (10) degrees\n    end\n    if <(lvl) = [13]> then\n        hide\n    end\nend\n\ngo to x: (126) y: (95)\n\n@saw 2\n\nwhen flag clicked\nhide\n\nwhen I receive [начать игру v]\nforever\n    pr\nend\n\ndefine pr\nforever\n    hide\n    if <(lvl) = [13]> then\n        switch costume to (1 v)\n        show\n        go to [back v] layer\n        go to x: (1) y: (6)\n        repeat until <(lvl) = [14]>\n            turn left (3.5) degrees\n        end\n    end\n    if <(lvl) = [14]> then\n        switch costume to (2 v)\n        show\n        go to [back v] layer\n        go to x: (-85) y: (-130)\n        create clone of (_myself_ v)\n        repeat until <(lvl) = [15]>\n            turn left (10) degrees\n        end\n    end\n    if <(lvl) = [15]> then\n        hide\n        delete this clone\n    end\nend\n\ngo to x: (1) y: (6)\n\nwhen I start as a clone\ngo to x: (100) y: (-130)\nrepeat until <(lvl) = [15]>\n    turn left (10) degrees\nend\nforever\n    if <(lvl) = [15]> then\n        delete this clone\n    end\nend\n\nrepeat until <(lvl) = [15]>\n    turn left (10) degrees\nend\n\n@Logo\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nbroadcast (1-1 v)\n\nwhen I receive [play v]\nhide\n\n@screen saver\n\nwhen flag clicked\nhide\n\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\n\n@screen saver 2\n\nwhen flag clicked\nswitch backdrop to (0 v)\n\nwhen I receive [play v]\nshow\ngo to [back v] layer\n\nwhen I receive [начать игру v]\nhide\n\nwhen I receive [начать игру v]\nhide\n\n@button "PLAY"\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo to [front v] layer\nswitch costume to (1 v)\nwait (1) seconds\nswitch costume to (2 v)\nforever\n    switch costume to (2 v)\n    if <touching (mouse-pointer v)?> then\n        switch costume to (3 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (начать игру v)\n\nwhen I receive [начать игру v]\nhide\n\ngo to x: (0) y: (7)\n\n@--1--\n\nwhen I receive [1-1 v]\nshow\nwait (2) seconds\ngo to [front v] layer\ngo to x: (0) y: (0)\nrepeat (20)\n    change x by (-8)\n    change y by (-8)\nend\nwait (0.1) seconds\nbroadcast (Play v)\n\nwhen I receive [play v]\nhide\n\n@level transition\n\nwhen flag clicked\nhide\n\nwhen I receive [следующий lvl v]\nshow\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10)\n    change y by (-10)\nend\nwait (0.5) seconds\nrepeat (45)\n    change x by (10)\n    change y by (10)\nend\n\n@-----\n\nwhen I receive [play v]\nhide\nwait (50) seconds\nshow\ngo to x: (-199) y: (-240)\nrepeat (7)\n    change y by (5)\nend\nwait (4) seconds\nrepeat (7)\n    change y by (-5)\nend\nhide\nstop [this script v]\n\n@music\n\nwhen flag clicked\nwait (3) seconds\nset volume to (40) %\nforever\n    play sound [hollow-knight-ost-enter-hallownest-youtubemp3free v] until done\nend\n\n
DOUBLE-CLICK THE GREEN FLAG!!!\nWelcome to Renew!! This is a game, not just for scratch, but for the Games 4 Change Contest. You can check it out at: https://gamesforchange.org/studentchallenge/about-the-competition/.\n(copy and paste the link into your search bar)\nMy game is about making sustainable cities, and how you can help!! In it are things you can do now to stop global warming.\n\nInstructions:\n  - WAD or arrow keys to move. Swipe on mobile.\n  - D or down arrow to crouch\n  - Avoid spikes\n  - Bounce on trampolines\n  - Win the game!!\n\nStory:\n  You are seeing the effects of global warming, such as droughts, wildfires, and flooding. You know that you need to stop it to save your planet for future generations, but how? You set out on a dangerous journey to gather information on how to build sustainable cities, and return to your town. Can you save the world? Play this game to find out!!\n