トトロ(前編)~My neighbor Totoro Platformer~
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to ([costume # v] of [すてぇーじ v])\nend\n\nwhen flag clicked\nforever\n    play sound [トトロ v] until done\nend\n\n@主人公的存在(？)\n\nwhen flag clicked\nshow\n登場\nforever\n    動き\nend\n\ndefine 登場\nset size to (80) %\ngo to x: (-190) y: (-30)\nset [y v] to [0]\nset [x v] to [0]\nset rotation style [left-right v]\npoint in direction (90)\n\ndefine 動き\nchange [y v] by (-1)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>> then\n    change [x v] by (1)\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> then\n    change [x v] by (-1)\n    point in direction (-90)\nend\nset [x v] to ((X) * (0.88))\nchange x by (X)\nrepeat (8)\n    if <touching (すてぇーじ v)?> then\n        change y by (1.1)\n    end\nend\nif <touching (すてぇーじ v)?> then\n    change x by (() - (X))\n    change y by (-8.8)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>> then\n        set [y v] to [11]\n        set [x v] to ((7) - ((14) * <[0] < (X)>))\n    end\nend\nchange y by (Y)\nif <touching (すてぇーじ v)?> then\n    change y by (() - (Y))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <touching (すてぇーじ v)?> then\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>> then\n        set [y v] to [13]\n    end\nend\nchange y by (1)\nif <touching (ドング・リ v)?> then\n    start sound [取った！！ v]\n    登場\n    change [ステージ v] by (1)\n    broadcast (音 v)\nend\nif <(y position) < [-180]> then\n    登場\nend\n\n@すてぇーじ\n\nwhen flag clicked\nhide variable [ステージ v]\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nset [ステージ v] to [1]\ngo to [back v] layer\nforever\n    switch costume to (join (letter (1) of (ステージ)) (letter (2) of (ステージ)))\n    if <(ステージ) = [1]> then\n        repeat (5)\n            change size by (0.5)\n            change y by (0.5)\n        end\n        repeat (5)\n            change size by (-0.5)\n            change y by (-0.5)\n        end\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nforever\nend\n\nif <(変数) = [1]> then\n    next costume\n    set [変数 v] to [0]\nend\n\nwhen I receive [音 v]\nif <(ステージ) = [2]> then\n    wait (0.5) seconds\n    start sound [マックロクロスケ？ v]\nend\nif <(ステージ) = [5]> then\n    wait (0.5) seconds\n    start sound [トトロっていうのね v]\nend\n\n@集合！\n\nwhen flag clicked\nhide\n\n@ドング・リ\n\nwhen flag clicked\nreset timer\ngo to x: (0) y: (0)\nforever\n    show\n    switch costume to ([costume # v] of [すてぇーじ v])\n    broadcast (メッセージ1 v)\nend\n\nwhen I receive [メッセージ1 v]\nshow\nforever\n    change y by ([cos v] of ((timer) * (100)) )\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム7 v)\n    end\nend\n\n@タァァァァァァボゥ\n\nwhen flag clicked\nforever\n    set [たーぼ v] to [0]\n    wait (0.001) seconds\n    if <[3] < (たーぼ)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    change [たーぼ v] by (1)\nend\n\n@Samune ☆\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nrepeat (10)\n\n
〜English〜(日本語は下へ！)\nIt is mobile compatible.You can also move it with arrow keys or WASD keys.\nFollow the acorns to the last stage!Have fun! !\nThe story has been shortened due to the author's schedule.I'm sorry.\n〜日本語(Japanese)〜\nモバイル対応です。矢印キーやWASDキーで移動することもできます。\nドングリを追って最後のステージまで楽しんで来てね！\nー重要事項ー\n・メイちゃんの命を大切にして下さい。\n・作者の予定により、ストーリーが短縮されました。申し訳ありません。あと絵も雑でごめん。\n\n\n\nメイの画像元https://www.ghibli.jp/works/totoro/#&gid=1&pid=18\n音楽\nhttps://scratch.mit.edu/projects/115306132\nメイの声\nhttps://scratch.mit.edu/projects/553714521\nターボ防止\nhttps://scratch.mit.edu/projects/404374412