本文整理汇总了Python中Map.Map.conversations方法的典型用法代码示例。如果您正苦于以下问题:Python Map.conversations方法的具体用法?Python Map.conversations怎么用?Python Map.conversations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Map.Map
的用法示例。
在下文中一共展示了Map.conversations方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getconversation
# 需要导入模块: from Map import Map [as 别名]
# 或者: from Map.Map import conversations [as 别名]
jeremyaftersteve.eventrequirements = [EventRequirement("beatsteve")]
dancelionpass = getconversation("dancelionpass")
dancelionpass.area = [0, 0, b, b * 10]
dancelionpass.isbutton = False
dancelionpass.exitteleport = [b + honeyw / 4, "same"]
dancelionpass.eventrequirements = [EventRequirement("beatsteve", -1, 1)]
dancelionbattle = getconversation("dancelionbattle")
dancelionbattle.eventrequirements = [EventRequirement("beatsteve")]
dancelionbattle.area = [dancelion.x, dancelion.y, dancelion.w+10, dancelion.h+10]
dancelionbattle.special_battle = copy.copy(enemies.enemies["dance lion"])
dancelionbattle.special_battle.lv = 6
dancelionbattle.special_battle.specialscale = "C minor"
jeremyhome.conversations = [jeremy, jeremyaftersteve, dancelionpass, dancelionbattle]
jeremyhome.enemies = enemies.woodsenemies
# outside2######################################################################################
outside2width = 900
rgrassland = graphics.grassland(900, 500, rightpath = False, uppath = True)
outsideheight = GR[rgrassland]["h"]
b = GR[rgrassland]["w"] / 10
outside2 = Map(rgrassland, [])
outside2.populate_with("pinetree", 22)
outside2.populate_with("greyrock", 3)
outside2.populate_with("flower", randint(0, 1))
outside2.exitareas = [
Exit("left", False, 'outside1', "right", "same"),
Exit("top", False, 'outside3', "same", "bottom")]
示例2: Exit
# 需要导入模块: from Map import Map [as 别名]
# 或者: from Map.Map import conversations [as 别名]
[getconversation("hungryspeak")]],
switchtheserocks="stash")
eatfromstashoffset = 10
eatfromstash.area = [131+eatfromstashoffset, 61, GR["stash00"]["w"]-2*eatfromstashoffset, GR["stash00"]["h"]]
doorexit = Exit([35 + honeyw / 2, 165, 37 - honeyw, extraarea],
True, 'outside1',
GR["honeyhouseoutside"]["w"] * 0.3 + houserock.x, GR["honeyhouseoutside"]["h"] - honeyh + honeyfeetheight-20*p)
doorexit.eventrequirements = [EventRequirement("letter")]
blockexit = getconversation("hungry")
blockexit.area = doorexit.area
blockexit.eventrequirements = [EventRequirement("letter", -1, 1)]
honeyhome.conversations = [eatfromstash, blockexit]
honeyhome.startpoint = [28, 39]
letterexit = Exit([67, 100, 20, 30],
True, 'letter',
GR["paper"]['w']*(3/10), 0)
letterexit.storyevent = "letter"
honeyhome.exitareas = [doorexit,
letterexit]
honeyhome.colliderects = [Rect(0, 0, 30, 74), # bed
Rect(0, 0, insidewidth, 48), # wall
Rect(44, 0, 26, 60), # wardrobe
Rect(75, 110 + 11, 44, 13)] # table
honeyhome.uselastposq = True
示例3: Exit
# 需要导入模块: from Map import Map [as 别名]
# 或者: from Map.Map import conversations [as 别名]
snowentrance.exitareas = [Exit("right", False, "jeremyhome", "left", "same"),
Exit("left", False, "snowarea1", "right", "same")]
snowentrance.enemies = enemies.snowenemies
snowentrance.lvrange = [6]
# snowarea1##############################################################################
snowarea1 = Map(snowland(700, 500), [])
snowarea1.populate_with("snowpinetree", randint(10, 15))
snowarea1.lvrange = [6, 7]
snowarea1.enemies = enemies.snowenemies
snowarea1.exitareas = [Exit("right", False, "snowentrance", "left", "same"),
Exit("left", False, "hoppingtreearea", "right", "same")]
# hoppingtreearea#######################################################################
hoppingrock = Rock("chicking0", 350, 250, variables.TREECOLLIDESECTION)
hoppingtreearea = Map(snowland(800, 500), [hoppingrock])
hoppingtreearea.lvrange = [6, 8]
hoppingtreearea.enemies = enemies.snowenemies
hoppingtreearea.exitareas = [Exit("right", False, "snowarea1", "left", "same")]
hoppingtreeconversation = getconversation("hoppingtree")
hoppingtreeconversation.area = Rect(hoppingrock.x, hoppingrock.y + int(hoppingrock.h*3/4), hoppingrock.w, hoppingrock.h/2)
hoppingtreeconversation.special_battle = enemyforspecialbattle("hopping tree")
hoppingtreeconversation.special_battle.lv = 8
hoppingtreearea.conversations = [hoppingtreeconversation]