Brick Breaker Platformer v1.0 #games #all #trending
@Stage\n\n@Logo\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nshow\nif <(device) = [2]> then\n    switch costume to (costume3 v)\nelse\n    switch costume to (costume1 v)\nend\ngo to x: (0) y: (112)\nforever\n    play sound [Drive Around v] until done\nend\n\nwhen I receive [play v]\nrepeat (35)\n    change x by (-10)\nend\nhide\nbroadcast (buttons v)\nswitch costume to (costume2 v)\ngo to x: (310) y: (112)\nshow\nrepeat (31)\n    change x by (-10)\nend\n\nwhen I receive [level v]\nrepeat until <(x position) < [-220]>\n    change x by (-10)\nend\nhide\nstop [other scripts in sprite v]\nstop all sounds\nstart sound [Kick Back v]\n\n@Menu Ball\n\nwhen I receive [begin v]\nshow\ngo to x: (0) y: (95)\nset [menu vy v] to [0]\nforever\n    if <touching (menu platform v)?> then\n        set [menu vy v] to [11]\n    else\n        change [menu vy v] by (-1)\n    end\n    change y by (menu vy)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nrepeat (24)\n    change x by (-10)\nend\nhide\nstop [other scripts in sprite v]\n\n@Menu Platform\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [play v]\nrepeat (26)\n    change x by (-10)\nend\nhide\n\n@Play\n\nwhen I receive [begin v]\ngo to x: (0) y: (-100)\nshow\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        if <(size) < [130]> then\n            change size by (5)\n        end\n    else\n        if <(size) > [100]> then\n            change size by (-5)\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (play v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\nrepeat (27)\n    change x by (-10)\nend\nhide\n\n@Button\n\nwhen flag clicked\nhide\ndelete all of [levels unlocked v]\nadd [1] to [levels unlocked v]\n\nwhen I receive [buttons v]\nrepeat (1)\n    delete this clone\nend\ncreate all clones\n\nwhen I start as a clone\nshow\nforever\n    if (item (clone id) of [levels unlocked v]) then\n        set [brightness v] effect to (-20)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (level v)\n            set [level v] to (clone id)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [level v]\nstop [other scripts in sprite v]\nrepeat until <(x position) < [-220]>\n    change x by (-10)\nend\ndelete this clone\n\ndefine create all clones\ngo to x: (-200) y: (50)\nset [clone id v] to [0]\nrepeat (5)\n    repeat (10)\n        change [clone id v] by (1)\n        create clone of (_myself_ v)\n        change x by (45)\n    end\n    go to x: (-200) y: ((y position) - (45))\nend\n\n@Number Counter\n\nwhen flag clicked\nhide\nerase all\n\ndefine create clone (number)\nset [i v] to [0]\nrepeat (length of (number))\n    change [i v] by (1)\n    switch costume to (join [costume] (letter (i) of (number)))\n    create clone of (_myself_ v)\n    if <(length of (number)) > [1]> then\n        change x by (15)\n    end\nend\nif <(length of (number)) > [1]> then\n    change x by (-7)\nend\n\nwhen I receive [buttons v]\nerase all\ncreate all clones\n\nwhen I start as a clone\nshow\nforever\n    if (item (number) of [levels unlocked v]) then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [level v]\nerase all\nrepeat until <(x position) < [-220]>\n    change x by (-10)\nend\nstop [other scripts in sprite v]\ndelete this clone\n\ndefine create all clones\ngo to x: (-200) y: (46)\nset [number v] to [1]\nrepeat (5)\n    repeat (10)\n        if <(length of (number)) > [1]> then\n            change x by (-12)\n        end\n        create clone (number)\n        if <(length of (number)) > [1]> then\n            change x by (35)\n        else\n            change x by (45)\n        end\n        change [number v] by (1)\n    end\n    go to x: (-200) y: ((y position) - (45))\nend\n\nwhen I receive [number counter v]\nrepeat (3)\n    setup number counter\nend\n\ndefine stamp (number)\nset [i v] to [0]\nrepeat until <(i) = (length of (number))>\n    change x by (15)\n    change [i v] by (1)\n    if <<(item (brick i) of [required bricks v]) = (item (brick i) of [bricks v])> or <(item (brick i) of [required bricks v]) < (item (brick i) of [bricks v])>> then\n        switch costume to (costume10 v)\n        set [i v] to (length of (number))\n    else\n        switch costume to (join [costume] (letter (i) of (number)))\n    end\n    stamp\nend\n\nwhen I receive [begin v]\nerase all\n\nwhen I receive [play v]\nerase all\nstop [other scripts in sprite v]\n\nrepeat until <(brick i) = [0]>\nend\n\ndefine setup number counter\nerase all\ngo to x: (-170) y: (150)\nset [brick i v] to [0]\nrepeat (length of [required bricks v])\n    change [brick i v] by (1)\n    if <(item (brick i) of [required bricks v]) > [0]> then\n        stamp ((item (brick i) of [required bricks v]) - (item (brick i) of [bricks v]))\n        change y by (-30)\n        set x to (-170)\n    end\nend\n\n@Player\n\nwhen I receive [gameplay v]\nbroadcast (required bricks v) and wait\nwait (0.5) seconds\nshow\nset [brightness v] effect to (100)\nset [brightness v] to [100]\ngo to x: (0) y: (180)\nset [wet? v] to [0]\nset [vx v] to [0]\nset [vy v] to [0]\nset [playing v] to [1]\nforever\n    if <(repel) = [0]> then\n        set [vx v] to ((vx) * (0.75))\n        change x by (vx)\n        if <<key (right arrow v) pressed?> or <<(device) = [2]> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n            change [vx v] by (2)\n        end\n        if <<key (left arrow v) pressed?> or <<(device) = [2]> and <<mouse down?> and <(x position) > (mouse x)>>>> then\n            change [vx v] by (-2)\n        end\n        change [vy v] by (-1)\n        if <touching (bricks v)?> then\n            broadcast (check brick color v) and wait\n        end\n        change y by (vy)\n        if <touching (_edge_ v)?> then\n            if <(y position) < [-180]> then\n                broadcast (retry v)\n                stop [this script v]\n            else\n                if <([abs v] of (x position) ) > [225]> then\n                    set [vx v] to ((-4) * (vx))\n                end\n            end\n        end\n    else\n        set [vx v] to ((vx) * (0.75))\n        change x by (vx)\n        if <<key (right arrow v) pressed?> or <<(device) = [2]> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n            change [vx v] by (2)\n        end\n        if <<key (left arrow v) pressed?> or <<(device) = [2]> and <<mouse down?> and <(x position) > (mouse x)>>>> then\n            change [vx v] by (-2)\n        end\n        change y by (-1)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\nreset timer\nrepeat until <(timer) > [0.5]>\n    change [vy v] by (-1)\n    change y by (vy)\n    set [vx v] to ((vx) * (.75))\n    change x by (vx)\n    if <touching (_edge_ v)?> then\n        if <(y position) < [-180]> then\n            hide\n        else\n            if <([abs v] of (x position) ) > [225]> then\n                set [vx v] to ((-4) * (vx))\n            end\n        end\n    end\nend\nhide\n\nwhen I receive [retry v]\nhide\nset [playing v] to [0]\nstop [other scripts in sprite v]\n\nwhen I receive [gameplay v]\nwait (3) seconds\nbroadcast (boss v)\n\nwhen I receive [wet v]\nstart sound [Splash v]\nif <(wet?) = [0]> then\n    set [wet? v] to [1]\n    repeat until <(brightness) = [0]>\n        change [brightness v] effect by (-10)\n        change [brightness v] by (-10)\n    end\n    clear graphic effects\nend\n\nwhen I receive [dry v]\nif <(wet?) = [1]> then\n    set [wet? v] to [0]\n    repeat until <(brightness) = [100]>\n        change [brightness v] effect by (10)\n        change [brightness v] by (10)\n    end\nend\n\nwhen I receive [buttons v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [clear lava v]\nset [brightness v] effect to (-5)\nwait (0.14) seconds\nset [brightness v] effect to (100)\n\n@Bricks\n\nwhen flag clicked\nhide\nset [clone? v] to [0]\n\nwhen I receive [level v]\nstop [other scripts in sprite v]\nwait (0.5) seconds\nrepeat (1)\n    delete this clone\nend\nset [playing v] to [0]\nif <<(level) < [10]> or <(level) = [10]>> then\n    levels 1-10 (level)\nelse\n    if <<(level) < [20]> or <(level) = [20]>> then\n        levels 11-20 (level)\n    else\n        if <<(level) < [30]> or <(level) = [30]>> then\n            levels 21-30 (level)\n        else\n            if <<(level) < [40]> or <(level) = [40]>> then\n                levels 31-40 (level)\n            else\n                levels 41-50 (level)\n            end\n        end\n    end\nend\nif <(level) < [21]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [23]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [27]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [31]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [34]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [36]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [38]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [41]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [43]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [46]> then\n    add [0] to [required bricks v]\nend\nif <(level) < [50]> then\n    add [0] to [required bricks v]\nend\nrepeat (17)\n    add [0] to [bricks v]\nend\nbroadcast (start game v)\n\ndefine levels 1-10 (number)\ndelete all of [required bricks v]\ndelete all of [bricks v]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nhide\nset [boss? v] to [0]\nset [xchange v] to [80]\nif <(number) = [1]> then\n    go to x: (-150) y: (50)\n    add [16] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    repeat (4)\n        repeat (4)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n        set x to (-150)\n        change y by (-50)\n    end\nelse\n    if <(number) = [2]> then\n        go to x: (-125) y: (0)\n        add [9] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        repeat (3)\n            repeat (2)\n                create clone of (_myself_ v)\n                change x by (250)\n            end\n            set x to (-125)\n            change y by (-50)\n        end\n        set x to (-100)\n        repeat (3)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n    else\n        if <(number) = [3]> then\n            go to x: (-150) y: (50)\n            add [6] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            repeat (2)\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                switch costume to (costume1 v)\n                repeat (2)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                change y by (-50)\n                set x to (-150)\n            end\n            repeat (2)\n                repeat (2)\n                    switch costume to (costume2 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                switch costume to (costume1 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                change y by (-50)\n                set x to (-150)\n            end\n        else\n            if <(number) = [4]> then\n                go to x: (-150) y: (50)\n                add [9] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                repeat (3)\n                    switch costume to (costume2 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    switch costume to (costume1 v)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                    switch costume to (costume2 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    change y by (-50)\n                    set x to (-150)\n                end\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                switch costume to (costume1 v)\n                repeat (3)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n            else\n                if <(number) = [5]> then\n                    go to x: (0) y: (50)\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [4] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    repeat (2)\n                        switch costume to (costume3 v)\n                        create clone of (_myself_ v)\n                        change y by (-50)\n                        change x by (100)\n                    end\n                    change x by (-100)\n                    repeat (2)\n                        change x by (-100)\n                        create clone of (_myself_ v)\n                        change y by (-50)\n                    end\n                else\n                    if <(number) = [6]> then\n                        add [3] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [2] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        go to x: (0) y: (50)\n                        switch costume to (costume1 v)\n                        create clone of (_myself_ v)\n                        change y by (-50)\n                        change x by (150)\n                        create clone of (_myself_ v)\n                        change y by (-50)\n                        change x by (-200)\n                        create clone of (_myself_ v)\n                        change y by (-50)\n                        set x to (-50)\n                        repeat (2)\n                            switch costume to (costume3 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                        end\n                    else\n                        if <(number) = [7]> then\n                            add [4] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [1] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            switch costume to (costume1 v)\n                            go to x: (-50) y: (50)\n                            repeat (2)\n                                create clone of (_myself_ v)\n                                change x by (100)\n                            end\n                            change y by (-50)\n                            set x to (-150)\n                            create clone of (_myself_ v)\n                            switch costume to (costume2 v)\n                            repeat (2)\n                                change x by (100)\n                                create clone of (_myself_ v)\n                            end\n                            change y by (-50)\n                            set x to (-150)\n                            switch costume to (costume3 v)\n                            create clone of (_myself_ v)\n                            switch costume to (costume2 v)\n                            repeat (2)\n                                change x by (100)\n                                create clone of (_myself_ v)\n                            end\n                            change y by (-50)\n                            set x to (-50)\n                            switch costume to (costume1 v)\n                            create clone of (_myself_ v)\n                        else\n                            if <(number) = [8]> then\n                                go to x: (-125) y: (50)\n                                add [8] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                switch costume to (costume1 v)\n                                repeat (4)\n                                    repeat (2)\n                                        create clone of (_myself_ v)\n                                        change x by (200)\n                                    end\n                                    set x to (-125)\n                                    change y by (-50)\n                                end\n                            else\n                                if <(number) = [9]> then\n                                    go to x: (-150) y: (50)\n                                    add [4] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [3] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    switch costume to (costume1 v)\n                                    create clone of (_myself_ v)\n                                    change x by (200)\n                                    create clone of (_myself_ v)\n                                    change y by (-50)\n                                    change x by (-100)\n                                    create clone of (_myself_ v)\n                                    change x by (200)\n                                    change y by (-50)\n                                    create clone of (_myself_ v)\n                                    change y by (-50)\n                                    switch costume to (costume3 v)\n                                    set x to (0)\n                                    repeat (2)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                    end\n                                    change y by (-50)\n                                    set x to (-75)\n                                    create clone of (_myself_ v)\n                                else\n                                    if <(number) = [10]> then\n                                        go to x: (-100) y: (50)\n                                        add [9] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [2] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        repeat (3)\n                                            repeat (3)\n                                                create clone of (_myself_ v)\n                                                change x by (100)\n                                            end\n                                            set x to (-100)\n                                            change y by (-50)\n                                        end\n                                        switch costume to (costume3 v)\n                                        set x to (-50)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        set x to (-150)\n                                        change y by (-50)\n                                        set size to (600) %\n                                        switch costume to (costume2 v)\n                                        set x to (0)\n                                        set y to (300)\n                                        set [boss? v] to [1]\n                                        create clone of (_myself_ v)\n                                        set [boss? v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nset [clone? v] to [1]\nset [times cleared v] to [0]\nset [shape v] to [0]\nclear graphic effects\nif <(boss?) > [0]> then\n    hide\n    if <(boss?) = [2]> then\n        stop [this script v]\n    end\nelse\n    show\nend\nwait until <(playing) = [1]>\nif <(boss?) = [3]> then\n    show\n    switch costume to (pick random (1) to (20))\n    set size to (100) %\n    set x to (clone x)\n    set y to ((boss y) - (29))\n    point in direction ((pick random (0) to (1)) * (180))\nend\nif <<(costume [number v]) > [11]> and <(costume [number v]) < [15]>> then\n    if <([abs v] of (direction) ) = [90]> then\n        glide (0.1) secs to x: ((x position) + (xchange)) y: (y position)\n    else\n        glide (0.1) secs to x: (x position) y: ((y position) + (xchange))\n    end\nend\nforever\n    if <(boss?) = [3]> then\n        change y by (-5)\n        if <(y position) < [-170]> then\n            delete this clone\n        end\n    end\n    if <touching (player v)?> then\n        broadcast (number counter v)\n        if <<(costume [number v]) = [1]> or <(costume [number v]) = [18]>> then\n            if <(direction) = [90]> then\n                set [vy v] to [11]\n            else\n                if <(direction) = [-90]> then\n                    set [vy v] to [0]\n                else\n                    set [vy v] to [0]\n                    change [vy v] by (-1)\n                    if <(direction) = [0]> then\n                        set [vx v] to [10]\n                    else\n                        if <(direction) = [180]> then\n                            set [vx v] to [-10]\n                        end\n                    end\n                end\n            end\n            if <(costume [number v]) = [1]> then\n                replace item (1) of [bricks v] with ((item (1) of [bricks v]) + (1))\n            else\n                replace item (15) of [bricks v] with ((item (15) of [bricks v]) + (1))\n            end\n            wall jump\n            simplify lists\n            if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                broadcast (play v)\n                if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                    add ((level) + (1)) to [levels unlocked v]\n                end\n            end\n            start sound [pop v]\n            delete this clone\n        else\n            if <(costume [number v]) = [2]> then\n                if <(wet?) = [0]> then\n                    broadcast (retry v)\n                else\n                    if <(direction) = [90]> then\n                        set [vy v] to [11]\n                    else\n                        if <(direction) = [-90]> then\n                            set [vy v] to [0]\n                        else\n                            set [vy v] to [0]\n                            change [vy v] by (-1)\n                            if <(direction) = [0]> then\n                                set [vx v] to [10]\n                            else\n                                if <(direction) = [180]> then\n                                    set [vx v] to [-10]\n                                end\n                            end\n                        end\n                    end\n                    replace item (2) of [bricks v] with ((item (2) of [bricks v]) + (1))\n                    wall jump\n                    simplify lists\n                    if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                        broadcast (play v)\n                        if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                            add ((level) + (1)) to [levels unlocked v]\n                        end\n                    end\n                    start sound [pop v]\n                    broadcast (dry v)\n                    delete this clone\n                end\n            else\n                if <(costume [number v]) = [3]> then\n                    set [vy v] to [0]\n                    replace item (3) of [bricks v] with ((item (3) of [bricks v]) + (1))\n                    wall jump\n                    simplify lists\n                    if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                        broadcast (play v)\n                        if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                            add ((level) + (1)) to [levels unlocked v]\n                        end\n                    end\n                    start sound [pop v]\n                    delete this clone\n                else\n                    if <(costume [number v]) = [4]> then\n                        if <(direction) = [90]> then\n                            set [vy v] to [11]\n                        else\n                            if <(direction) = [-90]> then\n                                set [vy v] to [0]\n                            else\n                                set [vy v] to [0]\n                                change [vy v] by (-1)\n                                if <(direction) = [0]> then\n                                    set [vx v] to [10]\n                                else\n                                    if <(direction) = [180]> then\n                                        set [vx v] to [-10]\n                                    end\n                                end\n                            end\n                        end\n                        broadcast (wet v)\n                        replace item (4) of [bricks v] with ((item (4) of [bricks v]) + (1))\n                        simplify lists\n                        wall jump\n                        if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                            broadcast (play v)\n                            if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                add ((level) + (1)) to [levels unlocked v]\n                            end\n                        end\n                        start sound [pop v]\n                        delete this clone\n                    else\n                        if <(costume [number v]) < [7]> then\n                            gray and dark green bricks\n                        else\n                            if <(costume [number v]) = [7]> then\n                                if <(direction) = [90]> then\n                                    set [vy v] to [11]\n                                else\n                                    if <(direction) = [-90]> then\n                                        set [vy v] to [1]\n                                    else\n                                        if <(direction) = [0]> then\n                                            set [vx v] to [10]\n                                        else\n                                            if <(direction) = [180]> then\n                                                set [vx v] to [-10]\n                                            end\n                                        end\n                                    end\n                                end\n                                start sound [pop v]\n                                change [times cleared v] by (1)\n                                if <(times cleared) = [2]> then\n                                    set [times cleared v] to [2]\n                                    replace item (7) of [bricks v] with ((item (7) of [bricks v]) + (1))\n                                    simplify lists\n                                    wall jump\n                                    if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                        broadcast (play v)\n                                        if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                            add ((level) + (1)) to [levels unlocked v]\n                                        end\n                                    end\n                                    if <(times cleared) = [2]> then\n                                        delete this clone\n                                    end\n                                end\n                                change [brightness v] effect by (-20)\n                                wall jump\n                                wait until <not <touching (player v)?>>\n                                broadcast (number counter v)\n                            else\n                                if <(costume [number v]) = [8]> then\n                                    if <(direction) = [90]> then\n                                        set [vy v] to [11]\n                                    else\n                                        if <(direction) = [-90]> then\n                                            set [vy v] to [1]\n                                        else\n                                            if <(direction) = [0]> then\n                                                set [vx v] to [10]\n                                            else\n                                                if <(direction) = [180]> then\n                                                    set [vx v] to [-10]\n                                                end\n                                            end\n                                        end\n                                    end\n                                    broadcast (number counter v)\n                                    start sound [pop v]\n                                    wall jump\n                                    replace item (8) of [bricks v] with ((item (8) of [bricks v]) + (1))\n                                    simplify lists\n                                    if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                        broadcast (play v)\n                                        if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                            add ((level) + (1)) to [levels unlocked v]\n                                        end\n                                    end\n                                    hide\n                                    if <(boss?) = [3]> then\n                                        delete this clone\n                                    end\n                                    wait (3) seconds\n                                    set [ghost v] effect to (100)\n                                    show\n                                    repeat (10)\n                                        change [ghost v] effect by (-10)\n                                    end\n                                else\n                                    if <(costume [number v]) = [9]> then\n                                        if <(direction) = [90]> then\n                                            set [vy v] to [11]\n                                        else\n                                            if <(direction) = [-90]> then\n                                                set [vy v] to [1]\n                                            else\n                                                if <(direction) = [0]> then\n                                                    set [vx v] to [10]\n                                                else\n                                                    if <(direction) = [180]> then\n                                                        set [vx v] to [-10]\n                                                    end\n                                                end\n                                            end\n                                        end\n                                        broadcast (number counter v)\n                                        start sound [pop v]\n                                        wall jump\n                                        replace item (9) of [bricks v] with ((item (9) of [bricks v]) + (1))\n                                        simplify lists\n                                        if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                            broadcast (play v)\n                                            if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                                add ((level) + (1)) to [levels unlocked v]\n                                            end\n                                        end\n                                        hide\n                                        if <(boss?) = [3]> then\n                                            delete this clone\n                                        end\n                                        wait (3) seconds\n                                        set [ghost v] effect to (100)\n                                        show\n                                        repeat (10)\n                                            change [ghost v] effect by (-10)\n                                        end\n                                        replace item (9) of [bricks v] with ((item (9) of [bricks v]) - (1))\n                                    else\n                                        if <(costume [number v]) = [10]> then\n                                            set [vy v] to [0]\n                                        else\n                                            if <<(costume [number v]) > [10]> and <(costume [number v]) < [15]>> then\n                                                if <(direction) = [90]> then\n                                                    set [vy v] to [11]\n                                                else\n                                                    if <(direction) = [-90]> then\n                                                        set [vy v] to [1]\n                                                    else\n                                                        if <(direction) = [0]> then\n                                                            set [vx v] to [10]\n                                                        else\n                                                            if <(direction) = [180]> then\n                                                                set [vx v] to [-10]\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                                start sound [pop v]\n                                                if <(costume [number v]) = [14]> then\n                                                    broadcast (number counter v)\n                                                    wall jump\n                                                    replace item (11) of [bricks v] with ((item (11) of [bricks v]) + (1))\n                                                    simplify lists\n                                                    if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                                        broadcast (play v)\n                                                        if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                                            add ((level) + (1)) to [levels unlocked v]\n                                                        end\n                                                    end\n                                                    delete this clone\n                                                else\n                                                    if <(boss?) = [3]> then\n                                                        replace item (11) of [bricks v] with ((item (11) of [bricks v]) + (1))\n                                                    end\n                                                    next costume\n                                                    set [xchange v] to ((xchange) / (-2))\n                                                    repeat (2)\n                                                        create clone of (_myself_ v)\n                                                        set [xchange v] to ((xchange) * (-1))\n                                                    end\n                                                    repeat (1)\n                                                        delete this clone\n                                                    end\n                                                end\n                                            else\n                                                if <(costume [number v]) = [15]> then\n                                                    broadcast (retry v)\n                                                else\n                                                    if <(costume [number v]) = [16]> then\n                                                        if <(direction) = [90]> then\n                                                            set [vy v] to [11]\n                                                        else\n                                                            if <(direction) = [-90]> then\n                                                                set [vy v] to [1]\n                                                            else\n                                                                if <(direction) = [0]> then\n                                                                    set [vx v] to [10]\n                                                                else\n                                                                    if <(direction) = [180]> then\n                                                                        set [vx v] to [-10]\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                        start sound [pop v]\n                                                        broadcast (number counter v)\n                                                        wall jump\n                                                        replace item (13) of [bricks v] with ((item (13) of [bricks v]) + (1))\n                                                        simplify lists\n                                                        if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                                            broadcast (play v)\n                                                            if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                                                add ((level) + (1)) to [levels unlocked v]\n                                                            end\n                                                        end\n                                                        delete all of [positions v]\n                                                        add (x position) to [positions v]\n                                                        add (y position) to [positions v]\n                                                        add (size) to [positions v]\n                                                        add (direction) to [positions v]\n                                                        create clone of (bomb v)\n                                                        delete this clone\n                                                    else\n                                                        if <(costume [number v]) = [17]> then\n                                                            if <(direction) = [90]> then\n                                                                set [vy v] to [11]\n                                                            else\n                                                                if <(direction) = [-90]> then\n                                                                    set [vy v] to [0]\n                                                                else\n                                                                    set [vy v] to [0]\n                                                                    change [vy v] by (-1)\n                                                                    if <(direction) = [0]> then\n                                                                        set [vx v] to [10]\n                                                                    else\n                                                                        if <(direction) = [180]> then\n                                                                            set [vx v] to [-10]\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                            start sound [pop v]\n                                                            replace item (14) of [bricks v] with ((item (14) of [bricks v]) + (1))\n                                                            wall jump\n                                                            simplify lists\n                                                            if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                                                broadcast (play v)\n                                                                if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                                                    add ((level) + (1)) to [levels unlocked v]\n                                                                end\n                                                            end\n                                                            broadcast (dry v)\n                                                            delete this clone\n                                                        else\n                                                            if <(costume [number v]) = [19]> then\n                                                                if <(direction) = [90]> then\n                                                                    set [vy v] to [11]\n                                                                else\n                                                                    if <(direction) = [-90]> then\n                                                                        set [vy v] to [0]\n                                                                    else\n                                                                        set [vy v] to [0]\n                                                                        change [vy v] by (-1)\n                                                                        if <(direction) = [0]> then\n                                                                            set [vx v] to [10]\n                                                                        else\n                                                                            if <(direction) = [180]> then\n                                                                                set [vx v] to [-10]\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                                start sound [pop v]\n                                                                replace item (16) of [bricks v] with ((item (16) of [bricks v]) + (1))\n                                                                wall jump\n                                                                simplify lists\n                                                                if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                                                                    broadcast (play v)\n                                                                    if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                                                                        add ((level) + (1)) to [levels unlocked v]\n                                                                    end\n                                                                end\n                                                                delete this clone\n                                                            else\n                                                                if <(costume [number v]) = [20]> then\n                                                                    broadcast (retry v)\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <<touching (bomb v)?> and <not <<<(costume [number v]) = [5]> or <(costume [number v]) = [6]>> or <<<(costume [number v]) = [10]> or <(costume [number v]) = [15]>> or <(costume [number v]) = [16]>>>>> then\n        broadcast (number counter v)\n        set [costume v] to (join (letter ((length of [costume]) + (1)) of (costume [name v])) (letter ((length of [costume]) + (2)) of (costume [name v])))\n        replace item (costume) of [bricks v] with ((item (costume) of [bricks v]) + (1))\n        simplify lists\n        if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n            broadcast (play v)\n            if <not <[levels unlocked v] contains ((level) + (1))?>> then\n                add ((level) + (1)) to [levels unlocked v]\n            end\n        end\n        delete this clone\n    end\n    if <<<(distance to [player v]) < [100]> and <not <touching (player v)?>>> and <(costume [number v]) = [18]>> then\n        set [vx v] to ((([x position v] of [player v]) - (x position)) / (10))\n        set [vy v] to ((([y position v] of [player v]) - (y position)) / (10))\n        set [repel v] to [1]\n    end\n    set [repel v] to [0]\n    if < (costume [name v]) contains [costume16]?> then\n        change [shape v] by (1)\n        if <(shape) = [30]> then\n            set [shape v] to [0]\n            if <(costume [number v]) = [19]> then\n                switch costume to (costume16b v)\n            else\n                if <(costume [number v]) = [20]> then\n                    switch costume to (costume16a v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [retry v]\nbroadcast (level v)\n\nwhen I receive [play v]\nif <(costume [number v]) = [2]> then\n    stop [other scripts in sprite v]\nend\nrepeat (2)\n    stop [other scripts in sprite v]\nend\nwait (0.5) seconds\ndelete this clone\n\nwhen I receive [boss v]\nif <<(boss?) = [1]> and <(clone?) = [1]>> then\n    if <(level) > [39]> then\n        wait (1) seconds\n    end\n    hide\n    wait until <not <touching (player v)?>>\n    show\n    set y to (300)\n    repeat until <(y position) = [0]>\n        change y by (-1)\n    end\n    wait (12) seconds\n    broadcast (retry v)\nend\nif <<(boss?) = [2]> and <(clone?) = [1]>> then\n    wait (1) seconds\n    hide\n    wait until <not <touching (player v)?>>\n    show\n    set y to (300)\n    broadcast (calculate brick amount v)\n    repeat until <<(costume [number v]) > [21]> or <(y position) = [0]>>\n        repeat (3)\n            set [boss? v] to [3]\n            set [boss y v] to (y position)\n            set [clone x v] to (((pick random (-4) to (3)) * (60)) + (30))\n            create clone of (_myself_ v)\n        end\n        wait (1) seconds\n        repeat (5)\n            change y by (-1)\n        end\n    end\n    wait until <(costume [number v]) = [24]>\n    if <(y position) > [140]> then\n        glide (0.5) secs to x: (0) y: (140)\n    end\nend\n\ndefine levels 11-20 (number)\ndelete all of [required bricks v]\ndelete all of [bricks v]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nhide\nset [boss? v] to [0]\nset [xchange v] to [80]\nif <(number) = [11]> then\n    go to x: (-150) y: (50)\n    add [0] to [required bricks v]\n    add [4] to [required bricks v]\n    add [0] to [required bricks v]\n    add [4] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    repeat (2)\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\n    change y by (-50)\n    set x to (-150)\n    repeat (2)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\nelse\n    if <(number) = [12]> then\n        go to x: (-50) y: (50)\n        add [0] to [required bricks v]\n        add [2] to [required bricks v]\n        add [3] to [required bricks v]\n        add [2] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        switch costume to (costume3 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        change y by (-50)\n        repeat (2)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n        change y by (-50)\n        change x by (-200)\n        repeat (2)\n            switch costume to (costume4 v)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n        change y by (-50)\n        change x by (-100)\n        repeat (2)\n            switch costume to (costume2 v)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n    else\n        if <(number) = [13]> then\n            go to x: (-150) y: (50)\n            add [2] to [required bricks v]\n            add [4] to [required bricks v]\n            add [0] to [required bricks v]\n            add [4] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            switch costume to (costume1 v)\n            repeat (2)\n                create clone of (_myself_ v)\n                change x by (200)\n            end\n            change y by (-50)\n            change x by (-300)\n            switch costume to (costume2 v)\n            repeat (2)\n                create clone of (_myself_ v)\n                change x by (200)\n            end\n            change y by (-50)\n            set x to (-150)\n            switch costume to (costume4 v)\n            repeat (2)\n                switch costume to (costume4 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                change x by (100)\n            end\n            change y by (-50)\n            change x by (-300)\n            switch costume to (costume4 v)\n            repeat (2)\n                create clone of (_myself_ v)\n                change x by (200)\n            end\n        else\n            if <(number) = [14]> then\n                go to x: (-50) y: (50)\n                add [0] to [required bricks v]\n                add [4] to [required bricks v]\n                add [2] to [required bricks v]\n                add [2] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                switch costume to (costume3 v)\n                repeat (2)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    change y by (-50)\n                end\n                switch costume to (costume4 v)\n                set x to (-100)\n                create clone of (_myself_ v)\n                set x to (100)\n                create clone of (_myself_ v)\n                switch costume to (costume2 v)\n                repeat (2)\n                    change y by (-50)\n                    set x to (-50)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                end\n            else\n                if <(number) = [15]> then\n                    go to x: (-150) y: (50)\n                    add [1] to [required bricks v]\n                    add [4] to [required bricks v]\n                    add [1] to [required bricks v]\n                    add [3] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    switch costume to (costume4 v)\n                    repeat (3)\n                        create clone of (_myself_ v)\n                        change x by (150)\n                    end\n                    change y by (-50)\n                    switch costume to (costume2 v)\n                    set x to (-200)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    switch costume to (costume3 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    switch costume to (costume2 v)\n                    repeat (3)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                    change y by (-50)\n                    set x to (-200)\n                    switch costume to (costume5 v)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                    switch costume to (costume1 v)\n                    create clone of (_myself_ v)\n                    switch costume to (costume5 v)\n                    repeat (2)\n                        change x by (100)\n                        create clone of (_myself_ v)\n                    end\n                else\n                    if <(number) = [16]> then\n                        go to x: (150) y: (-100)\n                        add [1] to [required bricks v]\n                        add [1] to [required bricks v]\n                        add [2] to [required bricks v]\n                        add [1] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        switch costume to (costume5 v)\n                        repeat (4)\n                            create clone of (_myself_ v)\n                            change x by (-100)\n                        end\n                        change y by (75)\n                        repeat (3)\n                            point in direction (0)\n                            set x to (-200)\n                            create clone of (_myself_ v)\n                            change y by (75)\n                            point in direction (180)\n                            set x to (-100)\n                            create clone of (_myself_ v)\n                        end\n                        set x to (-50)\n                        point in direction (0)\n                        repeat (3)\n                            create clone of (_myself_ v)\n                            change y by (-75)\n                        end\n                        switch costume to (costume1 v)\n                        point in direction (90)\n                        go to x: (-150) y: (150)\n                        create clone of (_myself_ v)\n                        switch costume to (costume3 v)\n                        repeat (2)\n                            change y by (-50)\n                            create clone of (_myself_ v)\n                        end\n                        change y by (-50)\n                        switch costume to (costume2 v)\n                        create clone of (_myself_ v)\n                        switch costume to (costume4 v)\n                        go to x: (150) y: (75)\n                        create clone of (_myself_ v)\n                    else\n                        if <(number) = [17]> then\n                            go to x: (150) y: (-100)\n                            add [1] to [required bricks v]\n                            add [1] to [required bricks v]\n                            add [2] to [required bricks v]\n                            add [1] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            switch costume to (costume5 v)\n                            repeat (4)\n                                create clone of (_myself_ v)\n                                change x by (-100)\n                            end\n                            change y by (75)\n                            switch costume to (costume5 v)\n                            point in direction (0)\n                            set x to (-200)\n                            create clone of (_myself_ v)\n                            switch costume to (costume5 v)\n                            change y by (75)\n                            point in direction (180)\n                            set x to (-100)\n                            create clone of (_myself_ v)\n                            switch costume to (costume6 v)\n                            point in direction (0)\n                            set x to (-200)\n                            create clone of (_myself_ v)\n                            switch costume to (costume6 v)\n                            change y by (75)\n                            point in direction (180)\n                            set x to (-100)\n                            create clone of (_myself_ v)\n                            switch costume to (costume5 v)\n                            point in direction (0)\n                            set x to (-200)\n                            create clone of (_myself_ v)\n                            switch costume to (costume5 v)\n                            change y by (75)\n                            point in direction (180)\n                            set x to (-100)\n                            create clone of (_myself_ v)\n                            switch costume to (costume6 v)\n                            set x to (-50)\n                            point in direction (0)\n                            switch costume to (costume6 v)\n                            create clone of (_myself_ v)\n                            change y by (-75)\n                            switch costume to (costume5 v)\n                            create clone of (_myself_ v)\n                            change y by (-75)\n                            switch costume to (costume6 v)\n                            create clone of (_myself_ v)\n                            switch costume to (costume1 v)\n                            point in direction (90)\n                            go to x: (-150) y: (150)\n                            create clone of (_myself_ v)\n                            switch costume to (costume3 v)\n                            repeat (2)\n                                change y by (-50)\n                                create clone of (_myself_ v)\n                            end\n                            change y by (-50)\n                            switch costume to (costume2 v)\n                            create clone of (_myself_ v)\n                            switch costume to (costume4 v)\n                            go to x: (150) y: (75)\n                            create clone of (_myself_ v)\n                            change y by (-50)\n                            switch costume to (costume6 v)\n                            create clone of (_myself_ v)\n                        else\n                            if <(number) = [18]> then\n                                go to x: (0) y: (100)\n                                add [3] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [4] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                switch costume to (costume6 v)\n                                create clone of (_myself_ v)\n                                switch costume to (costume3 v)\n                                change x by (-100)\n                                change y by (-50)\n                                repeat (2)\n                                    create clone of (_myself_ v)\n                                    change x by (-100)\n                                    change y by (-50)\n                                end\n                                change y by (-50)\n                                repeat (2)\n                                    change x by (100)\n                                    create clone of (_myself_ v)\n                                end\n                                switch costume to (costume5 v)\n                                change y by (-50)\n                                repeat (2)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                end\n                                change y by (50)\n                                switch costume to (costume1 v)\n                                repeat (3)\n                                    change y by (50)\n                                    create clone of (_myself_ v)\n                                end\n                            else\n                                if <(number) = [19]> then\n                                    go to x: (-200) y: (0)\n                                    add [9] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    switch costume to (costume1 v)\n                                    point in direction (-90)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    set y to (50)\n                                    point in direction (90)\n                                    switch costume to (costume2 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume1 v)\n                                    point in direction (90)\n                                    repeat (2)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                        point in direction (-90)\n                                    end\n                                    change y by (-50)\n                                    create clone of (_myself_ v)\n                                    point in direction (90)\n                                    switch costume to (costume4 v)\n                                    set x to (-100)\n                                    create clone of (_myself_ v)\n                                    change y by (-100)\n                                    switch costume to (costume1 v)\n                                    set x to (-200)\n                                    repeat (5)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                    end\n                                else\n                                    if <(number) = [20]> then\n                                        go to x: (-100) y: (50)\n                                        add [9] to [required bricks v]\n                                        add [2] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [2] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        switch costume to (costume1 v)\n                                        repeat (3)\n                                            repeat (3)\n                                                create clone of (_myself_ v)\n                                                change x by (100)\n                                            end\n                                            set x to (-100)\n                                            change y by (-50)\n                                        end\n                                        switch costume to (costume2 v)\n                                        set x to (-200)\n                                        set y to (100)\n                                        create clone of (_myself_ v)\n                                        set x to (200)\n                                        create clone of (_myself_ v)\n                                        switch costume to (costume4 v)\n                                        change y by (50)\n                                        set x to (-200)\n                                        create clone of (_myself_ v)\n                                        set x to (200)\n                                        create clone of (_myself_ v)\n                                        switch costume to (costume5 v)\n                                        set size to (600) %\n                                        set x to (0)\n                                        point in direction (90)\n                                        set [boss? v] to [1]\n                                        create clone of (_myself_ v)\n                                        set [boss? v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine gray and dark green bricks\nif <(costume [number v]) = [5]> then\n    wall jump\n    start sound [pop v]\n    if <(direction) = [90]> then\n        set [vy v] to [11]\n    else\n        if <(direction) = [-90]> then\n            set [vy v] to [-1]\n        else\n            if <(direction) = [0]> then\n                set [vx v] to [10]\n            else\n                if <(direction) = [180]> then\n                    set [vx v] to [-10]\n                end\n            end\n        end\n    end\nelse\n    if <<(costume [number v]) = [6]> or <(costume [number v]) = [18]>> then\n        if <(direction) = [90]> then\n            set [vy v] to [1]\n        else\n            if <(direction) = [-90]> then\n                set [vy v] to [-1]\n            else\n                if <(direction) = [0]> then\n                    set [vx v] to [10]\n                else\n                    if <(direction) = [180]> then\n                        set [vx v] to [-10]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine levels 21-30 (number)\ndelete all of [required bricks v]\ndelete all of [bricks v]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nhide\nset [boss? v] to [0]\nset [xchange v] to [80]\nif <(number) = [21]> then\n    go to x: (-150) y: (50)\n    add [0] to [required bricks v]\n    add [2] to [required bricks v]\n    add [0] to [required bricks v]\n    add [2] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [6] to [required bricks v]\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\n    change x by (100)\n    repeat (2)\n        switch costume to (costume7 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\n    change x by (100)\n    change y by (100)\n    set x to (150)\n    switch costume to (costume4 v)\n    create clone of (_myself_ v)\n    change y by (-150)\n    set x to (150)\n    switch costume to (costume6 v)\n    create clone of (_myself_ v)\n    change x by (-100)\n    change y by (-100)\n    switch costume to (costume5 v)\n    create clone of (_myself_ v)\n    change y by (100)\n    point in direction (-90)\n    switch costume to (costume7 v)\n    create clone of (_myself_ v)\n    point in direction (90)\n    change x by (-100)\n    change y by (-100)\n    create clone of (_myself_ v)\n    switch costume to (costume4 v)\n    change y by (100)\n    create clone of (_myself_ v)\n    point in direction (-90)\n    switch costume to (costume7 v)\n    change x by (-100)\n    create clone of (_myself_ v)\n    change y by (-100)\n    point in direction (90)\n    create clone of (_myself_ v)\nelse\n    if <(number) = [22]> then\n        go to x: (-150) y: (100)\n        add [0] to [required bricks v]\n        add [3] to [required bricks v]\n        add [0] to [required bricks v]\n        add [3] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [3] to [required bricks v]\n        repeat (2)\n            switch costume to (costume7 v)\n            change y by (-50)\n            create clone of (_myself_ v)\n            switch costume to (costume2 v)\n            change y by (-50)\n            create clone of (_myself_ v)\n            switch costume to (costume4 v)\n            change y by (-50)\n            create clone of (_myself_ v)\n            change y by (100)\n            change x by (150)\n        end\n        change y by (50)\n        switch costume to (costume5 v)\n        point in direction (-90)\n        create clone of (_myself_ v)\n        point in direction (90)\n        change y by (-50)\n        switch costume to (costume7 v)\n        change y by (-50)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume5 v)\n        create clone of (_myself_ v)\n        change x by (-100)\n        switch costume to (costume4 v)\n        change y by (-50)\n        create clone of (_myself_ v)\n        switch costume to (costume2 v)\n        change y by (-50)\n        create clone of (_myself_ v)\n    else\n        if <(number) = [23]> then\n            go to x: (-200) y: (0)\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [15] to [required bricks v]\n            switch costume to (costume8 v)\n            repeat (5)\n                create clone of (_myself_ v)\n                change x by (100)\n            end\n            change y by (-50)\n            switch costume to (costume5 v)\n            set x to (-200)\n            repeat (2)\n                create clone of (_myself_ v)\n                change x by (100)\n            end\n            change x by (100)\n            repeat (2)\n                create clone of (_myself_ v)\n                change x by (100)\n            end\n        else\n            if <(number) = [24]> then\n                go to x: (-200) y: (0)\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [15] to [required bricks v]\n                switch costume to (costume8 v)\n                repeat (5)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                change y by (-50)\n                switch costume to (costume2 v)\n                set x to (-200)\n                repeat (3)\n                    create clone of (_myself_ v)\n                    change x by (200)\n                end\n                change y by (-50)\n                switch costume to (costume5 v)\n                set x to (-200)\n                repeat (5)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n            else\n                if <(number) = [25]> then\n                    go to x: (-150) y: (50)\n                    add [10] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [8] to [required bricks v]\n                    switch costume to (costume8 v)\n                    repeat (4)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                    change y by (-50)\n                    set x to (-150)\n                    switch costume to (costume1 v)\n                    repeat (4)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                    change y by (-50)\n                    set x to (-150)\n                    switch costume to (costume5 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    switch costume to (costume1 v)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                    switch costume to (costume5 v)\n                    create clone of (_myself_ v)\n                    switch costume to (costume1 v)\n                    change y by (-50)\n                    set x to (-150)\n                    repeat (4)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                else\n                    if <(number) = [26]> then\n                        go to x: (-150) y: (-50)\n                        add [0] to [required bricks v]\n                        add [4] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [4] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [11] to [required bricks v]\n                        add [0] to [required bricks v]\n                        set x to (-200)\n                        point in direction (0)\n                        switch costume to (costume2 v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        point in direction (180)\n                        switch costume to (costume7 v)\n                        create clone of (_myself_ v)\n                        change y by (75)\n                        repeat (2)\n                            set x to (-200)\n                            point in direction (0)\n                            switch costume to (costume7 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            point in direction (180)\n                            create clone of (_myself_ v)\n                            change y by (75)\n                        end\n                        switch costume to (costume5 v)\n                        point in direction (0)\n                        change x by (50)\n                        repeat (3)\n                            change y by (-75)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            point in direction (180)\n                            create clone of (_myself_ v)\n                            change x by (-100)\n                            point in direction (0)\n                        end\n                        change x by (150)\n                        repeat (3)\n                            set x to (100)\n                            point in direction (0)\n                            switch costume to (costume7 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            point in direction (180)\n                            create clone of (_myself_ v)\n                            change y by (75)\n                        end\n                        set y to (-150)\n                        set x to (150)\n                        point in direction (90)\n                        switch costume to (costume6 v)\n                        repeat (3)\n                            create clone of (_myself_ v)\n                            change x by (-100)\n                        end\n                        switch costume to (costume5 v)\n                        create clone of (_myself_ v)\n                        set y to (50)\n                        switch costume to (costume4 v)\n                        create clone of (_myself_ v)\n                        change y by (50)\n                        point in direction (-90)\n                        switch costume to (costume2 v)\n                        repeat (2)\n                            create clone of (_myself_ v)\n                            change y by (50)\n                            point in direction (90)\n                        end\n                        set x to (150)\n                        set y to (50)\n                        switch costume to (costume4 v)\n                        create clone of (_myself_ v)\n                        change y by (50)\n                        point in direction (-90)\n                        switch costume to (costume2 v)\n                        repeat (2)\n                            create clone of (_myself_ v)\n                            change y by (50)\n                            point in direction (90)\n                            switch costume to (costume4 v)\n                        end\n                        set x to (180)\n                        change y by (-50)\n                        change x by (-100)\n                        create clone of (_myself_ v)\n                    else\n                        if <(number) = [27]> then\n                            go to x: (-100) y: (50)\n                            add [12] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [3] to [required bricks v]\n                            switch costume to (costume9 v)\n                            repeat (3)\n                                create clone of (_myself_ v)\n                                change x by (100)\n                            end\n                            switch costume to (costume1 v)\n                            repeat (3)\n                                change y by (-50)\n                                set x to (-150)\n                                repeat (4)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                end\n                            end\n                        else\n                            if <(number) = [28]> then\n                                go to x: (-100) y: (50)\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [6] to [required bricks v]\n                                switch costume to (costume9 v)\n                                repeat (2)\n                                    repeat (2)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                    end\n                                    change y by (-50)\n                                    create clone of (_myself_ v)\n                                    set x to (-100)\n                                    change y by (-50)\n                                end\n                            else\n                                if <(number) = [29]> then\n                                    go to x: (-100) y: (50)\n                                    add [9] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [4] to [required bricks v]\n                                    repeat (2)\n                                        switch costume to (costume1 v)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        change y by (-50)\n                                        set x to (-100)\n                                        switch costume to (costume9 v)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        set x to (-100)\n                                        change y by (-50)\n                                    end\n                                    go to x: (100) y: (50)\n                                    switch costume to (costume1 v)\n                                    repeat (5)\n                                        create clone of (_myself_ v)\n                                        change y by (-50)\n                                    end\n                                else\n                                    if <(number) = [30]> then\n                                        go to x: (-100) y: (50)\n                                        add [5] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [4] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [2] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        switch costume to (costume1 v)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        switch costume to (costume3 v)\n                                        create clone of (_myself_ v)\n                                        change y by (-50)\n                                        set x to (-100)\n                                        switch costume to (costume3 v)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        switch costume to (costume1 v)\n                                        create clone of (_myself_ v)\n                                        change y by (-50)\n                                        set x to (-100)\n                                        switch costume to (costume1 v)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        switch costume to (costume3 v)\n                                        create clone of (_myself_ v)\n                                        change y by (-50)\n                                        set x to (-50)\n                                        switch costume to (costume7 v)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        set size to (600) %\n                                        set x to (0)\n                                        set [boss? v] to [1]\n                                        point in direction (90)\n                                        switch costume to (costume6 v)\n                                        create clone of (_myself_ v)\n                                        set [boss? v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine simplify lists\ndelete all of [simplified lists v]\nset [list i v] to [0]\nadd [] to [simplified lists v]\nrepeat (length of [required bricks v])\n    change [list i v] by (1)\n    replace item (1) of [simplified lists v] with (join (item (1) of [simplified lists v]) (item (list i) of [required bricks v]))\nend\nset [list i v] to [0]\nadd [] to [simplified lists v]\nrepeat (length of [required bricks v])\n    change [list i v] by (1)\n    if <((item (list i) of [required bricks v]) - (item (list i) of [bricks v])) < [0]> then\n        replace item (2) of [simplified lists v] with (join (item (2) of [simplified lists v]) (item (list i) of [required bricks v]))\n    else\n        replace item (2) of [simplified lists v] with (join (item (2) of [simplified lists v]) (item (list i) of [bricks v]))\n    end\nend\n\ndefine wall jump\nif <touching (player v)?> then\n    if <<(direction) = [90]> or <<key (up arrow v) pressed?> or <<(device) = [2]> and <<mouse down?> and <(mouse y) > ([y position v] of [player v])>>>>> then\n        if <not <<(costume [number v]) = [3]> or <(costume [number v]) = [6]>>> then\n            set [vy v] to [11]\n            if <not <([abs v] of (direction) ) = [90]>> then\n                if <(direction) = [0]> then\n                    set [vx v] to ((((direction) + (180)) / ([abs v] of ((direction) + (180)) )) * (20))\n                else\n                    set [vx v] to ((((-1) * ((direction) + (180))) / ((direction) + (180))) * (20))\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [buttons v]\nhide\nstop [other scripts in sprite v]\n\ndefine levels 31-40 (number)\ndelete all of [required bricks v]\ndelete all of [bricks v]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nhide\nset [boss? v] to [0]\nset [xchange v] to [80]\nif <(number) = [31]> then\n    go to x: (-150) y: (50)\n    add [2] to [required bricks v]\n    add [4] to [required bricks v]\n    add [0] to [required bricks v]\n    add [4] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [2] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    switch costume to (costume10 v)\n    repeat (4)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\n    change y by (-50)\n    set x to (-150)\n    repeat (2)\n        switch costume to (costume1 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume10 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\n    set x to (-150)\n    change y by (-50)\n    repeat (2)\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\n    set x to (-150)\n    change y by (-50)\n    repeat (2)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\n    set x to (-150)\n    change y by (-50)\n    repeat (2)\n        switch costume to (costume10 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume7 v)\n        create clone of (_myself_ v)\n        change x by (100)\n    end\nelse\n    if <(number) = [32]> then\n        go to x: (-150) y: (50)\n        add [0] to [required bricks v]\n        add [3] to [required bricks v]\n        add [0] to [required bricks v]\n        add [3] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [3] to [required bricks v]\n        add [2] to [required bricks v]\n        add [0] to [required bricks v]\n        switch costume to (costume10 v)\n        repeat (2)\n            create clone of (_myself_ v)\n            change x by (200)\n        end\n        change y by (-50)\n        set x to (-150)\n        repeat (2)\n            switch costume to (costume2 v)\n            create clone of (_myself_ v)\n            change x by (200)\n        end\n        set x to (-150)\n        change y by (-50)\n        repeat (2)\n            switch costume to (costume4 v)\n            create clone of (_myself_ v)\n            change x by (100)\n            switch costume to (costume9 v)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n        set x to (-150)\n        change y by (-50)\n        repeat (2)\n            switch costume to (costume10 v)\n            create clone of (_myself_ v)\n            change x by (100)\n            switch costume to (costume8 v)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n        set x to (-150)\n        change y by (-50)\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        repeat (3)\n            switch costume to (costume2 v)\n            create clone of (_myself_ v)\n            change x by (100)\n        end\n    else\n        if <(number) = [33]> then\n            go to x: (-150) y: (50)\n            add [0] to [required bricks v]\n            add [2] to [required bricks v]\n            add [0] to [required bricks v]\n            add [2] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            repeat (3)\n                switch costume to (costume10 v)\n                create clone of (_myself_ v)\n                change y by (-50)\n                switch costume to (costume6 v)\n                create clone of (_myself_ v)\n                change x by (100)\n            end\n            change y by (50)\n            switch costume to (costume4 v)\n            create clone of (_myself_ v)\n            change y by (50)\n            switch costume to (costume2 v)\n            create clone of (_myself_ v)\n            change y by (-100)\n            change x by (-200)\n            repeat (2)\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                change x by (-100)\n            end\n            change y by (50)\n            change x by (100)\n            switch costume to (costume4 v)\n            create clone of (_myself_ v)\n        else\n            if <(number) = [34]> then\n                go to x: (150) y: (50)\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [32] to [required bricks v]\n                switch costume to (costume5 v)\n                repeat (2)\n                    create clone of (_myself_ v)\n                    change x by (-100)\n                end\n                change y by (-50)\n                change x by (-100)\n                switch costume to (costume11a v)\n                repeat (4)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    change y by (-50)\n                end\n            else\n                if <(number) = [35]> then\n                    go to x: (-100) y: (50)\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [32] to [required bricks v]\n                    switch costume to (costume11a v)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (200)\n                    end\n                    set x to (-100)\n                    change y by (-50)\n                    switch costume to (costume2 v)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (200)\n                    end\n                    set x to (-100)\n                    change y by (-50)\n                    switch costume to (costume11a v)\n                    point in direction (-90)\n                    repeat (2)\n                        create clone of (_myself_ v)\n                        change x by (200)\n                    end\n                    set x to (-150)\n                    change y by (-100)\n                    point in direction (90)\n                    switch costume to (costume5 v)\n                    repeat (4)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    end\n                else\n                    if <(number) = [36]> then\n                        go to x: (-150) y: (50)\n                        add [2] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [3] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [8] to [required bricks v]\n                        add [0] to [required bricks v]\n                        switch costume to (costume12 v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume4 v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume1 v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume4 v)\n                        create clone of (_myself_ v)\n                        set x to (-150)\n                        change y by (-50)\n                        switch costume to (costume12 v)\n                        repeat (3)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                        end\n                        point in direction (-90)\n                        switch costume to (costume1 v)\n                        create clone of (_myself_ v)\n                        change y by (-150)\n                        set x to (-150)\n                        point in direction (90)\n                        switch costume to (costume12 v)\n                        repeat (2)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                        end\n                        switch costume to (costume4 v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume11a v)\n                        create clone of (_myself_ v)\n                    else\n                        if <(number) = [37]> then\n                            go to x: (-150) y: (50)\n                            add [0] to [required bricks v]\n                            add [2] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [4] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [24] to [required bricks v]\n                            add [0] to [required bricks v]\n                            switch costume to (costume4 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume12 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume4 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume2 v)\n                            create clone of (_myself_ v)\n                            set x to (-150)\n                            change y by (-50)\n                            change x by (100)\n                            point in direction (-90)\n                            switch costume to (costume4 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            point in direction (90)\n                            switch costume to (costume2 v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume4 v)\n                            create clone of (_myself_ v)\n                            change y by (-100)\n                            switch costume to (costume5 v)\n                            point in direction (0)\n                            set x to (-200)\n                            repeat (5)\n                                create clone of (_myself_ v)\n                                change y by (75)\n                            end\n                            set x to (-100)\n                            set y to (-100)\n                            point in direction (90)\n                            repeat (3)\n                                switch costume to (costume11a v)\n                                create clone of (_myself_ v)\n                                change x by (100)\n                            end\n                        else\n                            if <(number) = [38]> then\n                                go to x: (-100) y: (50)\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [4] to [required bricks v]\n                                switch costume to (costume13 v)\n                                repeat (2)\n                                    create clone of (_myself_ v)\n                                    change x by (200)\n                                    change y by (-50)\n                                    create clone of (_myself_ v)\n                                    change x by (-200)\n                                    change y by (-50)\n                                end\n                            else\n                                if <(number) = [39]> then\n                                    go to x: (-100) y: (50)\n                                    add [0] to [required bricks v]\n                                    add [4] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [4] to [required bricks v]\n                                    repeat (2)\n                                        switch costume to (costume13 v)\n                                        create clone of (_myself_ v)\n                                        change y by (-50)\n                                        switch costume to (costume2 v)\n                                        create clone of (_myself_ v)\n                                        change x by (200)\n                                        switch costume to (costume13 v)\n                                        create clone of (_myself_ v)\n                                        change y by (-50)\n                                        switch costume to (costume2 v)\n                                        create clone of (_myself_ v)\n                                        change x by (-200)\n                                    end\n                                else\n                                    if <(number) = [40]> then\n                                        go to x: (-100) y: (50)\n                                        add [1] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [2] to [required bricks v]\n                                        switch costume to (costume1 v)\n                                        repeat (3)\n                                            create clone of (_myself_ v)\n                                            next costume\n                                            change x by (100)\n                                        end\n                                        set x to (-100)\n                                        change y by (-50)\n                                        create clone of (_myself_ v)\n                                        next costume\n                                        change x by (100)\n                                        point in direction (-90)\n                                        create clone of (_myself_ v)\n                                        next costume\n                                        change x by (100)\n                                        point in direction (90)\n                                        create clone of (_myself_ v)\n                                        next costume\n                                        change x by (100)\n                                        repeat (2)\n                                            create clone of (_myself_ v)\n                                            switch costume to (costume9 v)\n                                            change y by (-50)\n                                        end\n                                        set x to (-100)\n                                        change y by (50)\n                                        switch costume to (costume2 v)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                        switch costume to (costume3 v)\n                                        create clone of (_myself_ v)\n                                        set x to (-100)\n                                        change y by (-50)\n                                        switch costume to (costume9 v)\n                                        point in direction (-90)\n                                        repeat (2)\n                                            next costume\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                            point in direction (90)\n                                        end\n                                        point in direction (-90)\n                                        switch costume to (costume12 v)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                        point in direction (90)\n                                        switch costume to (costume8 v)\n                                        create clone of (_myself_ v)\n                                        set x to (0)\n                                        change y by (-50)\n                                        switch costume to (costume13 v)\n                                        create clone of (_myself_ v)\n                                        change x by (100)\n                                        switch costume to (costume9 v)\n                                        create clone of (_myself_ v)\n                                        set size to (600) %\n                                        set x to (0)\n                                        set [boss? v] to [1]\n                                        point in direction (-90)\n                                        switch costume to (costume13 v)\n                                        create clone of (_myself_ v)\n                                        set [boss? v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine levels 41-50 (number)\ndelete all of [required bricks v]\ndelete all of [bricks v]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nhide\nset [boss? v] to [0]\nset [xchange v] to [80]\nif <(number) = [41]> then\n    go to x: (-100) y: (50)\n    add [0] to [required bricks v]\n    add [2] to [required bricks v]\n    add [0] to [required bricks v]\n    add [2] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [0] to [required bricks v]\n    add [2] to [required bricks v]\n    switch costume to (costume4 v)\n    create clone of (_myself_ v)\n    change y by (-50)\n    switch costume to (costume14 v)\n    create clone of (_myself_ v)\n    change y by (-50)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\n    set y to (50)\n    change x by (200)\n    switch costume to (costume4 v)\n    create clone of (_myself_ v)\n    change y by (-50)\n    switch costume to (costume14 v)\n    create clone of (_myself_ v)\n    change y by (-50)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nelse\n    if <(number) = [42]> then\n        go to x: (-100) y: (50)\n        add [0] to [required bricks v]\n        add [5] to [required bricks v]\n        add [0] to [required bricks v]\n        add [2] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [0] to [required bricks v]\n        add [2] to [required bricks v]\n        add [2] to [required bricks v]\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change y by (-50)\n        change x by (-100)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume13 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume14 v)\n        create clone of (_myself_ v)\n        change y by (-50)\n        change x by (-100)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        go to x: (100) y: (-50)\n        switch costume to (costume4 v)\n        create clone of (_myself_ v)\n        change y by (-50)\n        change x by (-100)\n        switch costume to (costume14 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume13 v)\n        create clone of (_myself_ v)\n        change x by (100)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        change y by (-50)\n        change x by (-100)\n        switch costume to (costume2 v)\n        create clone of (_myself_ v)\n        go to x: (-100) y: (-150)\n        create clone of (_myself_ v)\n    else\n        if <(number) = [43]> then\n            go to x: (-150) y: (50)\n            add [3] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [3] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            add [0] to [required bricks v]\n            repeat (2)\n                switch costume to (costume7 v)\n                create clone of (_myself_ v)\n                change y by (-50)\n                switch costume to (costume1 v)\n                create clone of (_myself_ v)\n                change y by (-50)\n            end\n            change x by (100)\n            set y to (0)\n            repeat (2)\n                repeat (3)\n                    switch costume to (costume15 v)\n                    create clone of (_myself_ v)\n                    change y by (-50)\n                end\n                change x by (100)\n                set y to (0)\n            end\n            set y to (50)\n            repeat (2)\n                switch costume to (costume7 v)\n                create clone of (_myself_ v)\n                change y by (-50)\n                switch costume to (costume1 v)\n                create clone of (_myself_ v)\n                change y by (-50)\n            end\n        else\n            if <(number) = [44]> then\n                go to x: (-50) y: (50)\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [0] to [required bricks v]\n                add [3] to [required bricks v]\n                add [0] to [required bricks v]\n                add [4] to [required bricks v]\n                repeat (2)\n                    switch costume to (costume13 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                change y by (-50)\n                set x to (-50)\n                repeat (2)\n                    switch costume to (costume15 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                change y by (-50)\n                set x to (-150)\n                switch costume to (costume13 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                repeat (2)\n                    switch costume to (costume15 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                switch costume to (costume13 v)\n                create clone of (_myself_ v)\n                change x by (100)\n                change y by (-50)\n                set x to (-50)\n                repeat (2)\n                    switch costume to (costume15 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                end\n                change y by (-50)\n            else\n                if <(number) = [45]> then\n                    go to x: (0) y: (50)\n                    add [1] to [required bricks v]\n                    add [1] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [2] to [required bricks v]\n                    add [0] to [required bricks v]\n                    add [2] to [required bricks v]\n                    point in direction (90)\n                    switch costume to (costume13 v)\n                    create clone of (_myself_ v)\n                    change x by (100)\n                    point in direction (90)\n                    switch costume to (costume2 v)\n                    create clone of (_myself_ v)\n                    change y by (-50)\n                    switch costume to (costume15 v)\n                    create clone of (_myself_ v)\n                    change y by (-50)\n                    switch costume to (costume1 v)\n                    create clone of (_myself_ v)\n                    change y by (-100)\n                    change x by (50)\n                    switch costume to (costume6 v)\n                    repeat (3)\n                        create clone of (_myself_ v)\n                        change x by (-100)\n                    end\n                    switch costume to (costume5 v)\n                    create clone of (_myself_ v)\n                    change y by (50)\n                    repeat (3)\n                        set x to (-200)\n                        point in direction (0)\n                        create clone of (_myself_ v)\n                        change y by (75)\n                        point in direction (180)\n                        change x by (100)\n                        create clone of (_myself_ v)\n                    end\n                    point in direction (-90)\n                    set x to (-150)\n                    change y by (-150)\n                    switch costume to (costume13 v)\n                    create clone of (_myself_ v)\n                    change y by (75)\n                    point in direction (0)\n                    switch costume to (costume15 v)\n                    create clone of (_myself_ v)\n                else\n                    if <(number) = [46]> then\n                        go to x: (-50) y: (50)\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [0] to [required bricks v]\n                        add [7] to [required bricks v]\n                        switch costume to (costume16a v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume16b v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        change y by (-50)\n                        set x to (-50)\n                        switch costume to (costume16b v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume16a v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        change y by (-50)\n                        set x to (-50)\n                        switch costume to (costume16a v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        switch costume to (costume16b v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                        change y by (-50)\n                        set x to (-50)\n                        switch costume to (costume16b v)\n                        create clone of (_myself_ v)\n                        change x by (100)\n                    else\n                        if <(number) = [47]> then\n                            go to x: (-50) y: (50)\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [0] to [required bricks v]\n                            add [13] to [required bricks v]\n                            switch costume to (costume16a v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume16b v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            change y by (-50)\n                            set x to (-50)\n                            switch costume to (costume16b v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume16a v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            change y by (-50)\n                            set x to (-50)\n                            switch costume to (costume16a v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume16b v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            change y by (-50)\n                            set x to (-50)\n                            switch costume to (costume16b v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume16b v)\n                            create clone of (_myself_ v)\n                            change x by (100)\n                            switch costume to (costume16a v)\n                            create clone of (_myself_ v)\n                            repeat (3)\n                                switch costume to (costume16a v)\n                                create clone of (_myself_ v)\n                                change y by (50)\n                            end\n                            switch costume to (costume16b v)\n                            create clone of (_myself_ v)\n                            change y by (50)\n                        else\n                            if <(number) = [48]> then\n                                go to x: (-150) y: (50)\n                                add [4] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [4] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [0] to [required bricks v]\n                                add [8] to [required bricks v]\n                                repeat (2)\n                                    switch costume to (costume16a v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume1 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume16b v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume7 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    change y by (-50)\n                                    set x to (-150)\n                                    switch costume to (costume16b v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume7 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume16a v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume1 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    change y by (-50)\n                                    set x to (-150)\n                                end\n                            else\n                                if <(number) = [49]> then\n                                    go to x: (-150) y: (50)\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [0] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    add [1] to [required bricks v]\n                                    switch costume to (costume1 v)\n                                    repeat (4)\n                                        create clone of (_myself_ v)\n                                        next costume\n                                        change x by (100)\n                                    end\n                                    set x to (-150)\n                                    point in direction (-90)\n                                    change y by (-50)\n                                    repeat (4)\n                                        create clone of (_myself_ v)\n                                        point in direction (90)\n                                        next costume\n                                        change x by (100)\n                                    end\n                                    set x to (-150)\n                                    point in direction (-90)\n                                    change y by (-50)\n                                    repeat (2)\n                                        create clone of (_myself_ v)\n                                        next costume\n                                        change x by (100)\n                                    end\n                                    point in direction (90)\n                                    switch costume to (costume12 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume11a v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume14 v)\n                                    set x to (-150)\n                                    point in direction (90)\n                                    change y by (-50)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume13 v)\n                                    create clone of (_myself_ v)\n                                    change x by (100)\n                                    switch costume to (costume15 v)\n                                    repeat (2)\n                                        create clone of (_myself_ v)\n                                        next costume\n                                        change x by (100)\n                                    end\n                                else\n                                    if <(level) = [50]> then\n                                        go to x: (-200) y: (-50)\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [0] to [required bricks v]\n                                        add [1] to [required bricks v]\n                                        switch costume to (costume5 v)\n                                        repeat (5)\n                                            create clone of (_myself_ v)\n                                            change x by (100)\n                                        end\n                                        switch costume to (costume17a v)\n                                        set x to (0)\n                                        set size to (600) %\n                                        point in direction (90)\n                                        set [boss? v] to [2]\n                                        create clone of (_myself_ v)\n                                        set [boss? v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [calculate brick amount v]\nforever\n    calculate bricks cleared\n    if <<(bricks cleared) > [15]> or <(bricks cleared) = [15]>> then\n        if <(costume [number v]) = [21]> then\n            repeat (3)\n                next costume\n            end\n        end\n    end\n    if <touching (player v)?> then\n        if <(bricks cleared) < [15]> then\n            if <<(costume [number v]) > [20]> and <(costume [number v]) < [24]>> then\n                broadcast (retry v)\n            end\n        else\n            if <(costume [number v]) = [24]> then\n                if <(direction) = [90]> then\n                    set [vy v] to [11]\n                else\n                    if <(direction) = [-90]> then\n                        set [vy v] to [0]\n                    else\n                        set [vy v] to [0]\n                        change [vy v] by (-1)\n                        if <(direction) = [0]> then\n                            set [vx v] to [10]\n                        else\n                            if <(direction) = [180]> then\n                                set [vx v] to [-10]\n                            end\n                        end\n                    end\n                end\n                replace item (17) of [bricks v] with ((item (17) of [bricks v]) + (1))\n                wall jump\n                simplify lists\n                if <(item (1) of [simplified lists v]) = (item (2) of [simplified lists v])> then\n                    broadcast (play v)\n                end\n                start sound [pop v]\n                delete this clone\n            end\n        end\n    end\nend\n\ndefine calculate bricks cleared\nset [boss i v] to [0]\nset [bricks cleared v] to [0]\nrepeat (17)\n    change [boss i v] by (1)\n    change [bricks cleared v] by (item (boss i) of [bricks v])\nend\n\n@Text\n\nwhen I receive [start game v]\ngo to [front v] layer\nif <<(new level) = [1]> and <not <[blank levels v] contains (level)?>>> then\n    set [new level v] to [0]\n    repeat (1)\n        delete this clone\n    end\n    show\n    set [brightness v] effect to (-50)\n    switch costume to (level)\n    repeat (15)\n        change [brightness v] effect by (10)\n    end\n    wait until <not <mouse down?>>\n    wait until <mouse down?>\nend\nbroadcast (gameplay v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\nclear graphic effects\nset [new level v] to [1]\n\nwhen I receive [gameplay v]\nrepeat (15)\n    change [brightness v] effect by (-10)\nend\nhide\nclear graphic effects\n\nwhen I receive [begin v]\ndelete all of [blank levels v]\nadd [9] to [blank levels v]\nadd [13] to [blank levels v]\nadd [14] to [blank levels v]\nadd [18] to [blank levels v]\nadd [26] to [blank levels v]\nadd [29] to [blank levels v]\nadd [35] to [blank levels v]\nadd [37] to [blank levels v]\nadd [42] to [blank levels v]\nadd [45] to [blank levels v]\nadd [48] to [blank levels v]\n\nwhen I receive [buttons v]\nhide\nstop [other scripts in sprite v]\n\n@Required Bricks\n\nwhen flag clicked\nhide\n\nwhen I receive [required bricks v]\nrepeat (1)\n    delete this clone\nend\ngo to x: (-202) y: (150)\nswitch costume to (costume1 v)\nset [brick i v] to [0]\nrepeat (length of [required bricks v])\n    change [brick i v] by (1)\n    if <not <((item (brick i) of [required bricks v]) - (item (brick i) of [bricks v])) = [0]>> then\n        create clone of (_myself_ v)\n        change y by (-30)\n    end\n    next costume\nend\nbroadcast (number counter v) and wait\nbroadcast (back check v)\n\nwhen I start as a clone\nshow\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [buttons v]\nhide\nstop [other scripts in sprite v]\n\n@Device\n\nwhen flag clicked\nhide\nbroadcast (device v)\n\nwhen I receive [device v]\ngo to x: (-50) y: (0)\nswitch costume to (costume1 v)\nrepeat (2)\n    create clone of (_myself_ v)\n    next costume\n    change x by (100)\nend\nswitch costume to (costume3 v)\nbroadcast (which one to click v) and wait\n\nwhen I start as a clone\nshow\n\nwhen I receive [which one to click v]\nif <not <(costume [number v]) = [3]>> then\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    set [device v] to (costume [number v])\n    broadcast (begin v)\nend\n\nwhen I receive [begin v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Back\n\nwhen flag clicked\nhide\n\nwhen I receive [back check v]\nshow\ngo to x: (182) y: (-143)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (play v)\n    end\nend\n\nwhen I receive [buttons v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\n@Bomb\n\nwhen I start as a clone\nshow\nswitch costume to (costume1 v)\ngo to x: (item (1) of [positions v]) y: (item (2) of [positions v])\nset size to ((item (3) of [positions v]) - (50)) %\npoint in direction (item (4) of [positions v])\nstart sound [Boom Cloud v]\nrepeat (25)\n    change [ghost v] effect by (5)\n    change size by (10)\n    if <touching (player v)?> then\n        broadcast (retry v)\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [retry v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
I finally got around to finishing this project.\nThis project has 3.6k+ blocks!\nShoutout to @StrongBlader for curating this!\n\nInstructions:\n\nLeft and right arrow to move.\nUp arrow to wall jump.\nAll levels are possible on both mobile and PC.\nThere are 50 levels in total.\nPlease ❤️ and ⭐️ this project and follow @Pandan_the_coder for more quality games!\n\nWhat each brick does (in the order that it appears):\n\nWhite: Clear it and bounce\nRed: Kills you unless you touched the blue brick before\nLight green: Clear without bouncing\nBlue: Makes you able to clear lava\nGray: Bounce without clearing\nDark green: Don’t bounce or clear\nBrown: Clear twice\nOrange: Comes back after a few seconds but doesn’t increase the required bricks remaining\nPurple: Like orange but does increase the required bricks\nBeige: Makes you fall down slowly\nCyan: Splits when cleared\nSpiky: Like red, but can’t be cleared by blue\nBlack: Explodes\nDark Blue: Gets rid of water\nGold: Repels you\nPink: Shapeshifts, if it’s a circle you have to avoid it, if it’s a square you can clear it.\nThere are also bosses. There are 5 bosses.\n\n#brick #breaker #platformer #pandan #games #all #trending #pandan_the_coder #ball #break #block\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games