Platformer（ゴミ）

Instructions: 矢印キー・ｗ,a,dで移動できます。\nYou can move with the arrow keys w, a, d.\nーーーーーーーーーーーーーーーーーーーーーーーーー\n新作\nhttps://scratch.mit.edu/projects/810781497/

@Stage\n\nwhen flag clicked\nshow variable [かかった時間 v]\nswitch backdrop to (背景1 v)\nforever\n    broadcast (スタート v)\n    play sound [SUMMER-TRIANGLE-_-フリーBGM-DOVA-SYNDROME-OFFICIAL-YouTube-CHANNEL-SkQihFHiWt0 v] until done\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [1]> then\n        switch backdrop to (背景1 v)\n    end\n    if <([costume # v] of [地面 v]) = [10]> then\n        switch backdrop to (背景2 v)\n    end\n    if <([costume # v] of [地面 v]) = [12]> then\n        switch backdrop to (背景1 v)\n    end\nend\n\nwhen flag clicked\nset [かかった時間 v] to [0]\nforever\n    wait (1) seconds\n    change [かかった時間 v] by (1)\nend\n\nwhen I receive [ゴール v]\nset [かかった時間 v] to (かかった時間)\n\n@プレイヤー\n\ndefine 初期\nset size to (35) %\nset rotation style [left-right v]\nset [y v] to [0]\nset [x v] to [0]\ngo to x: (-215) y: (-100)\nshow\n\nwhen I receive [スタート v]\n初期\nforever\n    switch costume to (通常 v)\nend\n\nwhen I receive [スタート v]\nforever\n    set rotation style [left-right v]\n    change x by (x)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [x v] by (1.5)\n        switch costume to (右 v)\n        if <<touching color (#9a5a00)?> or <touching color (#535353)?>> then\n            set [x v] to [0]\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                set [x v] to [-15]\n                set [y v] to [21]\n                start sound [ジャンプの着地 v]\n            end\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (90)\n        change [x v] by (-1.5)\n        switch costume to (左 v)\n        if <<touching color (#9a5a00)?> or <touching color (#535353)?>> then\n            set [x v] to [0]\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                set [x v] to [15]\n                set [y v] to [21]\n                start sound [ジャンプの着地 v]\n            end\n        end\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (通常 v)\n    end\n    set [x v] to ((x) * (0.9))\nend\n\nwhen I receive [スタート v]\nforever\n    change y by (y)\nend\n\nwhen I receive [sibo- v]\ngo to x: (-215) y: (-100)\n\nwhen I receive [next v]\n初期\n\nwhen I receive [sibo- v]\nchange [死んだ回数 v] by (1)\nstart sound [Crazy Laugh v]\ngo to x: (-215) y: (-100)\n\nwhen I receive [スタート v]\nforever\n    if <touching (スイカ v)?> then\n        broadcast (sibo- v)\n    end\nend\n\nwhen flag clicked\nshow\nset [死んだ回数 v] to [0]\nforever\n    if <<touching color (#04ec00)?> or <touching color (#000000)?>> then\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [ぷよん v]\n            set [y v] to [20]\n            if <<touching color (#9a5a00)?> or <touching color (#535353)?>> then\n                set [y v] to [-5 ]\n            end\n        end\n    else\n        change [y v] by (-2)\n    end\nend\n\nwhen I receive [ゴール v]\nplay sound [Cheer v] until done\n\n@地面\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (a v)\n    end\nend\n\nwhen flag clicked\nset [ステージ v] to [1]\n\nwhen I receive [next v]\nchange [ステージ v] by (1)\n\n@スプライト1\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nforever\n    if <touching (プレイヤー v)?> then\n        broadcast (NEXT v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <([costume # v] of [地面 v]) = [1]> then\n        switch costume to (コスチューム1 v)\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\nforever\n    if <touching (プレイヤー v)?> then\n        broadcast (sibo- v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <([costume # v] of [地面 v]) = [1]> then\n        switch costume to (コスチューム1 v)\n    end\nend\n\n@スイカ\n\nwhen flag clicked\n\ndefine ido-\nforever\n    if <([costume # v] of [地面 v]) = [1]> then\n        switch costume to (コスチューム1 v)\n        point in direction (90)\n        go to x: (-38) y: (-120)\n        show\n    end\n    if <([costume # v] of [地面 v]) = [2]> then\n        hide\n    end\n    if <([costume # v] of [地面 v]) = [3]> then\n        hide\n    end\n    if <([costume # v] of [地面 v]) = [4]> then\n        show\n        point in direction (0)\n        go to x: (-9) y: (-116)\n    end\n    if <([costume # v] of [地面 v]) = [5]> then\n        go to x: (195) y: (23)\n        show\n    end\n    if <([costume # v] of [地面 v]) = [6]> then\n        hide\n    end\n    if <([costume # v] of [地面 v]) = [7]> then\n        hide\n    end\n    if <([costume # v] of [地面 v]) = [8]> then\n        go to x: (0) y: (-4)\n        show\n        switch costume to (コスチューム3 v)\n        turn left (6) degrees\n    end\n    if <([costume # v] of [地面 v]) = [9]> then\n        hide\n    end\n    if <([costume # v] of [地面 v]) = [10]> then\n        switch costume to (コスチューム1 v)\n        point in direction (-90)\n        go to x: (113) y: (78)\n        show\n    end\n    if <([costume # v] of [地面 v]) = [11]> then\n        switch costume to (コスチューム4 v)\n        point in direction (90)\n        go to x: (4) y: (39)\n        show\n    end\n    if <([costume # v] of [地面 v]) = [12]> then\n        hide\n    end\n    if <([costume # v] of [地面 v]) = [13]> then\n        go to x: (-40) y: (-119)\n        show\n        switch costume to (コスチューム5 v)\n    end\n    if <([costume # v] of [地面 v]) = [14]> then\n        hide\n    end\nend\n\nwhen flag clicked\nido-\n\nhide\n\ngo to x: (48) y: (37)\n\nwait (1) seconds\n\nswitch costume to (コスチューム4 v)\npoint in direction (90)\ngo to x: (4) y: (39)\nshow\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nwait (0.0001) seconds\nhide\n\nshow\n\n@goal\n\nwhen flag clicked\ngo to x: (-75) y: (29)\nhide\n\nwhen I receive [a v]\nforever\n    show\n    if <touching (プレイヤー v)?> then\n        broadcast (ゴール v)\n    end\nend\n\nwhen flag clicked\nhide\n\n