ペンペンのアクションゲーム①  (Penpen's platformer 1）
@Stage\n\nwhen flag clicked\nswitch backdrop to (背景１ v)\n\nwhen I receive [ゲームオーバー v]\nswitch backdrop to (ゲームオーバー v)\n\nwhen I receive [ゲームオーバー v]\nstart sound [chord v]\n\nwhen I receive [背景４へ v]\nswitch backdrop to (背景４ v)\n\nwhen I receive [背景５へ v]\nswitch backdrop to (背景５ v)\n\nwhen I receive [背景６へ v]\nswitch backdrop to (背景6 v)\n\nwhen I receive [背景７へ v]\nswitch backdrop to (背景７ v)\n\nwhen I receive [背景８へ v]\nswitch backdrop to (背景８ v)\n\nwhen flag clicked\nrepeat until <<(制限時間) = [0]> or <(backdrop [number v]) = [クリア！]>>\n    play sound [Athletic Theme- \(HD\).mp3 v] until done\nend\n\nwhen I receive [背景11 v]\nswitch backdrop to (背景11 v)\n\nwhen I receive [背景９ v]\nswitch backdrop to (背景９ v)\n\nwhen I receive [クリア v]\nwait (0.8) seconds\nswitch backdrop to (クリア！ v)\nstart sound [fairydust v]\nhide variable [制限時間 v]\nhide variable [何秒過ぎたか v]\nstop [all v]\n\nwhen I receive [背景２へ v]\nswitch backdrop to (背景3 v)\n\nwhen I receive [背景３へ v]\nswitch backdrop to (背景3 v)\n\nwhen I receive [背景12 v]\nswitch backdrop to (背景12 v)\n\nwhen I receive [背景13 v]\nswitch backdrop to (背景13 v)\n\nwhen I receive [背景14 v]\nswitch backdrop to (背景14 v)\n\nwhen I receive [背景15 v]\nswitch backdrop to (背景15 v)\n\nwhen I receive [ゲームオーバー v]\nstop all sounds\nwait (0.5) seconds\nstart sound [se_maoudamashii_onepoint31.mp3 v]\nhide variable [制限時間 v]\n\nwhen I receive [背景10 v]\nswitch backdrop to (背景10 v)\n\nwhen I receive [クリア v]\nset [☁ best clear time v] to [40]\nif <(☁ Best clear time) > ((200) - (制限時間))> then\n    set [☁ best clear time v] to ((200) - (制限時間))\n    broadcast (タイム更新！ v)\nend\n\nwhen flag clicked\nset [☁ best clear time v] to [40]\n\nwhen I receive [タイム更新！ v]\nplay sound [Tada v] until done\n\nwhen flag clicked\nplay sound [Snow Overworld- \(HD\).mp3 v] until done\n\nwhen flag clicked\nforever\n    show variable [ステージ名 v]\n    set [ステージ名 v] to (backdrop [name v])\nend\n\n@ペンペン\n\ndefine はじめの設定\nshow\nset size to (55) %\ngo to x: (-140) y: (0)\npoint in direction (90)\nset rotation style [left-right v]\n\nwhen flag clicked\nはじめの設定\nforever\n    if <not <touching color (#666666)?>> then\n        if <key (right arrow v) pressed?> then\n            右に動く\n        end\n        if <key (left arrow v) pressed?> then\n            左に動く\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (敵 v)?> then\n        broadcast (ゲームオーバー v)\n    end\nend\n\nwhen I receive [ゲームオーバー v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> or <key (space v) pressed?>> then\n        start sound [water drop v]\n        repeat (20)\n            change y by (8)\n        end\n    end\n    repeat until <<touching color (#003fff)?> or <touching color (#7f7f7f)?>>\n        change y by (-5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (ゲームオーバー v)\n    end\nend\n\nwhen I receive [背景２へ v]\nswitch backdrop to (ゲームオーバー v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景３へ v)\n    end\nend\n\nwhen I receive [背景３へ v]\nswitch backdrop to (背景3 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景４へ v)\n    end\nend\n\nwhen I receive [背景３へ v]\ngo to x: (-160) y: (-25)\n\nwhen I receive [背景４へ v]\nswitch backdrop to (背景4 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景５へ v)\n    end\nend\n\nwhen I receive [背景５へ v]\nswitch backdrop to (背景5 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景６へ v)\n    end\nend\n\nwhen I receive [背景６へ v]\nswitch backdrop to (背景6 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景７へ v)\n    end\nend\n\nwhen I receive [背景７へ v]\nswitch backdrop to (背景7 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景８へ v)\n    end\nend\n\nwhen I receive [背景８へ v]\nswitch backdrop to (背景8 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景９ v)\n    end\nend\n\nwhen I receive [クリア v]\nstart sound [game_maoudamashii_9_jingle07.mp3 v]\nhide\n\nwhen I receive [背景９ v]\nswitch backdrop to (背景9 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景10 v)\n    end\nend\n\nwhen I receive [背景10 v]\nswitch backdrop to (背景10 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景11 v)\n    end\nend\n\nwhen flag clicked\nshow variable [制限時間 v]\nset [制限時間 v] to [200]\nforever\n    wait (1) seconds\n    change [制限時間 v] by (-1)\n    if <(制限時間) = [0]> then\n        broadcast (ゲームオーバー v)\n        hide variable [何秒過ぎたか v]\n    end\nend\n\nwhen I receive [背景11 v]\nswitch backdrop to (背景11 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景12 v)\n    end\nend\n\nwhen flag clicked\nhide variable [何秒過ぎたか v]\nset [何秒過ぎたか v] to [0]\nforever\n    wait (1) seconds\n    set [何秒過ぎたか v] to ((200) - (制限時間))\n    if <(何秒過ぎたか) = [200]> then\n        broadcast (ゲームオーバー v)\n        hide variable [何秒過ぎたか v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(y position) = [−180]> then\n        broadcast (ゲームオーバー v)\n    end\nend\n\nwhen I receive [背景12 v]\nswitch backdrop to (背景12 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景13 v)\n    end\nend\n\ndefine 右に動く\npoint in direction (90)\nmove (5) steps\nnext costume\n\ndefine 左に動く\npoint in direction (-90)\nmove (5) steps\nnext costume\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景２へ v)\n    end\nend\n\nwhen I receive [背景２へ v]\ngo to x: (-140) y: (-45)\n\nwhen I receive [背景13 v]\nswitch backdrop to (背景13 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景14 v)\n    end\nend\n\nwhen I receive [背景14 v]\nswitch backdrop to (背景14 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (背景15 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(制限時間) = [150]> then\n        start sound [zoop v]\n        say [後150秒！] for (3) seconds\n    end\n    if <(制限時間) = [100]> then\n        start sound [bird v]\n        say [後100秒！] for (3) seconds\n        if <(制限時間) = [50]> then\n            start sound [cricket v]\n            say [後50秒！] for (3) seconds\n        end\n        if <(制限時間) = [10]> then\n            start sound [boing v]\n            say [10！] for (2) seconds\n        end\n        if <(制限時間) = [5]> then\n            start sound [rattle v]\n            say [5！] for (1) seconds\n        end\n        if <(制限時間) = [4]> then\n            start sound [hand clap v]\n            say [4！] for (1) seconds\n        end\n        if <(制限時間) = [3]> then\n            start sound [chomp v]\n            say [3！] for (1) seconds\n        end\n        if <(制限時間) = [2]> then\n            start sound [bell cymbal v]\n            say [2！] for (1) seconds\n        end\n        if <(制限時間) = [1]> then\n            start sound [crash cymbal v]\n            say [1！] for (1) seconds\n        end\n    end\nend\n\nwhen I receive [背景15 v]\nswitch backdrop to (背景15 v)\nforever\n    if <(x position) = [240]> then\n        broadcast (クリア v)\n    end\nend\n\n@敵\n\nwhen I receive [スタート v]\nhide\n\nwhen I receive [次へ v]\nshow\ngo to x: (191) y: (-63)\n\nwhen I receive [ゲームオーバー v]\nhide\n\nwhen flag clicked\nset size to (50) %\n\nwhen I receive [背景３へ v]\nforever\n    go to x: (171) y: (27)\n    wait (0.8) seconds\n    go to x: (171) y: (-31)\n    wait (0.8) seconds\nend\n\nwhen I receive [背景４へ v]\nforever\n    go to x: (136) y: (108)\nend\n\nwhen I receive [背景５へ v]\nforever\n    go to x: (212) y: (-7)\nend\n\nwhen I receive [背景６へ v]\nforever\n    go to x: (177) y: (79)\nend\n\nwhen I receive [背景７へ v]\nforever\n    hide\nend\n\nwhen I receive [クリア v]\nhide\n\n@足場\n\nwhen flag clicked\nhide\n\ndefine 背景16の動き\nshow\nset size to (50) %\ngo to x: (110) y: (0)\nforever\n    repeat (5)\n        change x by (10)\n        wait (1) seconds\n    end\n    repeat (5)\n        change x by (-10)\n        wait (1) seconds\n    end\nend\n\nwhen backdrop switches to [背景15 v]\n背景16の動き\n\nwhen I receive [クリア v]\nhide\n\n
私の作品がまとまったスタジオはこちら\nhttps://scratch.mit.edu/studios/26060782/\n日本語の説明は下にあります。\n\nThis game is Penpen for platformar.\nPenpen is move arrow keys.\nPenpen is red area into Game-over!\n\nペンペンのアクションゲームです。右ボタンで右へ、左ボタンで左へ、上ボタンで上へ、動きます。\n\n赤い所に触れると最初からやり直しです。\nステージは、15まであります。