⨠ Dawn || A platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Ikson - Last Summer v] until done\nend\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-90)\nforever\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (niveaux v)?> then\n        gravité\n        if <touching (niveaux v)?> then\n            change y by (-6)\n            x\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                set [y v] to [13]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-7]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (niveaux v)?> then\n        y\n        if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [15]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\ndefine gravité\nrepeat (6)\n    if <touching (niveaux v)?> then\n        change y by (1)\n    end\nend\n\ndefine x\nrepeat until <not <touching (niveaux v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine y\nrepeat until <not <touching (niveaux v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [237]> then\n        broadcast (message1 v)\n        go to x: (-223) y: (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (niveaux v)?> or <touching (danger v)?>> then\n        go to x: (-223) y: (-99)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (niveaux v)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen I receive [message1 v]\nchange [level v] by (1)\n\nwhen flag clicked\nset [level v] to [1]\nshow\ngo to x: (-223) y: (-90)\n\nwhen I receive [someone pressed skip button v]\ngo to x: (-223) y: (-90)\n\nhide\n\n@Niveaux\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (stop skip v)\n    end\nend\n\nwhen I receive [message1 v]\nnext costume\n\n@Skip\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (0) y: (0)\nforever\n    set y to ((10) * ([cos v] of ((timer) * (20)) ))\n    point in direction ((90) + ((0.5) * ([cos v] of ((timer) * (180)) )))\nend\n\nwhen this sprite clicked\nbroadcast (message1 v)\n\nhide\n\nwhen I receive [stop skip v]\nhide\n\n@dawn a platformer\n\nwhen flag clicked\nhide\n\nshow\n\n@danger\n\nwhen flag clicked\ngo to [back v] layer\n\n@Sun\n\nchange size by (-5)\n\nwhen flag clicked\nclear graphic effects\ngo to [back v] layer\nset size to (100) %\ngo to x: (25) y: (2)\nglide (150) secs to x: (19) y: (327)\n\nwhen flag clicked\nrepeat (800)\n    change [color v] effect by (0.05)\n    wait (0.05) seconds\nend\n\n@Sun 2\n\nwhen flag clicked\nclear graphic effects\ngo to x: (10) y: (15)\ngo to [back v] layer\nshow\nforever\n    change size by (5)\n    wait (0.5) seconds\n    change size by (-5)\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nglide (150) secs to x: (19) y: (327)\n\nwhen flag clicked\nrepeat (800)\n    change [color v] effect by (0.05)\n    wait (0.05) seconds\nend\n\n
                            Dawn || A platformer\n\n                                  Fr en bas !\n\nHi ! Welcome in Dawn || A platformer ! Arrows keys to move and mobile friendly. ;) \n\n___________________________________________\n\nSalut ! Bienvenue dans Aube || A platformer ! Les flèche pour bouger et jouable sur mobile. ;) \n