Leprechaun: A Mobile Platformer 

Instructions: *This game is intended to be a fun platformer whilst also teaching you about Saint Patrick's Day, an Irish holiday*.\n\n    -In this game, some teenagers carried you, Leppy The Leprechaun out of your pot of gold and threw you over the rainbow! You need to get back in time for Saint Patrick's Day Dinner! Along the way, learn about Saint Patrick's Day and why it is celebrated in the first place!\n-Tested on both mobile and computer multiple times.\n\nEnglish:\n-Use the WASD, arrow keys, or touchscreen to move.\n-Avoid the four-leafed clovers.\n-Press s to skip or click the skip button\n-Jump on the green trampolines\n-Get back over the rainbow!\n\nEspanol:\n-Utilice el WASD, las teclas de flecha o la pantalla táctil para moverse.\n-Evitar los tréboles de cuatro hojas.\n-Presione s para saltar o haga clic en el botón saltar\n-Salta a los trampolines verdes\n-¡Vuelve sobre el arcoiris!\n\nMandarin Chinese:\n-使用WASD，箭头键或触摸屏移动。\n-避免食用四叶草。\n-按s跳过或单击“跳过”按钮\n-在绿色蹦床上跳跃\n-克服彩虹！\n\nArabic:\nاستخدام WASD ، مفاتيح الأسهم أو شاشة تعمل باللمس للتحرك.-\nتجنب تناول البرسيم.-\n، اضغط s لتخطي أو انقر فوق زر تخطي-\nالقفز على الترامبولين الأخضر-\n، تحقق من قوس قزح!-\n\n\n\n\n\nTags:\n___________________________________________\n#Mobilefriendly#Platform#Platformer#Long#Good#Games#Art#game #fun #fun #love#games#saintpatricksday#leprechaun#saintpattysday#clover#US#holidays#religion#fun#cool#random#awsome\n

@Stage\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\nforever\n    go to [front v] layer\nend\n\n@Leprechaun\n\ndefine Touch Ground <up?>\nchange [falling? v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nchange [frame v] by (0.5)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\nwhen flag clicked\nhide variable [speed y v]\nset [speed y v] to [0]\nforever\n    switch costume to (hitbox v)\n    change [speed y v] by (-1)\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\n    switch costume to (leprechaun-running v)\nend\n\nwhen I receive [level1 v]\nshow\nset size to (64) %\nswitch backdrop to (blue sky 2  v)\nset rotation style [left-right v]\ngo to x: (-209) y: (-101)\nwait until <not <mouse down?>>\nforever\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<(mouse x) < [0]> and <mouse down?>>>> then\n        Walk [-90] [-5]\n    else\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> then\n            Walk [90] [5]\n        else\n            set [frame v] to [0]\n        end\n    end\n    if <<<<key (up arrow v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>> or <key (w v) pressed?>> and <(falling?) < [3]>> then\n        start sound [Jump Sound Effects All Sounds2 v]\n        set [speed y v] to [12]\n    end\n    Set Costume\nend\n\nwhen I receive [level1 v]\nset [change costume every v] to [4.1]\nshow\nset [frame v] to [0]\nforever\n    change [frame v] by ((1) / (Change Costume Every))\n    switch costume to ([floor v] of ((1) + ((frame) mod (8))) )\nend\n\nwhen flag clicked\nswitch backdrop to (beautiful-spring-rainbow-background v)\nhide\nhide variable [change costume every v]\nhide variable [animate v]\nhide variable [frame v]\n\ndefine Set Costume\nif <[3] > (falling?)> then\n    if <(frame) = [0]> then\nelse\n    if <[0] < (speed y)> then\n        switch costume to (6 v)\n    end\nend\n\nwhen I receive [nextlevel v]\ngo to x: (-209) y: (-76)\n\nwhen I receive [level1 v]\nforever\n    if <touching (danger stuff! v)?> then\n        start sound [25-villager-death-sound-variations-in-60-seconds2 v]\n        go to x: (-209) y: (-76)\n    end\nend\n\nwhen I receive [level1 v]\n\nwhen I receive [level1 v]\nforever\n    if <[-195] > (y position)> then\n        start sound [Splash v]\n        go to x: (-209) y: (-76)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [level1 v]\nforever\n    if <touching (bounce v)?> then\n        set [speed y v] to [24]\n    end\nend\n\nwhen I receive [level1 v]\nforever\n    if <<not <key (any v) pressed?>> and > then\n        switch costume to (standing v)\n    end\nend\n\nwhen I receive [level1 v]\nforever\n    if <key (r v) pressed?> then\n        go to x: (-209) y: (-76)\n    end\nend\n\nwhen I receive [level1 v]\nset [skps v] to [2]\nforever\n    if <<key (s v) pressed?> and <[0] < (skps)>> then\n        broadcast (nextlevel v)\n        change [skps v] by (-1)\n        wait (1) seconds\n    end\n    if <<key (s v) pressed?> and <(skps) = [0]>> then\n        broadcast (notenough v)\n    end\nend\n\nwhen I receive [notenough v]\nsay [Yer outta skips!] for (2) seconds\n\nwhen I receive [retry v]\ngo to x: (-209) y: (-76)\n\n@St patricks day fact per level\n\nwhen flag clicked\nswitch costume to (intro v)\ngo to x: (37) y: (23)\nhide\n\nwhen I receive [level1 v]\nshow\n\nwhen I receive [nextlevel v]\nnext costume\n\n@Ground\n\nwhen I receive [level1 v]\nswitch costume to (intro v)\nswitch backdrop to (beautiful-spring-rainbow-background v)\nshow\n\nwhen flag clicked\ngo to x: (1) y: (-1)\nhide\n\nwhen I receive [nextlevel v]\nnext costume\n\n@danger stuff!\n\nwhen flag clicked\ngo to x: (41) y: (16)\nhide\n\nwhen I receive [level1 v]\nshow\nswitch costume to (intro v)\n\nwhen I receive [nextlevel v]\nnext costume\n\n@Startscreen\n\nwhen flag clicked\ngo to x: (2) y: (-3)\nshow\nplay sound [Connect v] until done\n\nwhen I receive [level1 v]\nhide\n\n@StartButton\n\nwhen this sprite clicked\nbroadcast (startscreen v)\nrepeat (8)\n    wait (.15) seconds\n    change [ghost v] effect by (25)\nend\nhide\n\nwhen flag clicked\nshow\ngo to x: (13) y: (-4)\ngo to [front v] layer\nset size to (69) %\n\n@intro\n\nwhen I receive [startscreen v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (37) y: (123)\nhide\n\nwhen I receive [level1 v]\nhide\n\n@Music\n\nwhen flag clicked\nhide\nforever\n    if <(costume [number v]) = [1]> then\n        set volume to (70) %\n    end\n    if <(costume [number v]) = [2]> then\n        set volume to (0) %\n    end\nend\n\nwhen I receive [level1 v]\nswitch costume to (play v)\nshow\ngo to x: (200) y: (143)\nforever\n    play sound [irish-music-st-patricks-day v] until done\nend\n\nwhen this sprite clicked\nnext costume\n\n@ready?\n\nwhen this sprite clicked\nbroadcast (level1 v)\nhide\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\n\nwhen I receive [startscreen v]\nshow\nwait (1) seconds\ngo to [front v] layer\n\n@portal\n\nwhen flag clicked\nhide variable [level# v]\ngo to x: (86) y: (-11)\nswitch costume to (level0 v)\nhide\n\nwhen I receive [level1 v]\nshow\nset [level# v] to [0]\nforever\n    if <touching (leprechaun v)?> then\n        start sound [Coin v]\n        broadcast (nextlevel v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [nextlevel v]\nchange [level# v] by (1)\nnext costume\n\n@bounce\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\nswitch costume to (0 v)\n\nwhen I receive [nextlevel v]\nnext costume\n\n@skip button\n\nwhen this sprite clicked\nif <[0] < (skps)> then\n    broadcast (nextlevel v)\n    change [skps v] by (-1)\n    start sound [Jump v]\n    wait (1) seconds\nend\nif <(skps) = [0]> then\n    broadcast (notenough v)\nend\n\nwhen flag clicked\ngo to x: (36) y: (28)\nset size to (100) %\nhide\n\nwhen I receive [level1 v]\nshow\nset [skps v] to [2]\nforever\n    wait (.44) seconds\n    change [color v] effect by (25)\nend\n\n@raininggold\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nforever\n    if <(level#) = [8]> then\n        wait (.01) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nfalling\n\ndefine falling\ngo to x: (pick random (-195) to (215)) y: (173)\nshow\nrepeat until <touching (ground v)?>\n    change y by (-3)\n    turn right (3) degrees\nend\ndelete this clone\n\n@retry\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\n\nwhen I receive [level1 v]\nshow\n\nwhen this sprite clicked\nbroadcast (retry v)\n\n