更新 'settings.py'
This commit is contained in:
parent
5f4a0ff3f7
commit
b5fc7b5836
10
settings.py
10
settings.py
|
@ -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
|
Loading…
Reference in New Issue