ᴛɪɴʏ ᴡᴏʀʟᴅ 【Mega Platformer】v2.0a

Instructions: 汚染された星。\nThe contaminated star.\n\n0 < 1\nhttps://scratch.mit.edu/projects/450172725/\n\nSHINE FOREST / 輝きの森\nhttps://scratch.mit.edu/projects/349264779/\n\nWHITE CUBE ADVENTURE\nhttps://scratch.mit.edu/projects/294501967/\n\nDANCING BALL\nhttps://scratch.mit.edu/projects/283729994/

@Stage\n\nwhen flag clicked\nset [skip? v] to [1]\nclear graphic effects\nswitch backdrop to (背景1 v)\nwait (1) seconds\nforever\n    if <(skip?) = [1]> then\n        if <<key (any v) pressed?> or <mouse down?>> then\n            stop [other scripts in sprite v]\n            stop all sounds\n            broadcast (all start v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [all start v]\nset [skip? v] to [0]\nclear graphic effects\nhide variable [タイマー v]\nset volume to (100) %\nswitch backdrop to (world1background v)\nforever\n    play sound [Dance  v] until done\nend\n\nwhen I receive [restart v]\nset [中断 v] to [0]\nforever\n    if <(中断) = [1]> then\n        stop [other scripts in sprite v]\n        stop all sounds\n    end\nend\n\nwhen I receive [retry v]\nclear graphic effects\nstop [other scripts in sprite v]\nbroadcast (restart v)\nforever\n    play sound [Dance  v] until done\nend\n\nwhen I receive [game start v]\nset [中断 v] to [0]\nforever\n    if <(中断) = [1]> then\n        stop [other scripts in sprite v]\n        stop all sounds\n    end\nend\n\nwhen I receive [boss1 v]\nclear graphic effects\nwait (3) seconds\nrepeat (2)\n    change [brightness v] effect by (-5)\nend\n\n@white cube\n\nwhen I receive [game start v]\nset [中断 v] to [0]\nset [boss v] to [0]\ngo to x: ([x position v] of [opening v]) y: ([y position v] of [opening v])\nshow\npoint in direction (90)\nforever\n    set rotation style [left-right v]\n    go to [front v] layer\n    if <not <(中断) = [1]>> then\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <(右) = [1]>> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <(左) = [1]>> then\n            point in direction (-90)\n            change [x v] by (-1)\n        end\n    end\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change x by ((-1) * ((x) + ((x) / (([abs v] of (x) ) + (0.0001)))))\n            set [x v] to (((x) / ([abs v] of (x) )) * (-10))\n            set [x v] to [0]\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <not <(中断) = [1]>> then\n        if <<<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> or <(上) = [1]>> and <touching (stage v)?>> then\n            start sound [pop v]\n            set [y v] to [11]\n        end\n    end\n    change y by (3)\n    if <(y) > [-15]> then\n        change [y v] by (-0.5)\n    end\n    if <(y) < [3]> then\n        change y by (-2)\n        if <not <touching (stage v)?>> then\n            change y by (-1)\n        end\n        change y by (2)\n    end\n    change y by (y)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change y by ((-1) * (y))\n            set [y v] to [-3]\n        end\n        change y by (2)\n    end\n    if <touching (damage v)?> then\n        go to x: (-188) y: (0)\n        start sound [Glug v]\n    end\nend\n\nwhen I receive [game start v]\nforever\n    switch costume to (通常 v)\n    wait (pick random (0) to (5)) seconds\n    switch costume to (通常2 v)\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nforever\n    if <(x position) > [239]> then\n        if <not <(boss) = [1]>> then\n            go to x: (-188) y: (0)\n            broadcast (次のステージ v)\n        end\n    end\nend\n\nwhen I receive [boss1 v]\nset [whitecubehp v] to [10]\nforever\n    if <touching (boss1 v)?> then\n        go to x: (-188) y: (0)\n        broadcast (rebattle v)\n        change [whitecubehp v] by (-1)\n        start sound [Glug v]\n    end\n    if <touching (damageboss v)?> then\n        go to x: (-188) y: (0)\n        start sound [Glug v]\n        change [whitecubehp v] by (-1)\n    end\n    if <(whitecubeHP) = [0]> then\n        broadcast (retry v)\n        stop [this script v]\n    end\nend\n\n@サムネイル\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I receive [チャレンジモード準備 v]\nstop [other scripts in sprite v]\n\nwhen I receive [timeup v]\nstop [other scripts in sprite v]\nswitch costume to (コスチューム2 v)\nshow\ngo to [front v] layer\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (all start v)\nhide\nclear graphic effects\n\nshow\ngo to [front v] layer\nswitch costume to (サムネイル v)\nstop [all v]\n\nshow\ngo to [front v] layer\nswitch costume to (サムネイル v)\nstop [all v]\n\n@stage\n\nwhen I receive [world2start v]\nforever\n    if <(costume [number v]) = [21]> then\n        set [? v] to [1]\n    end\nend\n\nwhen flag clicked\nset [? v] to [0]\nswitch costume to (op v)\ngo [backward v] (50) layers\nhide\n\nwhen I receive [次のステージ v]\nnext costume\n\nwhen I receive [all start v]\nswitch costume to (op v)\nshow\nforever\n    point in direction (90)\n    go to x: (0) y: (0)\nend\n\nwhen I receive [all start v]\nshow\n\nwhen I receive [retry v]\nswitch costume to (18 v)\ngo [backward v] (50) layers\n\n@start\n\nrepeat (10)\n    change x by (((0) - (x position)) / (2))\nend\n\nwhen flag clicked\nset x to (187)\nset y to (-128)\nhide\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [all start v]\nshow\nset size to (110) %\nwait (0.5) seconds\nforever\n    go [forward v] (5000) layers\n    if <touching (mouse-pointer v)?> then\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        play sound [ポップ v] until done\n        repeat (10)\n            change x by (((387) - (x position)) / (2))\n        end\n        hide\n        broadcast (game start v)\n        stop [this script v]\n    else\n    end\nend\n\nwhen I receive [game start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\ngo to x: (187) y: (-128)\n\n@title\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (5000) layers\nswitch costume to (logo v)\nhide\n\nwhen I receive [all start v]\nshow\n\nwhen I receive [game start v]\nrepeat (10)\n    change x by (((-166) - (x position)) / (2))\nend\nhide\n\n@opening\n\nwhen I receive [game start v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [stage select v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [all start v]\ngo to x: (-188) y: (0)\nshow\npoint in direction (90)\nforever\n    set rotation style [left-right v]\n    go to [front v] layer\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change x by ((-1) * ((x) + ((x) / (([abs v] of (x) ) + (0.0001)))))\n            set [x v] to (((x) / ([abs v] of (x) )) * (-10))\n            set [x v] to [0]\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    change y by (3)\n    if <(y) > [-15]> then\n        change [y v] by (-0.5)\n    end\n    if <(y) < [3]> then\n        change y by (-2)\n        if <not <touching (stage v)?>> then\n            change y by (-1)\n        end\n        change y by (2)\n    end\n    change y by (y)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change y by ((-1) * (y))\n            set [y v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen I receive [all start v]\nforever\n    switch costume to (通常2 v)\n    wait (pick random (0) to (5)) seconds\n    switch costume to (通常3 v)\n    wait (0.05) seconds\nend\n\nwhen I receive [all start v]\nforever\n    if <(x position) > [239]> then\n        go to x: (-188) y: (0)\n    end\nend\n\nforever\n    set rotation style [left-right v]\n    go to [front v] layer\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change x by ((-1) * ((x) + ((x) / (([abs v] of (x) ) + (0.0001)))))\n            set [x v] to (((x) / ([abs v] of (x) )) * (-10))\n            set [x v] to [0]\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    change y by (3)\n    if <(y) > [-15]> then\n        change [y v] by (-0.5)\n    end\n    if <(y) < [3]> then\n        change y by (-2)\n        if <not <touching (stage v)?>> then\n            change y by (-1)\n        end\n        change y by (2)\n    end\n    change y by (y)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change y by ((-1) * (y))\n            set [y v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\n@pen\n\nwhen flag clicked\nshow\nclear graphic effects\nset [ghost v] effect to (100)\nswitch costume to (コスチューム14 v)\ngo to x: (0) y: (0)\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (all start v)\nhide\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(skip?) = [1]> then\n        if <<key (any v) pressed?> or <mouse down?>> then\n            hide\n            stop [other scripts in sprite v]\n            clear graphic effects\n        end\n    end\nend\n\n@damage\n\nwhen I receive [game start v]\ngo to x: (0) y: (0)\nforever\n    point in direction (90)\n    glide (1.3) secs to x: (0) y: (-18)\n    glide (1.3) secs to x: (0) y: (0)\nend\n\nwhen I receive [ステージ1クリア v]\nstop [other scripts in sprite v]\nswitch costume to (op v)\ngo [backward v] (50) layers\n\nwhen I receive [retry v]\ngo [backward v] (50) layers\nswitch costume to (18 v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (op v)\ngo [backward v] (50) layers\nhide\n\nwhen I receive [次のステージ v]\nnext costume\n\nwhen I receive [game start v]\nswitch costume to (op v)\nshow\nforever\n    point in direction (90)\nend\n\nwhen I receive [all start v]\nshow\n\n@sun\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen I receive [次のステージ v]\ngo to x: (0) y: (0)\n\nwhen I receive [all start v]\nshow\n\nwhen I receive [game start v]\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\nend\n\n@right\n\nwhen I receive [game start v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-4)\nend\nforever\n    set [ghost v] effect to (60)\n    go to x: (208) y: (-134)\nend\n\nwhen flag clicked\nset size to (70) %\nhide\n\nwhen I receive [game start v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [右 v] to [1]\n    else\n        set [右 v] to [0]\n    end\nend\n\n@left\n\nwhen flag clicked\nset size to (70) %\nhide\n\nwhen I receive [game start v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-4)\nend\nforever\n    set [ghost v] effect to (60)\nend\n\ngo to x: (118) y: (-134)\n\nwhen I receive [game start v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [左 v] to [1]\n    else\n        set [左 v] to [0]\n    end\nend\n\n@boss1\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    hide\n    if <([costume # v] of [stage v]) = [20]> then\n        set [boss v] to [1]\n        broadcast (boss1 v)\n        wait until <not <([costume # v] of [stage v]) = [20]>>\n    else\n        set [boss v] to [0]\n    end\nend\n\nwhen I receive [boss1 v]\nshow\nset [bosshp v] to [10]\nset [中断 v] to [1]\ngo to x: (188) y: (-85)\nwait (3) seconds\nset [中断 v] to [0]\nrepeat until <(bossHP) = [0]>\n    point in direction (-90)\n    set rotation style [left-right v]\n    go to [front v] layer\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change x by ((-1) * ((x) + ((x) / (([abs v] of (x) ) + (0.0001)))))\n            set [x v] to (((x) / ([abs v] of (x) )) * (-10))\n            set [x v] to [0]\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    change y by (3)\n    if <(y) > [-15]> then\n        change [y v] by (-0.5)\n    end\n    if <(y) < [3]> then\n        change y by (-2)\n        if <not <touching (stage v)?>> then\n            change y by (-1)\n        end\n        change y by (2)\n    end\n    change y by (y)\n    if <touching (stage v)?> then\n        change y by (-2)\n        if <touching (stage v)?> then\n            change y by ((-1) * (y))\n            set [y v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen I receive [boss1 v]\nforever\n    switch costume to (通常 v)\n    wait (pick random (0) to (5)) seconds\n    switch costume to (通常2 v)\n    wait (0.05) seconds\nend\n\nwhen I receive [boss1 v]\npoint in direction (-90)\nwait (3) seconds\nrepeat until <(bossHP) = [0]>\n    if <(letter (1) of (([x position v] of [white cube v]) - (x position))) = [-]> then\n        repeat (60)\n            point in direction (-90)\n            change [x v] by (-0.6)\n        end\n    end\n    if <not <(letter (1) of (([x position v] of [white cube v]) - (x position))) = [-]>> then\n        repeat (60)\n            point in direction (90)\n            change [x v] by (0.6)\n        end\n    end\n    wait (1) seconds\nend\n\nwhen I receive [boss1 v]\nwait (3) seconds\nrepeat until <(bossHP) = [0]>\n    if <touching (damageboss v)?> then\n        go to x: (188) y: (-85)\n        change [bosshp v] by (-1)\n        start sound [Glug v]\n    end\nend\n\nwhen I receive [retry v]\nstop [other scripts in sprite v]\nhide\nbroadcast (restart v)\n\nwhen I receive [restart v]\ngo to [back v] layer\nhide\nforever\n    hide\n    if <([costume # v] of [stage v]) = [20]> then\n        set [boss v] to [1]\n        broadcast (boss1 v)\n        wait until <not <([costume # v] of [stage v]) = [20]>>\n    else\n        set [boss v] to [0]\n    end\nend\n\nif <touching (stage v)?> then\nif <([y position v] of [white cube v]) > [1]> then\n    set [y v] to [8]\nend\n\nwhen I receive [rebattle v]\ngo to x: (188) y: (-85)\n\nwhen I receive [boss1 v]\nwait (3) seconds\nrepeat until <(bossHP) = [0]>\n    play sound [zensen he totugekiseyo v] until done\nend\n\nwhen I receive [boss1 v]\nclear graphic effects\nwait (3) seconds\nforever\n    if <(bossHP) = [0]> then\n        stop [other scripts in sprite v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        clear graphic effects\n        broadcast (clear v)\n    end\nend\n\n@up\n\nwhen I receive [game start v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-4)\nend\nforever\n    go to x: (162) y: (-84)\n    set [ghost v] effect to (60)\nend\n\nwhen flag clicked\nset size to (70) %\nhide\n\nwhen I receive [game start v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [上 v] to [1]\n    else\n        set [上 v] to [0]\n    end\nend\n\n@dummy\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    if <([costume # v] of [stage v]) = [16]> then\n        show\n    else\n        hide\n    end\nend\n\n@damageboss\n\nwhen I receive [boss1 v]\ngo to x: (0) y: (0)\nhide\nset [ghost v] effect to (100)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nshow\nclear graphic effects\n\nwhen I receive [game start v]\nrepeat (30)\n    hide\nend\n\nwhen I receive [game start v]\nforever\n    glide (1) secs to x: (0) y: (-5)\n    glide (1) secs to x: (0) y: (5)\nend\n\nwhen I receive [all start v]\nrepeat (30)\n    hide\nend\n\nwhen I receive [all start v]\nrepeat (30)\n    hide\nend\n\nwhen flag clicked\nrepeat (30)\n    hide\nend\n\nwhen I receive [retry v]\nrepeat (30)\n    hide\nend\n\n@bosshp\n\nwhen I receive [boss1 v]\nstop [other scripts in sprite v]\nwait (3.4) seconds\nshow\nforever\n    if <(bossHP) = [10]> then\n        switch costume to (10 v)\n    end\n    if <(bossHP) = [9]> then\n        switch costume to (9 v)\n    end\n    if <(bossHP) = [8]> then\n        switch costume to (8 v)\n    end\n    if <(bossHP) = [7]> then\n        switch costume to (7 v)\n    end\n    if <(bossHP) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(bossHP) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(bossHP) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(bossHP) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(bossHP) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(bossHP) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(bossHP) = [0]> then\n        switch costume to (0 v)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    go to x: (-60) y: (-135)\n    hide\nend\n\nwhen I receive [all start v]\nrepeat (30)\n    hide\nend\n\nwhen flag clicked\nrepeat (30)\n    hide\nend\n\nwhen I receive [retry v]\nstop [other scripts in sprite v]\nhide\n\n@cubehp\n\nwhen I receive [retry v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss1 v]\nstop [other scripts in sprite v]\nwait (3.4) seconds\nshow\nforever\n    if <(whitecubeHP) = [10]> then\n        switch costume to (10 v)\n    end\n    if <(whitecubeHP) = [9]> then\n        switch costume to (9 v)\n    end\n    if <(whitecubeHP) = [8]> then\n        switch costume to (8 v)\n    end\n    if <(whitecubeHP) = [7]> then\n        switch costume to (7 v)\n    end\n    if <(whitecubeHP) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(whitecubeHP) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(whitecubeHP) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(whitecubeHP) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(whitecubeHP) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(whitecubeHP) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(whitecubeHP) = [0]> then\n        switch costume to (0 v)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    go to x: (-116) y: (150)\n    hide\nend\n\nwhen I receive [all start v]\nrepeat (30)\n    hide\nend\n\nwhen flag clicked\nrepeat (30)\n    hide\nend\n\n@スプライト1\n\nwhen I receive [clear v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (コスチューム1 v)\nstop [all v]\n\nwhen flag clicked\nhide\n\n