# General config settings
MISC_CONFIG = {

# UDP port (used by Host LAN Game)
port_number = 16399


#
# Game config settings
#

# Maximum number of chat messages to store
max_chat_lines = 300

# Animation settings
bat_anim_timescale = 65

# Control settings
menu_delay = 500            # delay between pressing fire and menu appearing

# Graphics settings
death_draw_map_time = 1500 # how long to show the map after death

# Sound settings 
sound_volume = 35          # 0 to 100. NB too high may cause 'crackling'

# Main game FPS (maximum)
fps = 120

# Font
font_size = 15       # Font size for title screens, menus etc
font_antialias = 1
dpy_font_base_size = 600   # Controls the in-game font size
dpy_font_min_size = 14   # Smallest allowed font size in game

# Display layout
dpy_viewport_width = 160
dpy_viewport_height = 245
dpy_gutter = 10
dpy_pixels_per_square = 16

dpy_dungeon_width = 160    # (10 squares)
dpy_dungeon_height = 176   # (11 squares)

game_over_ratio = 90   # as percentage
game_over_r = 180
game_over_g = 60
game_over_b = 60
game_over_msg = "CLICK MOUSE TO CONTINUE"
game_over_fade_time = 300
game_over_black_time = 300

# Note: dpy_inventory_width / dpy_inventory_slots
# should equal the width of each inventory graphic...
dpy_inventory_left = 20
dpy_inventory_top = 5
dpy_inventory_width = 128
dpy_inventory_height = 64
dpy_inventory_gem_height = 16
dpy_inventory_slots = 8
dpy_inventory_spacing = 2

dpy_map_top = 5
dpy_map_left = 104
dpy_map_width = 48       # Large enough for the menu (48x48) as well as the map.
dpy_map_height = 48
mini_map_flash_time = 140

dpy_skulls_left = 0
dpy_skulls_top = 8
dpy_potion_left = 18     # skulls require 16 width.
dpy_potion_top  = 50


message_on_time = 400
message_off_time = 200
msg_alpha = 160    # alpha of the black background for in-game msgs.
screen_flash_time = 200
screen_flash_r = 170
screen_flash_g = 170
screen_flash_b = 119
pot_flash_time = 160       # for super, poison immun. (controls duration of each flash)
pi_flash_delay = 6         # for poison immun. (controls how frequent flashes are)

# In-game chat params
chat_min_lines = 3
chat_max_lines = 10
chat_percentage = 20
chat_top_margin = 20
chat_bottom_margin = 10
chat_alpha = 160  # used for the chat> prompt at the moment.
chat_font_size = 16

# Pause mode colours
pause1r = 200
pause1g = 80
pause1b = 80

pause2r = 160
pause2g = 40
pause2b = 40

pause3r = 170
pause3g = 170
pause3b = 119

pause4r = 136
pause4g = 136
pause4b = 85

pausealpha = 192

}

# Menus
MENU_CENTRE    = ["menu_centre.bmp"]
MENU_EMPTY     = ["menu_empty.bmp"]
MENU_HIGHLIGHT = ["menu_highlight.bmp",0,0,0]


# Winner/Loser images
WINNER_IMAGE = ["winner.bmp", 0,0,0, 0,0]
LOSER_IMAGE  = ["loser.bmp",  0,0,0, 0,0]

# Skulls and Potion Bottle
g_skull1        = ["skull1.bmp",0,0,0,-1,-9]
g_skull2        = ["skull2.bmp",0,0,0, 0,-7]
g_skull3        = ["skull3.bmp",0,0,0, 0,-3]
g_skull4        = ["skull4.bmp",0,0,0, 0, 0]
g_health0       = ["health0.bmp",0,0,0]
g_health1       = ["health1.bmp",0,0,0]
g_health2       = ["health2.bmp",0,0,0]
g_health3       = ["health3.bmp",0,0,0]
g_health4       = ["health4.bmp",0,0,0]

POTION_SETUP = {
    graphics = [g_health0, g_health1, g_health2, g_health3, g_health4],
    colours = [
        $880000,   # No potion
        $000000,   # Invisibility
        $000077,   # Strength
        $440066,   # Quickness
        $EE4400,   # Regeneration
        $004400    # Paralyzation
    ]
}

SKULL_SETUP = {
    graphics = [g_skull1, g_skull2, g_skull3, g_skull4]
    # rows, columns give the pixel coordinates at which to draw the skulls.
    rows = [45, 30, 15, 0]
    columns = [0, 8, 4]
}


# Maximum number of chat lines that will be remembered
max_chat_lines = 200
