当前位置: 首页>>代码示例>>Python>>正文


Python Map.enemies方法代码示例

本文整理汇总了Python中Map.Map.enemies方法的典型用法代码示例。如果您正苦于以下问题:Python Map.enemies方法的具体用法?Python Map.enemies怎么用?Python Map.enemies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Map.Map的用法示例。


在下文中一共展示了Map.enemies方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: getconversation

# 需要导入模块: from Map import Map [as 别名]
# 或者: from Map.Map import enemies [as 别名]
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")]
outside2.enemies = enemies.woodsenemies
开发者ID:oflatt,项目名称:pythonRpgProject,代码行数:32,代码来源:forestmaps.py

示例2: Map

# 需要导入模块: from Map import Map [as 别名]
# 或者: from Map.Map import enemies [as 别名]
from enemies import enemyforspecialbattle
from conversations import getconversation
from Map import Map
from graphics import snowland
from Exit import Exit
from Rock import Rock
from pygame import Rect


# snowentrance###########################################################################
snowentrance = Map(snowland(650, 500, True), [])
snowentrance.populate_with("snowpinetree", randint(4, 10))

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])
开发者ID:oflatt,项目名称:pythonRpgProject,代码行数:33,代码来源:snowmaps.py


注:本文中的Map.Map.enemies方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。