示例#1
0
文件: mapgen.py 项目: ajare/citadel
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
0
文件: mapgen.py 项目: ajare/citadel
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
示例#3
0
文件: mapgen.py 项目: ajare/citadel
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
示例#4
0
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
示例#5
0
文件: mapgen.py 项目: ajare/citadel
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
示例#6
0
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
示例#7
0
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
示例#8
0
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
示例#9
0
文件: mapgen.py 项目: ajare/citadel
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
示例#10
0
文件: mapgen.py 项目: ajare/citadel
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
示例#11
0
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
示例#12
0
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