29 April 2023: combat system was implemented.
I wanted to use character stats and combat system from some well-known RPG systems (GURPS, DND, Cthulchu...) with or without dice rolling. But for the current stage of development of TrappedTogether, this is too complex. I hope there will be player and zombie stats and a character creation page in the future. But at the moment, characteristics are not yet needed: the game does not have a choice of clothes or weapons that would influence the combat.
So, I added some very simple combat system:
- When you press the attack button, you have some chance of hitting or missing your opponent.
- If your attack is successful, a random damage value will be calculated.
- Then you will have some delay before you can perform a new attack.
- Since there is no food in the game, the only way to restore HP is by resting. The player's and zombie's health always regenerates.
Zombies are much weaker than player (otherwise the game will be too short and very boring).
I don't want to specify the exact values of the parameters since I change them very often, and still I don't like the current balance.