本文整理汇总了Python中Map.Map.playerenabledp方法的典型用法代码示例。如果您正苦于以下问题:Python Map.playerenabledp方法的具体用法?Python Map.playerenabledp怎么用?Python Map.playerenabledp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Map.Map
的用法示例。
在下文中一共展示了Map.playerenabledp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
# 需要导入模块: from Map import Map [as 别名]
# 或者: from Map.Map import playerenabledp [as 别名]
s1 = pygame.transform.scale(s1, [int(lettertextscalefactor*s1.get_width()), int(lettertextscalefactor*s1.get_height())])
s2 = pygame.transform.scale(s2, [int(lettertextscalefactor*s2.get_width()), int(lettertextscalefactor*s2.get_height())])
graphics.addsurfaceGR(s1, "stolelunchtext", [s1.get_width(), s1.get_height()])
graphics.addsurfaceGR(s2, "tplunchtext", [s2.get_width(), s2.get_height()])
w1 = Rock("stolelunchtext", b * 5 - s1.get_width() / 2, b * 3, None)
w1.background_range = None
w2 = Rock("tplunchtext", b * 5 - s2.get_width() / 2, b * 4.5, None)
w2.background_range = None
letter = Map("backgroundforpaper", [bigpaper,
w1,
w2],
shadowsp = False)
letter.playerenabledp = False
thatr = getconversation("thatracoon")
thatr.area = [-b*10, -b*10, b * 30, b * 30]
thatr.storyevent = "that racoon"
thatr.eventrequirements = [EventRequirement("that racoon", -1, 1)]
letter.conversations = [thatr]
letter.exitareas = [Exit([0, 0, b * 10, b * 10], True, 'honeyhome', 'same', 'same')]
# outside1######################################################################################
b = GR["horizontal"]["w"] / 10
#stands for random pine tree
rpt = graphics.pinetree()