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

This commit is contained in:
2025-08-13 23:30:43 +02:00
parent 689b21bf65
commit 243bb6d9bd
6 changed files with 155 additions and 15 deletions
+3 -1
View File
@@ -50,6 +50,8 @@ class MiceMaze(
return configs
def start_game(self):
self.blood_stains = {}
self.background_texture = None
for _ in range(5):
self.spawn_rat()
@@ -91,7 +93,7 @@ class MiceMaze(
self.render_engine.dialog("Game Over: Mice are too many!", image=self.assets["BMP_WEWIN"])
else:
self.render_engine.dialog(f"You Win! Points: {self.points}", image=self.assets["BMP_WEWIN"], scores=self.read_score())
return True