Mini-Game: 🧟 Zombie City

Hey there blazers!

Today I want to share another experiment. is a dice survival game in which you have to avoid zombies and pick food to survive.

image

how to play?

  • Select how strong you are going to throw the dice
  • insert the snippet, and see if you survive, or die
  • copy the inserted code to continue playing
  • use the snippet again and paste the code on the top left corner.

{note: preview=yes; insert=no}{lose=0}{level=1}{loadfood=9}{loadscore=0}{loadroom=1}Load code here {{^^%F0%9F%92%BE^^}}: {formtext: name=loadcode; default=no save}{endnote}

{note: preview=no; insert=no}
{if: loadcode = "no save"} {else}
{codeLoaded=base64decode(loadcode)}
{scorecode=codeLoaded}{levelcode=codeLoaded}{roomcode=codeLoaded}{foodcode=codeLoaded}
{splitcodeIniA=search(scorecode,"ñA")}{preloadscore=substring(scorecode, splitcodeIniA+2, 3)}
{splitcodeIniB=search(levelcode,"ñB")}{level=substring(levelcode, splitcodeIniB+2, 1)}
{splitcodeIniC=search(roomcode,"ñC")}{loadroom=substring(roomcode, splitcodeIniC+2, 1)}
{splitcodeIniD=search(roomcode,"ñD")}{loadfood=substring(roomcode, splitcodeIniD+2, 1)}
{loadscore=preloadscore+ 0}
{endif}
--Escenario
{space1={random-text: {{^^%F0%9F%8F%A0^^}}, {{^^%F0%9F%8F%A1^^}}, {{^^%F0%9F%8F%A2^^}}, {{^^%F0%9F%8F%A3^^}}, {{^^%F0%9F%8F%A4^^}}, {{^^%F0%9F%8F%A5^^}}, {{^^%F0%9F%8F%A6^^}}, {{^^%F0%9F%8F%A8^^}}, {{^^%F0%9F%8F%A9^^}}, {{^^%F0%9F%8F%AA^^}}, {{^^%F0%9F%8F%AB^^}}, {{^^%F0%9F%8F%AC^^}}, {{^^%F0%9F%8F%AD^^}}, {{^^%E2%9B%AA^^}}, {{^^%F0%9F%95%8C^^}}, {{^^%F0%9F%95%8D^^}}, {{^^%F0%9F%8F%9F^^}}, {{^^%F0%9F%8F%9B^^}}, {{^^%F0%9F%8F%97^^}}, {{^^%F0%9F%8F%98^^}}, {{^^%F0%9F%8F%9A^^}},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F%8C%B2^^}},{{^^%F0%9F%8C%B3^^}},{{^^%F0%9F%8C%B2^^}},{{^^%F0%9F%8C%B3^^}},{{^^%F0%9F%8C%B2^^}},{{^^%F0%9F%8C%B3^^}},{{^^%F0%9F%8C%B2^^}},{{^^%F0%9F%8C%B3^^}}}}
{dice={random-number: min=1; max=6; rounded=yes}}
--Mines
{mine1=0}{mine2=0}{mine3=0}{mine4=0}{mine5=0}{mine6=0}
{mine1={random-number: min=1; max=6; rounded=yes}}{if: level>1} {mine2={random-number: min=1; max=6; rounded=yes}} {endif}{if: level>2} {mine3={random-number: min=1; max=6; rounded=yes}}{endif} {if: level>3} {mine4={random-number: min=1; max=6; rounded=yes}}{endif} {if: level>4} {mine5={random-number: min=1; max=6; rounded=yes}}{endif} {if: level>5} {mine6={random-number: min=1; max=6; rounded=yes}}{endif}
{foodcan=0}{foodcan={random-number: min=1; max=6; rounded=yes}}

{if: mine1=1 or mine2=1 or mine3=1 or mine4=1 or mine5=1 or mine6=1}{space1="{{^^%F0%9F%A7%9F^^}}"}{endif}
{if: mine1=2 or mine2=2 or mine3=2 or mine4=2 or mine5=2 or mine6=2}{space2="{{^^%F0%9F%A7%9F^^}}"}{endif}
{if: mine1=3 or mine2=3 or mine3=3 or mine4=3 or mine5=3 or mine6=3}{space3="{{^^%F0%9F%A7%9F^^}}"}{endif}
{if: mine1=4 or mine2=4 or mine3=4 or mine4=4 or mine5=4 or mine6=4}{space4="{{^^%F0%9F%A7%9F^^}}"}{endif}
{if: mine1=5 or mine2=5 or mine3=5 or mine4=5 or mine5=5 or mine6=5}{space5="{{^^%F0%9F%A7%9F^^}}"}{endif}
{if: mine1=6 or mine2=6 or mine3=6 or mine4=6 or mine5=6 or mine6=6}{space6="{{^^%F0%9F%A7%9F^^}}"}{endif}

{if: foodcan=1}{space1="{{^^%F0%9F%A5%AB^^}}"}{endif}
{if: foodcan=2}{space2="{{^^%F0%9F%A5%AB^^}}"}{endif}
{if: foodcan=3}{space3="{{^^%F0%9F%A5%AB^^}}"}{endif}
{if: foodcan=4}{space4="{{^^%F0%9F%A5%AB^^}}"}{endif}
{if: foodcan=5}{space5="{{^^%F0%9F%A5%AB^^}}"}{endif}
{if: foodcan=6}{space6="{{^^%F0%9F%A5%AB^^}}"}{endif}

{endnote}
{note: preview=yes; insert=no}

{{^^%F0%9F%A7%9F^^}}{{^^%E2%98%A2^^}} ZOMBIE CITY {{^^%E2%98%A2^^}}{{^^%F0%9F%A7%9F^^}}

Drop the dice, keep energy by getting food, avoid zombies.

{{^^%E2%AD%90^^}}SCORE: {=loadscore} {{^^%F0%9F%A5%AB^^}} ENERGY {=loadfood}/9{if: loadfood < 3}{{^^%E2%9A%A0^^}}{endif} {{^^%F0%9F%8F%A0^^}}STREET: {=loadroom} {{^^%F0%9F%8F%86^^}} LEVEL: {=level}

{{^^%F0%9F%9A%A7^^}}{{^^%F0%9F%A7%94^^}}
YOU ARE HERE {=space1} {=space2} {=space3} {=space4} {=space5} {=space6}

{{^^%F0%9F%8E%B2^^}} Throw the dice with {formmenu: default={{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A2^^}} weak; {{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A0^^}} normal; {{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%94%B4^^}} strong; name=selection} force!

{dicerepeat=6}{if: selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A2^^}} weak" }{dicerepeat={random-number: min=1; max=2; rounded=yes}}{elseif: selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A0^^}} normal"} {dicerepeat={random-number: min=3; max=4; rounded=yes}} {elseif: selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%94%B4^^}} strong" and dice < 5 }{dicerepeat={random-number: min=5; max=6; rounded=yes}}{endif}

{endnote}
{note: preview=no; insert=yes}
{{^^%F0%9F%AB%B1^^}}{{^^%F0%9F%8E%B2^^}} throwing dice with {if: selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A2^^}} weak" }weak{elseif: selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A0^^}} normal" }normal{else}strong{endif} force:
{repeat: dicerepeat-1}
{{^^%F0%9F%8E%B2^^}}: {random-text: ⚀, ⚁, ⚂, ⚃, ⚄, ⚅} {wait: delay=+0.3s}.
{endrepeat}
{{^^%F0%9F%8E%B2^^}}:{wait: delay=+0.2s}{if: dice > 2 and selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A2^^}} weak"} {dice={random-number: min=1; max=3; rounded=yes}} {endif}{if: dice > 4 and selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%9F%A0^^}} normal"} {dice={random-number: min=2; max=5; rounded=yes}} {endif}{if: dice < 5 and selection="{{^^%F0%9F%8E%B2^^}}{{^^%F0%9F%94%B4^^}} strong"} {dice={random-number: min=4; max=6; rounded=yes}} {endif}{if: dice = 1}⚀{endif}{if: dice = 2}⚁{endif}{if: dice = 3}⚂{endif}{if: dice = 4}⚃{endif}{if: dice = 5}⚄{endif}{if: dice = 6}⚅{endif}

[{if: dice=1}{{^^%F0%9F%A7%94^^}}{elseif: dice>1}{{^^%E2%9E%A1^^}}{endif}{=space1}]{wait: delay=+0.3s} [{if: dice=2}{{^^%F0%9F%A7%94^^}}{elseif: dice>2}{{^^%E2%9E%A1^^}}{endif}{=space2}]{wait: delay=+0.3s} [{if: dice=3}{{^^%F0%9F%A7%94^^}}{elseif: dice>3}{{^^%E2%9E%A1^^}}{endif}{=space3}]{wait: delay=+0.3s} [{if: dice=4}{{^^%F0%9F%A7%94^^}}{elseif: dice>4}{{^^%E2%9E%A1^^}}{endif}{=space4}]{wait: delay=+0.3s} [{if: dice=5}{{^^%F0%9F%A7%94^^}}{elseif: dice>5}{{^^%E2%9E%A1^^}}{endif}{=space5}]{wait: delay=+0.3s} [{if: dice=6}{{^^%F0%9F%A7%94^^}}{elseif: dice>6}{{^^%E2%9E%A1^^}}{endif}{=space6}]

{newfood=loadfood-1}{if: dice=1 and space1="{{^^%F0%9F%A7%9F^^}}"}{lose=1}{endif}{if: dice=2 and space2="{{^^%F0%9F%A7%9F^^}}"}{lose=1}{endif}{if: dice=3 and space3="{{^^%F0%9F%A7%9F^^}}"}{lose=1}{endif}{if: dice=4 and space4="{{^^%F0%9F%A7%9F^^}}"}{lose=1}{endif}{if: dice=5 and space5="{{^^%F0%9F%A7%9F^^}}"}{lose=1}{endif}{if: dice=6 and space6="{{^^%F0%9F%A7%9F^^}}"}{lose=1}{endif}.

{if: loadfood < 1}{lose=1} YOU STARVE {{^^%F0%9F%A4%A2^^}} no energy remaining.{endif}
{if: lose=1}
{{^^%F0%9F%8D%96^^}}{{^^%F0%9F%A7%9F^^}} GAME OVER{{^^%F0%9F%8D%96^^}}{{^^%F0%9F%A7%9F^^}}
{{^^%E2%AD%90^^}}Your final score: {=loadscore}
{{^^%F0%9F%A7%94^^}}You traveled: {=loadroom*level} streets{else}

{newscore=loadscore+dice}
{if: loadroom+1>9}{newroom=1}{newlevel=level+1}{else}{newroom=loadroom+1}{newlevel=level}{endif}
{random-text: WELLDONE!, NICE!, GOOD JOB!, SURVIVED!, DONE!, SAVED GAME!, AMAZING!, LEVEL CLEARED, SURVIVED NIGHT, SAFE HOUSE, ALL CLEAR} {random-text: {{^^%E2%98%A2^^}}, {{^^%F0%9F%9A%A7^^}}, {{^^%F0%9F%8E%92^^}}, {{^^%F0%9F%A5%BE^^}}, {{^^%F0%9F%8C%86^^}}, {{^^%F0%9F%8F%99^^}}, {{^^%F0%9F%9A%93^^}}}
{{^^%E2%9A%A1^^}}ENERGY: -1{{^^%F0%9F%A5%AB^^}}.
{{^^%E2%AD%90^^}}SCORE: +{=dice}{wait: delay=+0.3s}.

{if: level<newlevel}{{^^%F0%9F%8F%86^^}} New level unlock!: {wait: delay=+0.3s} +1{{^^%F0%9F%A7%9F^^}}{endif}
{if: dice=1 and space1="{{^^%F0%9F%A5%AB^^}}"}{loadfood=9}{{^^%F0%9F%A5%AB^^}}You found some food!{endif}{if: dice=2 and space2="{{^^%F0%9F%A5%AB^^}}"}{loadfood=9}{{^^%F0%9F%A5%AB^^}}You found some food!{endif}{if: dice=3 and space3="{{^^%F0%9F%A5%AB^^}}"}{loadfood=9}{{^^%F0%9F%A5%AB^^}}You found some food!{endif}{if: dice=4 and space4="{{^^%F0%9F%A5%AB^^}}"}{loadfood=9}{{^^%F0%9F%A5%AB^^}}You found some food!{endif}{if: dice=5 and space5="{{^^%F0%9F%A5%AB^^}}"}{loadfood=9}{{^^%F0%9F%A5%AB^^}}You found some food!{endif}{if: dice=6 and space6="{{^^%F0%9F%A5%AB^^}}"}{loadfood=9}{{^^%F0%9F%A5%AB^^}}You found some food!{endif}
{fixedscore=substring(concat("000", newscore), -3, 3)}{savehash=concat("ñA", fixedscore, "ñB", newlevel, "ñC", newroom,"ñD", newfood)}{savecode=base64encode(savehash)}
{{^^%F0%9F%92%BE^^}} Code: {cursor}{=savecode}{endif}{endnote}

2 Likes