【#3】*ʙʀɪᴄᴋ* Minecraft Platformer  @popopo19 #Games
@Stage\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nswitch backdrop to (背景1 v)\n\nwhen flag clicked\nforever\n    play sound [よちよち歩き v] until done\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [10]> then\n        wait (0.5) seconds\n        broadcast (ゲームクリアー v)\n    end\nend\n\nrepeat until <(ステージ) = [10]>\n\nwhen I receive [ゲームクリアー v]\nshow variable [☁ 世界記録 v]\nhide variable [タイム v]\nshow variable [自分のタイム v]\ngo to [front v] layer\nif <(☁ 世界記録) > (自分のタイム)> then\n    set [☁ 世界記録 v] to (自分のタイム)\nend\ngo to [front v] layer\nstop [all v]\n\nwhen flag clicked\nhide variable [自分のタイム v]\nforever\n    set [自分のタイム v] to (timer)\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nswitch backdrop to (背景1 v)\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nhide variable [見ましたか? v]\n\n@キューブ\n\nwhen flag clicked\nforever\n    if <<touching color (#ff0000)?> or <<<(y position) < [-175]> or <touching (棘 v)?>> or <<<touching (スプライト20 v)?> or <touching (罠 v)?>> or <touching (マグマ v)?>>>> then\n        例のあれ\n    end\nend\n\ndefine 例のあれ\nstart sound [Pew v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nshow\nbroadcast (ゲージ減少 v)\nchange [タヒんだ数 v] by (1)\n\nwhen flag clicked\nforever\n    if <[239] < (x position)> then\n        if <not <(ステージ) = [10]>> then\n            broadcast (NEXT v)\n            go to x: (-200) y: (46)\n            set [x v] to [0]\n            set [y v] to [0]\n            change [ステージ v] by (1)\n            set [シーン v] to [1]\n        end\n    end\nend\n\ndefine 次のステージ\ngo to x: (-200) y: (-103)\nset [x v] to [0]\nset [y v] to [0]\nchange [ステージ v] by (1)\n\ndefine 壁ジャンプ\nchange [y v] by (-1)\nchange y by (y)\nif <touching (スプライト1 v)?> then\n    change y by ((0) - (y))\n    set [y v] to [0]\nend\nchange y by (-2)\nif <<<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>> and <touching (スプライト1 v)?>> then\n    start sound [cursor7 v]\n    set [y v] to [13]\nend\nchange y by (1)\n\nhide\n\nwhen I receive [kakusu v]\n\nwhen I receive [解除 v]\nshow\ngo to x: (-200) y: (46)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [解除 v]\n\nchange [ステージ v] by (1)\n\nwhen I receive [next v]\nset [シーン v] to [0]\n\nwhen I receive [解除 v]\nshow\nset [シーン v] to [1]\n\nwhen I receive [今だよー v]\n\nwhen I receive [戻す v]\ngo to x: (-194) y: (46)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nset [ステージ v] to [1]\n\nwhen I receive [start v]\n\nwhen flag clicked\nset [シーン v] to [1]\ngo to x: (-194) y: (46)\ngo to [front v] layer\nshow\nclear graphic effects\nswitch costume to (コスチューム3 v)\nset size to (75) %\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-194) y: (-10)\nset rotation style [left-right v]\npoint in direction (90)\nshow\nforever\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    change x by (x)\n    if <touching (スプライト1 v)?> then\n        change y by (1)\n        if <touching (スプライト1 v)?> then\n            change y by (1)\n            if <touching (スプライト1 v)?> then\n                change y by (1)\n                if <touching (スプライト1 v)?> then\n                    change y by (1)\n                    if <touching (スプライト1 v)?> then\n                        change y by (1)\n                        if <touching (スプライト1 v)?> then\n                            change y by (1)\n                            if <touching (スプライト1 v)?> then\n                                change x by ((0) - (x))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>> then\n                                    start sound [ジャンプの着地 v]\n                                    if <[0] < (x)> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                    set [y v] to [13]\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [x v] to ((x) * (0.88))\n    壁ジャンプ\n    if <touching (ジャンプ台 v)?> then\n        set [y v] to [20]\n        start sound [Jump v]\n        broadcast (バネ v)\n    end\nend\n\nif <(シーン) = [1]> then\n\nwhen flag clicked\n\n\n\nwhen I receive [game over v]\nhide\n\n@ジャンプ台\n\nwhen I receive [バネ v]\nswitch costume to (コスチューム2 v)\nwait (0.5) seconds\nswitch costume to (コスチューム1 v)\nwait (1) seconds\n\nwhen flag clicked\nhide\ngo to x: (-6) y: (-115)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nhide\nforever\n    if  then\n        if  then\n            point in direction (105)\n            go to x: (-18) y: (-140)\n            show\n        end\n    else\n        if <not > then\n            hide\n        end\n    end\nend\n\nset drag mode [not draggable v]\n\n\n\nif <mouse down?> then\n\n@罠\n\nwhen flag clicked\nhide\ngo [backward v] (3) layers\npoint in direction (90)\ngo to x: (141) y: (-147)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nforever\n    if <<(ステージ) = [2]> or <<(ステージ) = [3]> or <<(ステージ) = [5]> or <<(ステージ) = [8]> or <<(ステージ) = [6]> or <(ステージ) = [9]>>>>>> then\n        if <(ステージ) = [2]> then\n            switch costume to (コスチューム1 v)\n            show\n        end\n        if <(ステージ) = [3]> then\n            go to x: (92) y: (-146)\n            switch costume to (コスチューム2 v)\n            show\n        end\n        if <(ステージ) = [5]> then\n            switch costume to (wtr v)\n            show\n        end\n        if <(ステージ) = [6]> then\n            switch costume to (cactus2 v)\n            go to x: (65) y: (-157)\n            show\n        end\n        if <(ステージ) = [8]> then\n            go to x: (180) y: (-146)\n            show\n        end\n        if <(ステージ) = [9]> then\n            show\n            go to x: (172) y: (87)\n        end\n    else\n        if <not <<(ステージ) = [2]> or <<(ステージ) = [3]> or <<(ステージ) = [5]> or <<(ステージ) = [6]> or <<(ステージ) = [8]> or <(ステージ) = [9]>>>>>>> then\n            hide\n        end\n    end\nend\n\n@マグマ\n\nwhen flag clicked\nhide\ngo [backward v] (99) layers\npoint in direction (90)\ngo to x: (-22) y: (-12)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nforever\n    if  then\n        if  then\n            show\n        end\n    else\n        if  then\n            hide\n        end\n    end\nend\n\n@棘\n\nif <(ステージ) = [9]> then\n    show\n    go to x: (-20) y: (-115)\n    switch costume to (コスチューム2 v)\nend\n\nwhen flag clicked\nhide\ngo to x: (-25) y: (-100)\nswitch costume to (コスチューム1 v)\nset size to (200) %\nforever\n    if  then\n        if  then\n            show\n            go to x: (46) y: (-165)\n        end\n    else\n        if <not > then\n            hide\n        end\n    end\nend\n\nif  then\n    go to x: (63) y: (-159)\n    switch costume to (コスチューム1 v)\n    show\n    if  then\n        go to x: (-106) y: (-159)\n        show\n    end\nend\n\nswitch costume to (コスチューム2 v)\nhide\n\nwhen flag clicked\nforever\n    \nend\n\nif <(ステージ) = [5]> then\n    show\n    set size to (150) %\n    go to x: (5) y: (-87)\nend\n\nwhen flag clicked\nforever\n\nshow\nswitch costume to (コスチューム1 v)\ngo to x: (-11) y: (-100)\n\n@Love fave\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (-289)\n\ngo [forward v] (1) layers\n\nwhen flag clicked\nhide\ngo [forward v] (99) layers\nswitch costume to (コスチューム1 v)\nset size to (100) %\nhide\nforever\n    if <(ステージ) = [10]> then\n        if <(ステージ) = [10]> then\n            show\n            go to x: (-2) y: (-289)\n        end\n    else\n        if <not <(ステージ) = [10]>> then\n            hide\n        end\n    end\nend\n\n@cooltext400889489071722\n\nwhen flag clicked\nhide\ngo [forward v] (99) layers\nswitch costume to (コスチューム1 v)\nset size to (100) %\nhide\nforever\n    if <(ステージ) = [10]> then\n        if <(ステージ) = [10]> then\n            show\n            go to x: (1) y: (74)\n        end\n    else\n        if <not <(ステージ) = [10]>> then\n            hide\n        end\n    end\nend\n\n@光\n\nwhen flag clicked\ngo to x: (240) y: (183)\ngo to [back v] layer\nshow\nforever\n    repeat (50)\n        change size by (2)\n    end\n    repeat (50)\n        change size by (-2)\n    end\nend\n\n@雲\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nrepeat (10)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (5) seconds\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nshow\ngo to x: (pick random (330) to (-140)) y: (140)\nglide (pick random (5) to (7)) secs to x: (-330) y: (y position)\ndelete this clone\n\n@地面の影\n\nwhen flag clicked\ngo to [back v] layer\nshow\npoint in direction (90)\n\npoint in direction (82)\n\n@人の影\n\nwhen flag clicked\nshow\nset [ghost v] effect to (55)\nforever\n    go to (キューブ v)\nend\n\nwhen I receive [ゲームクリアー v]\nhide\n\nwhen I receive [game over v]\nhide\n\n@time\n\nstop [other scripts in sprite v]\n\ndefine Time (x) (y) (表示する桁)\nshow\nbroadcast (削除 v)\nset [time表示用 v] to [0]\nset size to (大きさ) %\ngo to x: ((x) + ((0.425) * (size))) y: ((y) - ((0.25) * (size)))\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nchange x by ((((42.5) + (10)) * (size)) / (100))\nrepeat (length of ([floor v] of (timer) ))\n    change x by (((11.5) * (size)) / (100))\n    change [time表示用 v] by (1)\n    switch costume to ((letter (Time表示用) of (timer)) + (2))\n    create clone of (_myself_ v)\n    change x by (((11.5) * (size)) / (100))\nend\nif <not <((表示する桁) * (1)) = [0]>> then\n    change x by ((0.065) * (size))\n    change [time表示用 v] by (1)\n    switch costume to (コスチューム12 v)\n    create clone of (_myself_ v)\n    change x by ((0.065) * (size))\n    repeat ((表示する桁) - (letter (1) of ((表示する桁) - (3))))\n        change x by (((11.5) * (size)) / (100))\n        change [time表示用 v] by (1)\n        switch costume to ((letter (Time表示用) of (timer)) + (2))\n        create clone of (_myself_ v)\n        change x by (((11.5) * (size)) / (100))\n    end\nend\nhide\n\nwhen I receive [削除 v]\ndelete this clone\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nreset timer\nswitch costume to (コスチューム13 v)\nbroadcast (表示 v)\n\nwhen I receive [表示 v]\nforever\n    Time [-220] [150] []\nend\n\nwhen flag clicked\nset [大きさ v] to [100]\n\nwhen I start as a clone\ngo to [front v] layer\n\nwhen flag clicked\nhide variable [タイム v]\nset [タイム v] to [0]\nforever\n    change [タイム v] by (1)\n    wait (1) seconds\nend\n\n@テキスト\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [ゲームクリアー v]\ngo to x: (-3) y: (32)\nshow\nshow variable [タイム v]\n\n@Atmosphere\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.75) to (1)) seconds\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (0) to (50))\nset size to (pick random (50) to (110)) %\npoint in direction (pick random (-90) to (90))\ngo to [back v] layer\ngo to x: (pick random (-200) to (200)) y: (-180)\nrepeat until <(y position) > [150]>\n    change y by (pick random (5) to (10))\nend\nhide\ndelete this clone\n\n@サムネ\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\ngo to [front v] layer\n\n@スプライト2\n\nwhen flag clicked\nset [タヒんだ数 v] to [0]\nshow\ngo to [front v] layer\ngo to x: (32) y: (125)\nswitch costume to (コスチューム1 v)\n\nwhen I receive [ゲージ減少 v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(タヒんだ数) = [3]> then\n        broadcast (Game Over v)\n        hide\n        stop [all v]\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game over v]\nstart sound [Pew v]\nshow\nstop [all v]\n\n@cooltext401754082775058\n\nwhen flag clicked\nhide\n\n
【参考】\nキャラクター 影 @qamina31様\n\n新作です! https://scratch.mit.edu/projects/632488771/ \n\n旗は2回押してください。  \n\n日本語の説明は下です。\n\n The arrow keys are used to control the game. Or you can tap in the direction you want to go to advance.  \n\nPCは、十字キーで操作します。 スマホもしくはタブレットは、進みたい方向にタップすると進むことができます。