Easy platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\nwhen I receive [背景次 v]\nif <([costume # v] of [地面です v]) = [4]> then\n    switch backdrop to (直前 v)\nelse\n    if <([costume # v] of [地面です v]) = [5]> then\n        switch backdrop to (真っ黒 v)\n    else\n        switch backdrop to (背景1 v)\n    end\nend\n\n@スプライト9\n\nwhen I receive [棘つぎ v]\nnext costume\n\nwhen I receive [ゲーム開始 v]\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nhide variable [☁ あ v]\nchange [☁ あ v] by (1)\n\n@地面です\n\nwhen flag clicked\nhide\n\nwhen I receive [背景次 v]\nif <not <(costume [number v]) = [10]>> then\n    next costume\n    broadcast (棘つぎ v)\nend\n\nwhen I receive [ゲーム開始 v]\nshow\nswitch costume to (コスチューム1 v)\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (スクリプトを止める v)\n    end\nend\n\nwhen I receive [アプリ終了 v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nbroadcast (ゲーム開始 v)\n\n@一つ目小僧\n\nwhen I receive [ゲーム開始 v]\nchange [☁ ☁︎ v] by (1)\nswitch costume to (通常 v)\ngo to x: (-211) y: (-48)\nset [判定 v] to [1]\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    set size to (100) %\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\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 <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                start sound [Jump v]\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\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 <<key (up arrow v) pressed?> and <touching (地面です v)?>> then\n        start sound [Jump v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching (スプライト9 v)?> or <(y position) < [-180]>> then\n        go to x: (-211) y: (-60)\n    end\n    if <(x position) > [222]> then\n        broadcast (背景次 v)\n    end\n    if <key (down arrow v) pressed?> then\n        switch costume to (下 v)\n    else\n        switch costume to (通常 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [ゲーム開始 v]\nforever\n    play sound [Nebula v] until done\nend\n\nwhen I receive [棘つぎ v]\ngo to x: (-211) y: (-48)\n\n@スプライト1\n\nwhen flag clicked\nset [変数 v] to [0]\nforever\n    change [変数 v] by (5)\nend\n\nforever\n\nwhen flag clicked\ngo to x: (217) y: (160)\nswitch costume to (コスチューム2 v)\nset size to (100) %\ncreate clone of (_myself_ v)\nforever\n    set size to ((115) + (([sin v] of (変数) ) * (5))) %\n    go to [back v] layer\nend\n\nwhen I start as a clone\nswitch costume to (コスチューム1 v)\nforever\n    set size to ((130) + (([sin v] of (変数) ) * (13))) %\n    go to [back v] layer\nend\n\nset size to (150) %\n\n@スプライト2\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n
矢印キーで操作できます。\nタブレット・スマホには対応していません。