🎮 Steemit City Update: FIGHT!

👇 Sourceimage.png
Separator-code.png

My brain is fried!

I've been able to put in some more time on our Zombie Apocalypse game and since every player has been waiting for a fight, I coded in some fights. This won't have applied to everybody yet and there isn't a huge amount of variety in the language but @moecki's game has been updated which saw a comfortable victory.

image.png
Separator-code.png

This now means that any games which encounter a zombie directly outside their door at the beginning can have their battle and you'd be extremely unlucky to lose. And if you do lose, you won't really lose because I haven't coded in player deaths yet.

After completing this task, I returned to the game logic and this is where my brain has temporarily stopped working for me.

I'd previously written some logic for when the player initially steps out into the corridor to check for zombies but when I did this, I didn't code it in such a way that I could reuse it for other scenarios. In my game, I attack a zombie to the left and after this fight, my character wants to check the corridor again for other zombies (I'm unlucky and there's another one waiting for me). This was when I realised that I should've made my previous code reusable so I'm in the process of making it so. Due to the dynamic nature of the zombie locations and my desire to make them move towards you once they've seen you, this is proving complex for my brain.

I've just realised that the options for @moecki's game are wrong.

This is so disheartening.

EDIT: The options aren't wrong. I just need a break!

H2
H3
H4
3 columns
2 columns
1 column
14 Comments