引入没有雾的浓雾模式

This commit is contained in:
星外之神 2022-05-06 14:52:27 +08:00
parent 3fc37066f4
commit 62976366c1
3 changed files with 7 additions and 1 deletions

View File

@ -47,6 +47,7 @@ python main.py
* 1 和 2白昼模式 * 1 和 2白昼模式
* 3夜晚模式 * 3夜晚模式
* 4泳池模式 * 4泳池模式
* 5: 浓雾模式(暂时没有雾)
* 小游戏模式: * 小游戏模式:
* 1传送带模式 * 1传送带模式
* 2坚果保龄球模式 * 2坚果保龄球模式

Binary file not shown.

View File

@ -56,7 +56,9 @@ class Level(tool.State):
# 是否有铲子的信息无铲子时为0有铲子时为1故直接赋值即可 # 是否有铲子的信息无铲子时为0有铲子时为1故直接赋值即可
self.hasShovel = self.map_data[c.SHOVEL] self.hasShovel = self.map_data[c.SHOVEL]
# 同时播放音乐 # 同时指定音乐
# 缺省音乐为进入的音乐,方便发现错误
self.bgm = 'intro.opus'
if c.CHOOSEBAR_TYPE in self.map_data: # 指定了choosebar_type的传送带关 if c.CHOOSEBAR_TYPE in self.map_data: # 指定了choosebar_type的传送带关
if self.map_data[c.CHOOSEBAR_TYPE] == c.CHOSSEBAR_BOWLING: # 坚果保龄球 if self.map_data[c.CHOOSEBAR_TYPE] == c.CHOSSEBAR_BOWLING: # 坚果保龄球
self.bgm = 'bowling.opus' self.bgm = 'bowling.opus'
@ -72,6 +74,9 @@ class Level(tool.State):
# 泳池 # 泳池
elif self.map_data[c.BACKGROUND_TYPE] in {c.BACKGROUND_POOL}: elif self.map_data[c.BACKGROUND_TYPE] in {c.BACKGROUND_POOL}:
self.bgm = 'poolLevel.opus' self.bgm = 'poolLevel.opus'
# 浓雾
elif self.map_data[c.BACKGROUND_TYPE] in {c.BACKGROUND_FOG}:
self.bgm = 'fogLevel.opus'
def setupBackground(self): def setupBackground(self):
img_index = self.map_data[c.BACKGROUND_TYPE] img_index = self.map_data[c.BACKGROUND_TYPE]