
6b)Lc        )   @   s}  d  d k  Z d  d k Z dD Z e Z e d dE d dF d dG d	 dH d
 dI d dJ d dK d dL d dM d dN d dO d dP d dQ d dR d dS  Z g  a t i	 d g d  t i	 d g d  d Z
 d Z d   Z h  a d   Z e d d d d d  d! d" d# d$ d% d& d' d( d) d* d+ d, d- d. d/ d0 d1 d2 d3 d4 d5 d6 d3 d7 d8 d9 d: d; d+ d< d= d> d?  Z d@ e dA <d a dB   Z dC Z e Z d S(T   iNi   iX  t   whitei   t   blacki    t   redt   greent   bluet   yellowt   orangei}   t   grayt   dark_redt
   dark_greent	   dark_bluet	   light_redi2   t   light_greent
   light_bluet   clearid   s   DejaVuSans.ttfs   acknowtt.ttfc         C   s   t  i i |  d  } t  i i | t  } t  i i | t  } t t d d <t t d d <xN t d  D]@ } t i i | |  t d | <t i i | |  t d | <qh Wt d d t d d <d S(   s[   
load_fonts() loads the two fonts used throughout the game from the data/fonts/
directory.
t   fontsi    i   id   i   i   N(	   t   ost   patht   joint   font0t   font1t   fontt   ranget   pygamet   Font(   t   data_loct   font_dirt
   font0_filet
   font1_filet   i(    (    sH   /home/trcarlson/Desktop/python/endg-singularity/trunk/code/graphics/g.pyt
   load_fonts>   s     !c         C   s   t  i i |  d  } t  i |  } x | D] } t |  d j oh | d d j p | d d j oF t i i t  i i | |   i   t	 | <t	 | i
 d	 t i  q+ q+ Wd S(
   sF   
load_images() loads all of the images in the data/images/ directory.
t   imagesi   is   .pngs   .jpgi   i    N(   i   i    i   i   (   R   R   R   t   listdirt   lenR   t   imaget   loadt   convertR   t   set_colorkeyt   RLEACCEL(   R   t	   image_dirt
   image_listt   image_filename(    (    sH   /home/trcarlson/Desktop/python/endg-singularity/trunk/code/graphics/g.pyt   load_imagesS   s     $	"t   yest   YESt
   yes_hotkeyt   yt   not   NOt	   no_hotkeyt   nt   okt   OKt	   ok_hotkeyt   ot   cancelt   CANCELt   cancel_hotkeyt   ct   destroyt   DESTROYt   destroy_hotkeyt   dt   buildt   BUILDt   build_hotkeyt   bt   backt   BACKt   back_hotkeyR#   t   LOADt   load_hotkeyt   lt   continue_hotkeyt   skipt   SKIPt   skip_hotkeyt   st   CONTINUEt   continuec           C   s   t  i d  i   a d  S(   Ni    (   i    i    (   R   t   Surfacet   convert_alphat   ALPHA(    (    (    sH   /home/trcarlson/Desktop/python/endg-singularity/trunk/code/graphics/g.pyt
   init_alphay   s    i   (   i   iX  (   i   i   i   i   (   i    i    i    i   (   i   i    i    i   (   i    i   i    i   (   i    i    i   i   (   i   i   i    i   (   i   i}   i    i   (   i}   i}   i}   i   (   i}   i    i    i   (   i    i}   i    i   (   i    i    i}   i   (   i   i2   i2   i   (   i2   i   i2   i   (   i2   i2   i   i   (   i    i    i    i    (   t   os.pathR   R   t   screen_sizet   Falset
   fullscreent   dictt   colorsR   t   appendR   R   R   R   R*   t   buttonst   NoneRR   RS   t   FPSt
   ebook_mode(    (    (    sH   /home/trcarlson/Desktop/python/endg-singularity/trunk/code/graphics/g.pyt   <module>   sT   			
	