修改字体样式移除大蒜卡片原图中的阳光

This commit is contained in:
wszqkzqk 2022-07-28 05:48:23 +08:00
parent 14d4775360
commit f447111406
2 changed files with 0 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -37,7 +37,6 @@ class Card():
# 计划以后以此坐标进行相对变化,用字体绘制阳光消耗大小,不再采用现在的图片包含阳光方法
# 以便减小程序体积并增加可维护性
font = pg.font.Font(c.FONT_PATH, 12)
font.bold = True
self.sun_cost_img = font.render(str(c.PLANT_CARD_INFO[index][c.SUN_INDEX]), True, c.BLACK)
self.sun_cost_img_rect = self.sun_cost_img.get_rect()
sun_cost_img_x = 32 - self.sun_cost_img_rect.w