Cellar || A Grelours PLATFORMER 
@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (arrière plan1 v)\ngo to x: (-142) y: (-98)\nswitch costume to (costume1 v)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.8))\n    change x by (x)\n    if <touching color (#0064ff)?> then\n        change y by (0.7)\n        if <touching color (#0064ff)?> then\n            change y by (0.7)\n            if <touching color (#0064ff)?> then\n                change y by (0.7)\n                if <touching color (#0064ff)?> then\n                    change y by (0.7)\n                    if <touching color (#0064ff)?> then\n                        change y by (0.7)\n                        if <touching color (#0064ff)?> then\n                            change y by (0.7)\n                            if <touching color (#0064ff)?> then\n                                change y by (0.7)\n                                if <touching color (#0064ff)?> then\n                                    if <key (up arrow v) pressed?> then\n                                        if <(x) > [0]> then\n                                            set [x v] to [-8]\n                                        else\n                                            set [x v] to [8]\n                                        end\n                                        set [y v] to [12]\n                                    else\n                                        set [x v] to ((x) * (-1.3))\n                                        change x by (x)\n                                        set [x v] to [0]\n                                    end\n                                    change y by (-4)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching color (#0064ff)?> then\n        set [y v] to ((y) * (-0.25))\n        change y by (y)\n        if <touching color (#0064ff)?> then\n            change y by (y)\n            if <touching color (#0064ff)?> then\n                change y by (y)\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#0064ff)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [12]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (pic v)?> or <touching (pic2 v)?>> then\n        go to x: (-142) y: (-98)\n    end\nend\n\ngo to x: (106) y: (55)\n\nwhen backdrop switches to [arrière plan1 v]\nrepeat until <(backdrop [number v]) = [2]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan2 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan2 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [3]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan3 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan3 v]\ngo to x: (-142) y: (-98)\n\nwhen backdrop switches to [arrière plan3 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [4]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan4 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan4 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [5]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Cave v] until done\nend\n\nwhen backdrop switches to [arrière plan5 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [6]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan6 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan6 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [7]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan7 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan7 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [8]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan8 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan8 v]\ngo to x: (-142) y: (-98)\nrepeat until <(backdrop [number v]) = [9]>\n    if <<(x position) = [287]> or <(x position) > [287]>> then\n        switch backdrop to (arrière plan9 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan9 v]\ngo to x: (58) y: (-99)\n\n@pic\n\nwhen backdrop switches to [arrière plan1 v]\nshow\nset size to (100) %\ngo to x: (238) y: (-107)\n\nwhen backdrop switches to [arrière plan2 v]\nset size to (60) %\ngo to x: (115) y: (12)\n\nwhen backdrop switches to [arrière plan3 v]\nset size to (60) %\ngo to x: (80) y: (31)\n\nwhen backdrop switches to [arrière plan4 v]\nset size to (60) %\ngo to x: (154) y: (67)\n\nwhen backdrop switches to [arrière plan5 v]\nset size to (60) %\ngo to x: (83) y: (-133)\n\nwhen backdrop switches to [arrière plan6 v]\nset size to (60) %\ngo to x: (153) y: (-143)\n\nwhen backdrop switches to [arrière plan7 v]\nset size to (60) %\ngo to x: (133) y: (99)\n\nwhen backdrop switches to [arrière plan8 v]\nset size to (60) %\ngo to x: (193) y: (-25)\n\nwhen backdrop switches to [arrière plan9 v]\nhide\n\n@pic2\n\nwhen backdrop switches to [arrière plan1 v]\npoint in direction (90)\nhide\ngo to x: (238) y: (-107)\n\nwhen backdrop switches to [arrière plan4 v]\nset size to (60) %\npoint in direction (45)\ngo to x: (-1) y: (-2)\nshow\n\nwhen backdrop switches to [arrière plan3 v]\nset size to (60) %\npoint in direction (0)\ngo to x: (-110) y: (-92)\nshow\n\nwhen backdrop switches to [arrière plan5 v]\nset size to (60) %\npoint in direction (45)\ngo to x: (39) y: (49)\nshow\n\nwhen backdrop switches to [arrière plan6 v]\nset size to (60) %\npoint in direction (45)\ngo to x: (-74) y: (-24)\nshow\n\nwhen backdrop switches to [arrière plan7 v]\nset size to (60) %\npoint in direction (45)\ngo to x: (-83) y: (-19)\nshow\n\nwhen backdrop switches to [arrière plan8 v]\nset size to (60) %\npoint in direction (45)\ngo to x: (4) y: (-47)\nshow\n\nwhen backdrop switches to [arrière plan9 v]\nhide\n\n@Bananas\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\nwhen backdrop switches to [arrière plan9 v]\nshow\n\n
Flèches pour bouger arrow to move