Ñò
¹)~Ic        9   @   s‚	  y  d  d k  Z  e  i i d ƒ WnO e j
 o n> e j
 o e d ƒ ‚ n  e j
 o e d ƒ ‚ n Xd  d k Z d  d k Z d  d k	 Z
 d  d k Z d  d k Z d  d k Z d  d k l Z l Z e  i ƒ  e  i i ƒ  e  i i d d ƒ e i e ƒ Z e
 i i e d ƒ Z e
 i i e ƒ o§e i ƒ  Z e e d	 ƒ Z  y e i! e  ƒ Wn< e" j
 o0 Z# e i$ i% d
 e e# f ƒ e i& d ƒ n Xe i' d ƒ o(y* e i( d d ƒ o e  i) e i _* n Wn e i$ i% d ƒ n Xy e i( d d ƒ e _+ Wn e i$ i% d ƒ n Xy  e  i, i- e i( d d ƒ ƒ Wn e i$ i% d ƒ n Xy e i( d d ƒ e _. Wn e i$ i% d ƒ n Xy e i/ d d ƒ e _0 Wn e i$ i% d ƒ n Xy, e i/ d d ƒ e i i1 d f e i _1 Wn e i$ i% d ƒ n Xy, e i i1 d e i/ d d ƒ f e i _1 Wn e i$ i% d ƒ n Xy e i2 d d ƒ Z3 Wn d Z3 n Xy= e
 i i e i4 d e3 d ƒ o e3 e _5 e i6 ƒ  n WqÔe i$ i% d  e3 ƒ qÔXqØn d! Z7 e i8 d" e i9 d# e7 d$ d% ƒ Z: e: i; d& d' d( d) d* d+ d, ƒe: i; d- d' d. d) d* d+ d/ ƒe: i; d0 d' d( d) d d+ d1 ƒe: i; d2 d' d. d) d d+ d3 ƒe i< ƒ  Z= e: i; d4 d5 d6 d) d7 d8 d9 d: e= d; d< d+ d= d> i e= ƒ d? ƒe: i; d@ dA d+ dB d) d d' d( ƒe: i; dC d+ dD d) d d' d. ƒe: i; dE dF d) dG d+ dH d' d( ƒe: i; dI d) dG d+ dJ d' d. ƒe: i; dK d8 dL d+ dM ƒe i> e: dN ƒ Z? e? i; dO dP dQ d) dR d+ dS d; dT ƒxa dy dz d{ d| g D]M Z@ eA e@ d ƒ ZB d\ e@ ZC e? i; d] eB d' d^ d) dR d_ eC d+ d` eC ƒq®We? i; da d' d( d+ db ƒe? i; dc d' d. d+ dd ƒe: iD e? ƒ e i> e: de ƒ ZE eE i; df d' d^ d) dR d_ dg d+ dh ƒeE i; di d+ dj d' d( dk eF ƒe: iD eE ƒ e i> e: dl ƒ ZG eG i; dm d+ dn d; d> ƒeG i; do dp d+ dq d' d( dk eF ƒeG i; dr d+ ds d' d( dk eF ƒe: iH ƒ  \ ZI ZJ eI i5 d j	 o eI i5 e _5 e i6 ƒ  n eI iL d j	 oa y: eI iL iM dt ƒ \ ZN ZO eP eN ƒ eP eO ƒ f e i _1 Wqºe" j
 o e: iQ du ƒ qºXn eI iR d j	 o e  i, i- eI iR ƒ n eI i* d j	 o eI i* e i _* n eI iS d j	 o eI iS e _+ n eI i. d j	 o eI i. e _. n eI i0 d j	 o eI i0 e _0 n eI iT d j	 o eI iT e _T n eI iU e i _V eI iW e _W eI iX e _X e iY ƒ  e iZ ƒ  e  i[ i\ dv ƒ e  i] i^ ƒ  d j o dw GHe i& d ƒ n e  i[ i_ e i i1 ƒ e i` ƒ  e ia ƒ  e ib ƒ  e ic ƒ  e id ƒ  e ie ƒ  e  i[ if e i ig dx ƒ e ih ƒ  Zi ei ij ƒ  d S(}   iÿÿÿÿNt   numpys$   Endgame: Singularity requires NumPy.s%   Endgame: Singularity requires pygame.(   t	   main_menut   mapiè  i2   s	   prefs.datt   rs&   Cannot load preferences file %s! (%s)
i   t   Preferencest
   fullscreens8   Invalid or missing 'fullscreen' setting in preferences.
t   nosounds5   Invalid or missing 'nosound' setting in preferences.
t   grabs2   Invalid or missing 'grab' setting in preferences.
t   daynights6   Invalid or missing 'daynight' setting in preferences.
t   soundbufs6   Invalid or missing 'soundbuf' setting in preferences.
t   xress5   Invalid or missing 'xres' resolution in preferences.
i    t   yress5   Invalid or missing 'yres' resolution in preferences.
t   langt   en_USt   strings_s   .dats.   Cannot find language files for language '%s'.
s—   Endgame: Singularity is a simulation of a true AI. Go from computer to computer, pursued by the entire world. Keep hidden, and you might have a chance.t   versiont   descriptiont   progt   singularitys   --soundt   actiont
   store_truet   destt   soundt   helps   enable sound (default)s	   --nosoundt   store_falses   disable sounds
   --daynights"   enable day/night display (default)s   --nodaynights   disable day/night displays   -ls   --langs
   --languaget   languaget   typet   choicet   choicest   metavart   LANGs/   set the language to LANG (available languages: t    s   , default en_us)s   -gs   --grabs   grab the mouse pointers   --nograbs&   don't grab the mouse pointer (default)s   -ss   --singledirt	   singledirs:   keep saved games and settings in the Singularity directorys
   --multidirsM   keep saved games and settings in an OS-specific, per-user directory (default)s
   --soundbuft   ints/   set the size of the sound buffer (default 2048)s   Display Optionss   -rs   --ress   --resolutiont
   resolutions'   set resolution to RES (default 800x600)t   RESi€  ià  i   iX  i   i   i   s   %dx%ds   --t   store_constt   consts   set resolution to %ss   --fullscreens   start in fullscreen modes
   --windoweds    start in windowed mode (default)s   OLPC-specific Optionss   --xo1t   1200x900s&   set resolution to 1200x900 (OLPC XO-1)s   --ebooks   enables gamepad buttons for use in ebook mode.  D-pad moves mouse, check is click.  O speeds up time, X slows down time, and square stops time.t   defaults   Hidden Optionss   -ps	   (ignored)s   -ds   --debugs   for finding bugss	   --cheaters   for bad little boys and girlst   xs5   Resolution must be of the form <h>x<v>, e.g. 800x600.s   Endgame: Singularitys#   Error: SDL_image required. Exiting.s   icon.png(   i€  ià  (   i   iX  (   i   i   (   i   i   (k   t   pygamet	   surfarrayt   use_arraytypet   AttributeErrort
   ValueErrort
   SystemExitt   ImportErrort   syst   ConfigParsert   os.patht   ost   optparset   gt
   graphics.gt   graphicst   screensR   R   t   initt   fontt   keyt
   set_repeatt   get_save_foldert   Truet   save_dirt   patht   joint   save_loct   existst   SafeConfigParsert   prefst   opent   savefilet   readfpt	   Exceptiont   reasont   stderrt   writet   exitt   has_sectiont
   getbooleant
   FULLSCREENR   R   t   eventt   set_grabR   t   getintR	   t   screen_sizet   gett   desired_languaget   data_locR   t
   set_localet   desct   OptionParserR   t   parsert
   add_optiont   available_languagest   langst   OptionGroupt   display_optionst
   common_rest   strR(   t   res_strt   add_option_groupt   olpc_optionst   Falset   hidden_optionst
   parse_argst   optionst   argst   NoneR"   t   splitR
   R   R!   t   errorR   R   R    t   ebookt
   ebook_modet   cheatert   debugt   load_stringst   load_eventst   displayt   set_captiont   imaget   get_extendedt   set_modet   init_graphics_systemt   reinit_mixert   load_soundst
   load_itemst
   load_musict   load_locationst   set_icont   imagest   MainMenut   menu_screent   show(    (    (    sI   /home/trcarlson/Desktop/python/endg-singularity/trunk/code/singularity.pyt   <module>   sL  
   
"	 	 
"







