本文整理汇总了Python中tile.Tile.bcolour方法的典型用法代码示例。如果您正苦于以下问题:Python Tile.bcolour方法的具体用法?Python Tile.bcolour怎么用?Python Tile.bcolour使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tile.Tile
的用法示例。
在下文中一共展示了Tile.bcolour方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: create_laminate_floor
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import bcolour [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
示例2: create_dark_grass
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import bcolour [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
示例3: create_desk
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import bcolour [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
示例4: create_wall
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import bcolour [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
示例5: create_door
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import bcolour [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
示例6: create_window
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import bcolour [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