更新 'settings.py'

This commit is contained in:
小谢 2021-06-21 16:01:02 +08:00
parent 5f4a0ff3f7
commit b5fc7b5836
1 changed files with 10 additions and 0 deletions

View File

@ -23,3 +23,13 @@ class Settings: # 所有设置的类
# 外星人分数的提高速度
self.score_scale = 1.5
self.initialize_dynamic_settings()
# """初始化随游戏进行而变化的设置"""
def initialize_dynamic_settings(self):
self.ship_speed = 1.5
self.bullet_speed = 3.0
self.alien_speed = 1.0
# fleet_direction为1表示向右为-1表示向左
self.fleet_direction = 1
#计分
self.alien_points = 50