Enhance blood stain mechanics: add dynamic blood surface generation and integrate blood stains into game rendering

This commit is contained in:
Matteo Benedetto
2025-08-13 23:30:43 +02:00
parent 689b21bf65
commit 243bb6d9bd
6 changed files with 155 additions and 15 deletions
-2
View File
@@ -71,14 +71,12 @@ class Timer(Bomb):
for victim in self.game.unit_positions.get((x, y), []):
if victim.id in self.game.units:
if victim.partial_move >= 0.5:
print(f"Victim {victim.id} at {x}, {y} dies")
victim.die(score=score)
if score < 160:
score *= 2
for victim in self.game.unit_positions_before.get((x, y), []):
if victim.id in self.game.units:
if victim.partial_move < 0.5:
print(f"Victim {victim.id} at {x}, {y} dies")
victim.die(score=score)
if score < 160:
score *= 2