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