本文整理汇总了Python中Map.roomDesc方法的典型用法代码示例。如果您正苦于以下问题:Python Map.roomDesc方法的具体用法?Python Map.roomDesc怎么用?Python Map.roomDesc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Map
的用法示例。
在下文中一共展示了Map.roomDesc方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load
# 需要导入模块: import Map [as 别名]
# 或者: from Map import roomDesc [as 别名]
def load():
print("Loading")
if os.path.isfile("player.qso"):
Globals.player = pickle.load( open( "player.qso","rb"))
global loadingFlag
loadingFlag = True
Globals.gameState = "Dungeon"
print(Globals.player.name,"loaded successfully.")
a,b = Map.positionCheck()
globalsList = pickle.load( open("progress.qso","rb"))
Globals.doorUnlocked = globalsList[0]
Globals.miniBoss = globalsList[1]
Globals.defeatBoss = globalsList[2]
Globals.getKey = globalsList[3]
Map.position = [globalsList[4],globalsList[5]]
Map.roomDesc(globalsList[4],globalsList[5])
Globals.whaleTrap = globalsList[6]
Globals.levelInit = globalsList[7]
else:
print("Player not found")
示例2: create
# 需要导入模块: import Map [as 别名]
# 或者: from Map import roomDesc [as 别名]
def create():
Globals.player = Player()
Globals.gameState = "Dungeon"
a,b = Map.positionCheck()
Map.roomDesc(a,b)