refactor front

This commit is contained in:
bridge
2025-10-04 23:18:31 +08:00
parent 54d1040907
commit 70233565e7
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ def load_avatar_images(pygame_mod, tile_size: int):
image_path = os.path.join(male_dir, filename)
try:
image = pygame_mod.image.load(image_path)
avatar_size = max(26, int((tile_size * 4 // 3) * 1.2))
avatar_size = max(26, int((tile_size * 4 // 3) * 1.5))
scaled = pygame_mod.transform.scale(image, (avatar_size, avatar_size))
male_avatars.append(scaled)
except pygame_mod.error:
@@ -44,7 +44,7 @@ def load_avatar_images(pygame_mod, tile_size: int):
image_path = os.path.join(female_dir, filename)
try:
image = pygame_mod.image.load(image_path)
avatar_size = max(26, int(tile_size * 4 // 3 * 0.8 * 1.2 * 1.2))
avatar_size = max(26, int(tile_size * 4 // 3 * 0.8 * 1.2 * 1.2 * 1.2))
scaled = pygame_mod.transform.scale(image, (avatar_size, avatar_size))
female_avatars.append(scaled)
except pygame_mod.error:

View File

@@ -14,7 +14,7 @@ ai:
max_decide_num: 3
game:
init_npc_num: 2
init_npc_num: 6
npc_birth_rate_per_month: 0.001
df: