スライミー、森へ帰ろう (Slimy, Let's go Back to the Forest)

Instructions: Use the arrow keys to move and jump.Go to the right of the screen and go ahead.\n【ストーリー】\nスライミーは森に住む小さな生き物です。ある日お昼寝をしているあいだにベリーと間違われて人間の家に持ち帰られてしまいました。スライミーはぶじに森に帰ることができるのでしょうか。\n【遊び方】\n← →キーで移動。↑キーでジャンプします。壁キック（壁にぶつかりながら↑を押す）で壁を登ることもできます。また，ジャンプしながら← →キーを押すことでジャンプの距離や方向を変えることもできるのでいろいろためしてみてください。\n画面右はしまで行くと先に進めます。\n\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (title2 v)\n\nwhen backdrop switches to [end v]\nset [brightness v] effect to (-100)\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nplay sound [おやすみの歌 v] until done\nstop [all v]\n\nset volume to (100) %\n\nwait (0.5) seconds\n\nwhen backdrop switches to [street1 v]\nset volume to (100) %\nforever\n    play sound [足音\(マ\) v] until done\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [street3 v]\nstop [other scripts in sprite v]\n\nswitch backdrop to (ｗoods v)\n\nnext backdrop\n\nstop [all v]\n\n@slimy\n\nwhen backdrop switches to [basket v]\ngo to x: (-40) y: (-50)\npoint in direction (90)\nswitch costume to (front v)\nshow\ngo to [front v] layer\nset [x v] to [0]\nset [y v] to [0]\nforever\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 color (#000008)?> or <touching (mama v)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <touching (mama v)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <touching (mama v)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <touching (mama v)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <touching (mama v)?>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            start sound [water drop v]\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\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 color (#000008)?> or <touching (mama v)?>> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <<touching color (#000008)?> or <touching (mama v)?>>> then\n        start sound [water drop v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching color (#ccffff)?> or <<touching (enemy v)?> and <not <touching color (#000000)?>>>> then\n        if <(backdrop [name v]) = [cat]> then\n            start sound [meow2 v]\n            go to x: (-230) y: (120)\n        else\n            go to x: (-230) y: (-120)\n        end\n    end\n    if <<(x position) > [222]> or <touching (window v)?>> then\n        next backdrop\n        if <<[1] < ([backdrop # v] of [_stage_ v])> and <([backdrop # v] of [_stage_ v]) < [6]>> then\n            go to x: (-230) y: (-120)\n        end\n        if <<[5] < ([backdrop # v] of [_stage_ v])> and <([backdrop # v] of [_stage_ v]) < [7]>> then\n            go to x: (-230) y: (120)\n        end\n        if <<[6] < ([backdrop # v] of [_stage_ v])> and <([backdrop # v] of [_stage_ v]) < [15]>> then\n            if <(backdrop [name v]) = [street1]> then\n                go to x: (-230) y: (120)\n            else\n                go to x: (-230) y: (-120)\n            end\n        end\n    end\n    if <<(backdrop [name v]) = [fence1]> and <[175] < (y position)>> then\n        next backdrop\n        go to x: (105) y: (-161)\n    end\n    if <<(backdrop [name v]) = [fence2]> and <[-175] > (y position)>> then\n        if <(x position) > [185]> then\n            next backdrop\n            go to x: (-230) y: (150)\n        else\n            switch backdrop to (fence1 v)\n            set y to (120)\n        end\n    end\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [basket v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n    end\n    if <key (up arrow v) pressed?> then\n        wait (0.1) seconds\n        switch costume to (jump v)\n        wait (2) seconds\n        switch costume to (front v)\n    end\nend\n\nswitch backdrop to (fence1 v)\n\nswitch backdrop to (table v)\n\n@enemy\n\nwhen flag clicked\nstop [other scripts in sprite v]\nset size to (50) %\ngo to x: (72) y: (-80)\nswitch costume to (cat v)\npoint in direction (90)\nhide\n\nwhen backdrop switches to [basket v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [cat v]\nstop [other scripts in sprite v]\nset size to (75) %\ngo to x: (72) y: (-100)\nswitch costume to (cat1 v)\npoint in direction (90)\nshow\nforever\n    repeat until <(x position) > [100]>\n        switch costume to (cat1 v)\n        change x by (15)\n        repeat (3)\n            wait (0.1) seconds\n            next costume\n            change x by (15)\n        end\n    end\n    point in direction (-90)\n    repeat until <(x position) < [10]>\n        switch costume to (cat1 v)\n        change x by (-15)\n        repeat (3)\n            wait (0.1) seconds\n            next costume\n            change x by (-15)\n        end\n    end\n    point in direction (90)\nend\n\nwhen backdrop switches to [street1 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [fence2 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [fence1 v]\nstop [other scripts in sprite v]\nhide\n\ngo to x: (0) y: (0)\nswitch backdrop to (street3 v)\n\nwhen backdrop switches to [glass v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [bowl v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [flower v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [table v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [window v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [garden v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [street3 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [ｗoods v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [street2 v]\nstop [other scripts in sprite v]\npoint in direction (90)\ngo to x: (243) y: (320)\nswitch costume to (walk1 v)\nset size to (500) %\nforever\n    point in direction (90)\n    go to x: (243) y: (320)\n    switch costume to (walk1 v)\n    show\n    repeat (12)\n        next costume\n        wait (0.1) seconds\n    end\n    hide\n    wait (1) seconds\nend\n\n@window\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [window v]\nshow\n\nwhen backdrop switches to [garden v]\nhide\n\n@mama\n\nwhen flag clicked\ngo to x: (200) y: (-133)\nhide\n\nwhen backdrop switches to [ｗoods v]\nshow\nforever\n    repeat until <(distance to [slimy v]) < [50]>\n        point towards (slimy v)\n        move (2) steps\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n    end\nend\n\nwhen backdrop switches to [end v]\nstop [other scripts in sprite v]\nhide\n\nswitch backdrop to (street3 v)\n\nforever\n    repeat until <touching (slimy v)?>\n        point towards (slimy v)\n        move (2) steps\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n        if <touching color (#000008)?> then\n            change y by (1)\n        end\n    end\nend\n\n@End\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [end v]\nshow\ngo to x: (0) y: (0)\n\n@start\n\nwhen flag clicked\nshow\nswitch costume to (start1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (start2 v)\n        say [クリックでスタート]\n    else\n        switch costume to (start1 v)\n        say []\n    end\nend\n\nwhen this sprite clicked\nstart sound [hand clap v]\nswitch backdrop to (basket v)\nhide\n\ngo to x: (0) y: (-85)\n\n@object\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [bowl v]\nswitch costume to (fish v)\ngo to x: (50) y: (-70)\nshow\nforever\n    repeat until <(x position) > [140]>\n        point in direction (90)\n        change x by (1)\n    end\n    repeat until <(x position) < [-20]>\n        point in direction (-90)\n        change x by (-1)\n    end\nend\n\nwhen backdrop switches to [flower v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [garden v]\nswitch costume to (butterfly1 v)\nset size to (75) %\ngo to x: (0) y: (0)\nshow\nforever\n    turn right (pick random (-180) to (180)) degrees\n    repeat (10)\n        switch costume to (butterfly2 v)\n        move (pick random (3) to (5)) steps\n        if <(y position) < [-80]> then\n            change y by (10)\n        end\n        if on edge, bounce\n        wait (0.1) seconds\n        switch costume to (butterfly1 v)\n        move (pick random (3) to (5)) steps\n        if <(y position) < [-80]> then\n            change y by (10)\n        end\n        if on edge, bounce\n    end\nend\n\nwhen backdrop switches to [fence1 v]\nstop [other scripts in sprite v]\nhide\n\n@Arrow1\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\n\nnext backdrop\n\nwhen backdrop switches to [basket v]\nshow\n\nwhen backdrop switches to [end v]\nhide\n\n