更新 'settings.py'

This commit is contained in:
小谢 2021-06-21 08:31:50 +08:00
parent 48e7eae53a
commit 5f4a0ff3f7
1 changed files with 12 additions and 2 deletions

View File

@ -7,9 +7,19 @@ class Settings: # 所有设置的类
# 飞船设置
self.ship_speed = 1.5
self.ship_limit = 3
# 子弹设置
# 子弹设置
self.bullet_speed = 1.5
self.bullet_width = 3
self.bullet_height = 15
self.bullet_color = (60, 60, 60)
self.bullets_allowed = 3
self.bullets_allowed = 3
# 外星人设置
self.alien_speed = 1.0
self.fleet_drop_speed = 10
# fleet_direction为1表示向右移为-1表示向左移
self.fleet_direction = 1
# 加快游戏节奏的速度
self.speedup_scale = 1.1
# 外星人分数的提高速度
self.score_scale = 1.5
self.initialize_dynamic_settings()