X'mas platformer クリスマスプラットフォーマー #game #platformer #X'mas
@Stage\n\nwhen flag clicked\nswitch backdrop to (tokyo-famous1 v)\nforever\n    play sound [https___scratch v] until done\nend\n\n@player\n\ndefine 初期設定\nset [x v] to [0]\nset [y v] to [0]\nset rotation style [left-right v]\ngo to x: (-173) y: (-70)\nset size to (40) %\nswitch costume to (前 v)\n\nwhen flag clicked\nshow\n初期設定\nforever\n    if <<key (right arrow v) pressed?> or <<<mouse down?> and <(x position) < (mouse x)>> or <key (d v) pressed?>>> then\n        switch costume to (前 v)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<<mouse down?> and <(mouse x) < (x position)>> or <key (d v) pressed?>>> then\n        switch costume to (後ろ v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.89))\n    change x by (x)\n    if <touching (stage v)?> then\n        change y by (1)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change y by (1)\n                        if <touching (stage v)?> then\n                            change y by (-5)\n                            if <(x) < [0]> then\n                                set [x v] to [10]\n                            else\n                                set [x v] to [-10]\n                            end\n                            set [y v] to [15]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (stage v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <<<mouse down?> and <(y position) < (mouse y)>> or <key (w v) pressed?>>> then\n        if <touching (stage v)?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <[240] < (x position)> then\n        broadcast (new stage v)\n        初期設定\n    end\n    if <touching (障害物 v)?> then\n        初期設定\n    end\n    if <(y position) = [-193]> then\n        初期設定\n    end\nend\n\n@Stage\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [new stage v]\nnext costume\n\n@障害物\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [new stage v]\nnext costume\n\n@サムネ\n\nwhen flag clicked\nforever\n    change [ghost v] effect by (5)\nend\n\n