Example #1
0
def generate_buildings():
    return [Building.Market({Item.Apple(10,"Mich."):10,Item.Bread(15,"France"):7})]
Example #2
0
#Creating the cursor object
cursor_location = [0, 0]
cursor = Object.Object(cursor_location[0], cursor_location[1], 'X',
                       libtcod.yellow)
draw_cursor = False

#Creating All the Menus that we will need
menus = Menu.load_menus()
current_menu = menus["Overview Map"]

#Creates instance of the player class
player = Player.Player("Danny Sexbang")

#TESTING adding items and displaying them
player.add_item(Item.Apple(50, "Mich."), 10)

#Create Map
create_map()

#Create Info needed for the GUI
GUI_info = {
    "Player": player,
    "Map": continent_map,
    "City": cities[0],
    "Cursor": cursor
}

while not libtcod.console_is_window_closed():

    #render the screen