更新 'settings.py'
This commit is contained in:
parent
9cb30c6ebf
commit
d58eef6f09
20
settings.py
20
settings.py
|
@ -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
|
Loading…
Reference in New Issue