witch!    #platformer  #プラットフォーマー
@Stage\n\nwhen flag clicked\nplay sound [13002 v] until done\n\n@アニメーション背景\n\nwhen flag clicked\ngo to x: (2) y: (-60)\ngo to [back v] layer\nforever\n    next costume\n    wait (0.01) seconds\nend\n\n@ステージ\n\nwhen I receive [goal v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (コスチューム4 v)\n\n@prayer\n\ndefine いてっ\nswitch costume to (1 v)\nset [y v] to [0]\nset [x v] to [0]\npoint in direction (90)\nset rotation style [all around v]\nset [y v v] to (pick random (15) to (18))\nstart sound [crashed oof v]\nbroadcast (最前面 v)\nrepeat until <(y position) < [-180]>\n    go to [front v] layer\n    turn right (Y v) degrees\n    change y by (Y v)\n    change [y v v] by (-1.5)\nend\nbroadcast (帽子 v)\nhide\nswitch costume to (1 v)\nwait (0.5) seconds\nbroadcast (始め v)\npoint in direction (90)\nset rotation style [left-right v]\n\nwhen I start as a clone\nif <(costume [name v]) = [2]> then\n    switch costume to (4 v)\nelse\n    switch costume to (3 v)\nend\nset size to (105) %\nset rotation style [all around v]\nclear graphic effects\npoint in direction (90)\ngo to (prayer v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [始め v]\nswitch costume to (1 v)\nset rotation style [left-right v]\ngo to x: (-201) y: (-50)\nshow\nset drag mode [not draggable v]\nif <touching (map v)?> then\n    go to x: (-201) y: (50)\nend\npoint in direction (90)\nforever\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [x v] by (-0.725)\n        create clone of (_myself_ v)\n        point in direction (-90)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [x v] by (0.725)\n        create clone of (_myself_ v)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n        change y by (1)\n        if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n            change y by (1)\n            if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n                change y by (1)\n                if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n                    change y by (1)\n                    if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n                        change y by (1)\n                        if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n                            change y by (1)\n                            if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n                                change x by ((x) * (-1))\n                                change y by (-5)\n                                if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                    start sound [jump v]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-8]\n                                    else\n                                        set [x v] to [8]\n                                    end\n                                    set [y v] to [14]\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    change y by (-1)\n    if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            start sound [Jump v]\n            set [y v] to [13]\n        end\n    end\n    if <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n        switch costume to (2 v)\n        if <[-166] > (y position)> then\n            go to x: (-199) y: (-60)\n        end\n        if <touching (とげ v)?> then\n            いてっ\n        end\n    else\n        switch costume to (1 v)\n    end\n    if <touching (とげ v)?> then\n        いてっ\n    end\n    if <<touching color (#ffba31)?> or <touching color (#ffba31)?>> then\n        start sound [jump2 v]\n        set [y v] to [18]\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (y)\n    if <<touching color (#ff56e0)?> or <touching color (#ffc7f5)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <(y position) < [-170]> then\n        go to x: (-201) y: (-50)\n    end\n    if <(x position) > [215]> then\n        broadcast (Goal v)\n        go to x: (-199) y: (-60)\n        wait (1.2) seconds\n    end\nend\n\nwhen flag clicked\nbroadcast (始め v)\n\n@帽子\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    go to x: (([x position v] of [prayer v]) + (16)) y: (([y position v] of [prayer v]) + (35))\n    if <([costume name v] of [prayer v]) = [2]> then\n        go to x: (([x position v] of [prayer v]) + (16)) y: (([y position v] of [prayer v]) + (20))\n    end\nend\n\nwhen I receive [帽子 v]\nhide\n\nwhen I receive [始め v]\nwait (0.1) seconds\nshow\ngo to [front v] layer\n\n@とげ\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム2 v)\n\nwhen I receive [goal v]\nnext costume\n\n@next\n\nwhen I receive [goal v]\ngo to [front v] layer\nshow\nstart sound [High Whoosh v]\nglide (0.15) secs to x: (0) y: (0)\nwait (1) seconds\nglide (0.15) secs to x: (-500) y: (0)\nhide\ngo to x: (500) y: (0)\n\nwhen flag clicked\nswitch costume to (コスチューム2 v)\nset [ghost v] effect to (10)\nhide\ngo to x: (500) y: (0)\n\n@sprite\n\nwhen flag clicked\nset [color v] effect to (100)\ngo to x: (-24) y: (252)\ngo to [front v] layer\nset [hop v] to [5]\nhide\nclear graphic effects\nforever\n    wait (0.3) seconds\n    set size to (100) %\n    set [ghost v] effect to (50)\n    create clone of (sprite v)\nend\n\nwhen I start as a clone\nshow\nset x to (pick random (300) to (-300))\nset [fall v] to (pick random (-10) to (10))\nset [x v] to (pick random ((HOP) * (-1)) to (HOP))\nforever\n    set size to (pick random (100) to (50)) %\n    set [ghost v] effect to (pick random (1) to (50))\n    change [fall v] by (-1)\n    change x by (X)\n    change y by (Fall)\n    if <(y position) < [-175]> then\n        delete this clone\n    end\n    if <[238] < ([abs v] of (x position) )> then\n        delete this clone\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\ngo to x: (0) y: (442)\nhide\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nswitch costume to (コスチューム2 v)\nshow\nglide (0.2) secs to x: (0) y: (240)\nglide (0.1) secs to x: (0) y: (0)\nglide (0.1) secs to x: (0) y: (10)\nglide (0.1) secs to x: (0) y: (0)\n\n
日本語は下です。\nA cute platformer wearing a hat.\n\nArrow key operation.\nSquat with the down arrow key.\nYou can also operate it with the mouse.\nSometimes there is a problem.\n\n帽子をかぶった、可愛いプラットフォーマーです。\n\n矢印キーで操作できます。\n下矢印キーでしゃがみます。\nモバイル対応です。\nたまにバグが起こります。\nターボモードでクリアできたら、あなたは神です。\n