In my last update I showed a screenshot with a soldier in cover. In this latest update, I've added an enemy and added the code that marks the players as in cover or being flanked/out of cover.
Here my player is in cover (the enemy has a lower chance of hitting the player and dealing damage):
Here my player is flanked and not in cover (the enemy has a much higher chance of hitting the player and dealing critical damage):
There was actually quite a lot of rework involved in the code and corresponding systems to get the enemy soldier to (re-)appear and have everything work. The next update will be even more involved as I refactor the code into more systems and add more players and enemies - adding turns that switch back and forth after movement.
Here my player is in cover (the enemy has a lower chance of hitting the player and dealing damage):
Here my player is flanked and not in cover (the enemy has a much higher chance of hitting the player and dealing critical damage):
There was actually quite a lot of rework involved in the code and corresponding systems to get the enemy soldier to (re-)appear and have everything work. The next update will be even more involved as I refactor the code into more systems and add more players and enemies - adding turns that switch back and forth after movement.
No comments:
Post a Comment