更新 'settings.py'

This commit is contained in:
206530233 2021-06-17 17:49:41 +08:00
parent 9cb30c6ebf
commit d58eef6f09
1 changed files with 11 additions and 9 deletions

View File

@ -1,9 +1,11 @@
class Settings:
"""存储游戏《外星人入侵》中所有设置的类"""
def __init__(self):
"""初始化游戏的设置"""
# 屏幕设置
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230, 230, 230)
class Settings:
"""存储游戏《外星人入侵》中所有设置的类"""
def __init__(self):
"""初始化游戏的设置"""
# 屏幕设置
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230, 230, 230)
#飞船设置
self.ship_speed = 1.5