Adventure-A mobile scrolling platformer
@Stage\n\nwhen I receive [begin v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.25) seconds\nswitch backdrop to (shire v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen I receive [info v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.25) seconds\nswitch backdrop to (info v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen backdrop switches to [info v]\nwait until <key (x v) pressed?>\nbroadcast (Start v)\n\nwhen backdrop switches to [map v]\nwait until <key (x v) pressed?>\nbroadcast (Start v)\n\nwhen I receive [level passed v]\nnext backdrop\n\nwhen I receive [start v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.25) seconds\nswitch backdrop to (start v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nplay sound [a m v] until done\nplay sound [F M v] until done\nplay sound [C M v] until done\nbroadcast (start music v)\n\nrepeat (3)\n    play sound [F M v] until done\n    play sound [G M v] until done\n    play sound [a m v] until done\n    play sound [C M v] until done\nend\nplay sound [F M v] until done\n\nset instrument to (6 v)\nplay note (48) for (0.95) beats\nplay note (52) for (0.6) beats\nplay note (55) for (0.5) beats\nplay note (59) for (2) beats\n\nwhen I receive [map v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.25) seconds\nswitch backdrop to (map v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [uhoh v]\nswitch backdrop to (rivendell 1b v)\nwait (2) seconds\nbroadcast (UHOH v)\n\nwhen I receive [start music v]\nforever\n    play sound [Ashton Manor.mp3 v] until done\n    play sound [Crossing the Divide.mp3 v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (999)\n    go to [front v] layer\nend\n\n@Begin\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nhide\nbroadcast (begin v)\n\nwhen I receive [map v]\nhide\n\nwhen I receive [start v]\nwait (1) seconds\nshow\ngo to x: (-105) y: (5)\nset size to (300) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (150) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [info v]\nhide\n\n@Info\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nhide\nbroadcast (info v)\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [map v]\nhide\n\nwhen I receive [start v]\nwait (1) seconds\nshow\ngo to x: (125) y: (5)\nset size to (300) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (150) %\n    else\n        set size to (100) %\n    end\nend\n\n@Map\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nhide\nbroadcast (map v)\n\nwhen I receive [info v]\nhide\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [start v]\nwait (1) seconds\nshow\nset size to (300) %\ngo to x: (15) y: (5)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (150) %\n    else\n        set size to (100) %\n    end\nend\n\n@Gandalf\n\nwhen flag clicked\nhide\ngo to x: (-214) y: (83)\n\nwhen flag clicked\nforever\n    if <<(x position) = [219]> or <(x position) > [219]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.25) seconds\n        switch costume to (gandalf v)\n        broadcast (level passed v)\n        go to x: (-214) y: (83)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen I receive [begin v]\nwait (1) seconds\nswitch costume to (gandalf v)\nshow\nset [deaths: v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (0.85)\n        switch costume to (gandalf v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.85)\n        switch costume to (gandalf b v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#cccccc)?> then\n        change y by (1)\n        if <touching color (#cccccc)?> then\n            change y by (1)\n            if <touching color (#cccccc)?> then\n                change y by (1)\n                if <touching color (#cccccc)?> then\n                    change y by (1)\n                    if <touching color (#cccccc)?> then\n                        change y by (1)\n                        if <touching color (#cccccc)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#cccccc)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#cccccc)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [15.5]\n        end\n    end\n    if <touching color (#ccffdd)?> then\n        set [yv v] to [21]\n    end\nend\n\nwhen backdrop switches to [rivendell 1 v]\nclear graphic effects\ngo to x: (-214) y: (-121)\nstop [other scripts in sprite v]\nwait (2) seconds\nbroadcast (fin v)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <<<<(y position) = [-226]> or <(y position) < [-226]>> or <touching color (#99b2ff)?>> or <key (r v) pressed?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.25) seconds\n        change [deaths: v] by (1)\n        switch costume to (gandalf v)\n        go to x: (-214) y: (83)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\n@Mouse Pointer\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [shire v]\nshow\nforever\n    go to (mouse-pointer v)\nend\n\n@Intro\n\nwhen flag clicked\nshow\npoint in direction (90)\nset size to (250) %\ngo to x: (0) y: (-300)\nrepeat (20)\n    change y by (((y position) - (0)) / (-5))\n    change y by (-1)\n    turn right (((92) - (direction)) * (0.2)) degrees\n    change size by (((300) - (size)) * (0.2))\nend\nwait (0.2) seconds\nrepeat (12)\n    change size by (((250) - (size)) * (0.2))\n    turn right (((80) - (direction)) * (0.2)) degrees\nend\nwait (0.2) seconds\nrepeat (12)\n    change size by (((220) - (size)) * (0.2))\n    turn right (((92) - (direction)) * (0.2)) degrees\nend\nwait (0.2) seconds\nrepeat (12)\n    change size by (((200) - (size)) * (0.2))\n    turn right (((80) - (direction)) * (0.2)) degrees\nend\nwait (0.3) seconds\nrepeat (20)\n    change y by (((y position) - (300)) / (-5))\n    turn right (((140) - (direction)) * (0.9)) degrees\n    change [ghost v] effect by (20)\nend\nwait (0.1) seconds\nhide\nbroadcast (Start v)\n\n@Bridge\n\nwhen flag clicked\nhide\ngo to x: (3) y: (-77)\n\nwhen backdrop switches to [rivendell river v]\nshow\ngo to [front v] layer\nwait until <not <(backdrop [name v]) = [Rivendell River]>>\nhide\n\n@Spaaaaaaace\n\nwhen flag clicked\n\nwhen backdrop switches to [rivendell 1 v]\n\nwhen I receive [uhoh v]\n\nshow\nrepeat until <key (space v) pressed?>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (0.1) seconds\nend\n\nhide\ngo to x: (-50) y: (-24)\n\nhide\nstop [other scripts in sprite v]\n\n@boom\n\nwhen flag clicked\nhide\n\nwhen I receive [fin v]\nshow\ngo to [front v] layer\n\n@Final stufffffff\n\nwhen I receive [fin v]\ngo to x: (-22) y: (-38)\nshow\nrepeat (10)\n    go to [front v] layer\nend\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\nend\n\nwhen flag clicked\nhide\n\n
New level (bedroom) added: 11:51 21.11.2020 (pl time)\n\nENGLISH ADDED! 08.10.2020 / 16:20 (polish time)\n \n9.10.2020 14:24 (polish time) kitchen level added!\n\n=================POLISH=================\nwasd / strzałki - ruszańsko\n\nzjedz wszystkie żarełka aby przejść do następnego \npoziomu!\n===============ENGLISH==================\nwsad / arrows - move\n\nEat all of food to get to the next level!