Bjorne's Quest - A platformer

Instructions: After going through his childhood phase of biting faces off (don't we all?), Guy is now ready for a real adventure! Navigate terrain, collect pieces of the Pizzaforce and become a legend!\n\nControls:\nA or ← = Move left\nD or → = Move right\nW or ↑ = Jump\nSpacebar = Use Power & Advance during prologue\n\nHUD:\nThe hearts on the top left are your lives\nThe numbers on the top left counts your kills, get 5 for an extra life\nOn the right displays your power-up and how many pizza slices you have collected\n\nEnemies:\nRed enemies are resistant to ice\nBlue enemies are resistant to fire\nGreen enemies are resistant to lightning\nDefeat 5 enemies to gain an extra life\n\nPower-ups:\nFire - Releases a fireball that kills viruses\nIce - Releases an iceball that freezes viruses\nElectric - Shoots a lightning bolt that kills viruses

@Stage\n\nwhen flag clicked\n\nforever\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <([costume # v] of [stage v]) > [7]> then\n        stop all sounds\n        play sound [マリオカート　歴代ファイナルラップファンファーレ - from YouTube v] until done\n        play sound [#マリオカート #BGM【マリオカート7】レインボーロード（ファイナルラップver） - from YouTube v] until done\n    end\nend\n\nstart sound [マリオカート　歴代ファイナルラップファンファーレ - from YouTube v]\n\nwhen flag clicked\nforever\n    if <([costume # v] of [stage v]) > [10]> then\n        set volume to (0) %\n    end\nend\n\nwhen I receive [kakusu v]\nstart sound [マリオカート７　レインボーロードBGM - from YouTube \(1\) v]\n\n@軽量\n\nforever\n    if <<(y position) = [-217]> or <(y position) = [-186]>> then\n        broadcast (modoru\] v)\n    end\nend\n\n@player2\n\nwhen flag clicked\nshow variable [かかった時間！ v]\nshow variable [☁ 世界記録 v]\nshow\nset size to (70) %\ngo to x: (-170) y: (-40)\nset rotation style [left-right v]\nforever\n    if <<(x position) < (mouse x)> and <mouse down?>> then\n        point in direction (90)\n    end\n    if <<(mouse x) < (x position)> and <mouse down?>> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(y position) = [-217]> or <(y position) = [-186]>> then\n        broadcast (modoru\] v)\n    end\nend\n\nstart sound [ニュッ v]\n\nwhen flag clicked\nset [変数1 x v] to [0]\nset [変数2 y v] to [0]\nforever\n    if <(mobile?pc?) = [mobile]> then\n        show\n        if <<(x position) < (mouse x)> and <mouse down?>> then\n            change [変数1 x v] by (1)\n        end\n        if <<(mouse x) < (x position)> and <mouse down?>> then\n            change [変数1 x v] by (-1)\n        end\n        change x by (変数1 x)\n        set [変数1 x v] to ((変数1 x) * (0.9))\n        change [変数2 y v] by (-0.5)\n        change y by (変数2 Y)\n        if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n            set [変数2 y v] to ((変数2 Y) * (-0.25))\n            change y by (変数2 Y)\n            if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n                change y by (変数2 Y)\n                if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n                    change y by (変数2 Y)\n                    if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n                        change y by (変数2 Y)\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <<<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> and <<(y position) < (mouse y)> and <mouse down?>>> then\n            start sound [ニュッ2 v]\n            set [変数2 y v] to [12]\n        end\n        change y by (1)\n        if <<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> then\n            change y by (1)\n            if <<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> then\n                change y by (1)\n                if <<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> then\n                    change y by (1)\n                    if <<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> then\n                        change y by (1)\n                        if <<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> then\n                            if <<<(y position) < (mouse y)> and <mouse down?>> or <<(mouse y) < (y position)> and <mouse down?>>> then\n                                if <(変数1 x) > [0]> then\n                                    set [変数1 x v] to [-10]\n                                else\n                                    set [変数1 x v] to [10]\n                                end\n                            else\n                                set [変数1 x v] to ((変数1 x) * (-1.3))\n                                change x by (変数1 x)\n                                set [変数1 x v] to [0]\n                                change x by ((変数1 x) / (5))\n                            end\n                            change y by (-4)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nshow variable [かかった時間！ v]\nshow variable [☁ 世界記録 v]\nshow\nset size to (70) %\ngo to x: (-170) y: (-40)\nset rotation style [left-right v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nset [変数1 x v] to [0]\nset [変数2 y v] to [0]\nforever\n    if <(mobile?pc?) = [pc]> then\n        show\n        if <key (right arrow v) pressed?> then\n            change [変数1 x v] by (1)\n        end\n        if <key (left arrow v) pressed?> then\n            change [変数1 x v] by (-1)\n        end\n        change x by (変数1 x)\n        set [変数1 x v] to ((変数1 x) * (0.9))\n        change [変数2 y v] by (-0.5)\n        change y by (変数2 Y)\n        if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n            set [変数2 y v] to ((変数2 Y) * (-0.25))\n            change y by (変数2 Y)\n            if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n                change y by (変数2 Y)\n                if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n                    change y by (変数2 Y)\n                    if <<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> then\n                        change y by (変数2 Y)\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <<<<<<<<<<touching color (#ff4f4f)?> or <touching color (#fff14f)?>> or <touching color (#7dff4f)?>> or <touching color (#4f58ff)?>> or <touching color (#f9a41e)?>> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#ff5050)?>> and <key (up arrow v) pressed?>> then\n            start sound [ v]\n            set [変数2 y v] to [12]\n        end\n        change y by (1)\n        if <<<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> or <touching color (#7dff4f)?>> then\n            change y by (1)\n            if <<<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> or <touching color (#7dff4f)?>> then\n                change y by (1)\n                if <<<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> or <touching color (#7dff4f)?>> then\n                    change y by (1)\n                    if <<<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> or <touching color (#7dff4f)?>> then\n                        change y by (1)\n                        if <<<<<<touching color (#fff14f)?> or <touching color (#a44fff)?>> or <touching color (#f9a41e)?>> or <touching color (#ffa322)?>> or <touching color (#eb4d4f)?>> or <touching color (#7dff4f)?>> then\n                            if <<key (up arrow v) pressed?> or <key (space v) pressed?>> then\n                                if <(変数1 x) > [0]> then\n                                    set [変数1 x v] to [-10]\n                                else\n                                    set [変数1 x v] to [10]\n                                end\n                            else\n                                set [変数1 x v] to ((変数1 x) * (-1.3))\n                                change x by (変数1 x)\n                                set [変数1 x v] to [0]\n                                change x by ((変数1 x) / (5))\n                            end\n                            change y by (-4)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\npoint in direction (-90)\n\nset x to (-210)\n\nwhen flag clicked\nforever\n    if <[235] < (x position)> then\n        broadcast (NEXT v)\n    end\nend\n\nwhen I receive [next v]\nif <not <([costume # v] of [stage v]) = [13]>> then\n    go to x: (-170) y: (-40)\n    set [変数1 x v] to [0]\n    set [変数2 y v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <<<touching color (#000dff)?> or <touching color (#59b538)?>> or <touching color (#cfa1ff)?>> then\n        broadcast (modoru\] v)\n    end\nend\n\nwhen I receive [modoru\] v]\nset [変数1 x v] to [0]\nset [変数2 y v] to [0]\ngo to x: (-170) y: (-40)\n\nwhen flag clicked\nswitch costume to (player2 v)\n\nwhen flag clicked\nforever\n    if <touching color (#ff9100)?> then\n        set [変数2 y v] to [20]\n        set [変数1 x v] to [40]\n    end\nend\n\nbroadcast (modoru\] v)\n\nchange y by (変数2 Y)\n\nchange y by (変数2 Y)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <<(y position) = [-217]> or <(y position) = [-186]>> then\n        broadcast (modoru\] v)\n    end\nend\n\n@stage\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nif <not <(costume [number v]) = [11]>> then\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <<(mobile?pc?) = [mobile]> or <(mobile?pc?) = [pc]>> then\n        if <[11] > (costume [number v])> then\n            change [かかった時間！ v] by (1)\n            wait (1) seconds\n        end\n    end\nend\n\nwhen flag clicked\nchange [☁ 遊んでくれた回数です v] by (1)\nset [かかった時間！ v] to [0]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        if <(☁ 世界記録) > (かかった時間！)> then\n            set [☁ 世界記録 v] to (かかった時間！)\n        end\n    end\nend\n\nchange [かかった時間！ v] by (1)\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <([costume # v] of [stage v]) > [10]> then\n        play sound [Mario Kart All Victory Themes \(1992-2021\) - from YouTube v] until done\n        stop [this script v]\n    end\nend\n\nstop all sounds\n\nwhen flag clicked\nhide\nhide variable [☁ 世界記録 v]\nhide variable [かかった時間！ v]\n\nwhen I receive [kakusu v]\nshow\nshow variable [☁ 世界記録 v]\nshow variable [かかった時間！ v]\n\n@スプライト1\n\nwhen flag clicked\nhide\n\n@スプライト2\n\nwhen this sprite clicked\nset [mobile?pc? v] to [pc]\nbroadcast (kakusu v)\nhide\n\nwhen flag clicked\nshow\nset [mobile?pc? v] to []\n\nwhen I receive [kakusu v]\nhide\n\n@スプライト4\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nset [mobile?pc? v] to [mobile]\nbroadcast (kakusu v)\nhide\n\nwhen I receive [kakusu v]\nhide\n\n@スプライト5\n\nwhen flag clicked\ngo to x: (11) y: (10)\nshow\n\nwhen I receive [kakusu v]\nhide\n\nwhen flag clicked\nrepeat until <<(mobile?pc?) = [mobile]> or <(mobile?pc?) = [pc]>>\n    change y by ([cos v] of ((timer) * (150)) )\nend\n\n@スプライト3\n\n