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


Python Tile.char方法代码示例

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


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

示例1: create_laminate_floor

# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import char [as 别名]
def create_laminate_floor(x, y):
    tile = Tile()
    tile.type        = TileType.LAMINATE_FLOOR
    tile.block_sight = False
    tile.block_move  = False
    tile.char        = ' '
    tile.fcolour     = libtcod.Color(140, 140, 190)
    tile.bcolour     = libtcod.Color(140, 140, 190)
    return tile
开发者ID:ajare,项目名称:citadel,代码行数:11,代码来源:mapgen.py

示例2: create_dark_grass

# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import char [as 别名]
def create_dark_grass(x, y):
    tile = Tile()
    tile.type        = TileType.GRASS
    tile.block_sight = False
    tile.block_move  = False
    tile.char        = ' '
    tile.fcolour     = libtcod.Color(0, 108, 0)
    tile.bcolour     = libtcod.Color(0, 108, 0)
    return tile
开发者ID:ajare,项目名称:citadel,代码行数:11,代码来源:mapgen.py

示例3: create_desk

# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import char [as 别名]
def create_desk(x, y):
    tile = Tile()
    tile.type        = TileType.DESK
    tile.block_sight = False
    tile.block_move  = True
    tile.char        = ' '
    tile.fcolour     = libtcod.Color(120, 120, 120)
    tile.bcolour     = libtcod.Color(120, 120, 120)
    return tile
开发者ID:ajare,项目名称:citadel,代码行数:11,代码来源:mapgen.py

示例4: create_wall

# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import char [as 别名]
def create_wall(x, y):
    tile = Tile()
    tile.type        = TileType.WALL
    tile.block_sight = True
    tile.block_move  = True
    tile.char        = ' '
    tile.fcolour     = libtcod.Color(96, 96, 96)
    tile.bcolour     = libtcod.Color(96, 96, 96)
    return tile
开发者ID:ajare,项目名称:citadel,代码行数:11,代码来源:mapgen.py

示例5: create_door

# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import char [as 别名]
def create_door(x, y):
    tile = Tile()
    tile.type        = TileType.DOOR
    tile.block_sight = False
    tile.block_move  = False
    tile.char        = ' '
    tile.fcolour     = libtcod.Color(140, 140, 190)
    tile.bcolour     = libtcod.Color(140, 140, 190)
    tile.door        = Door()
    return tile
开发者ID:ajare,项目名称:citadel,代码行数:12,代码来源:mapgen.py

示例6: create_window

# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import char [as 别名]
def create_window(x, y):
    tile = Tile()
    tile.type        = TileType.WINDOW
    tile.block_sight = False
    tile.block_move  = True
    tile.char        = ' '
    tile.fcolour     = libtcod.Color(196, 196, 196)
    tile.bcolour     = libtcod.Color(96, 96, 96)
    tile.window      = Window()
    return tile
开发者ID:ajare,项目名称:citadel,代码行数:12,代码来源:mapgen.py


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