
    if                        d Z ddlZddlZdZdZdZ ej                  dd      ZdZ	 ej                          ej                  j                  e      Zej                  j                         Zdag a G d d	      Zd
 Z e        dZdZerej.                  j1                         D ]  Zej2                  ej4                  k(  rdZej2                  ej6                  k(  rej8                  j;                         aej2                  ej<                  k(  skej>                  ej@                  k(  rdZej>                  ejB                  k(  s e         ejE                  d       t$        D ]^  Z#t"        .	 e#jH                  jK                  t"        e#jL                  ez         ejT                  jW                  ede#jH                  e	       ` ej                  jY                          ej[                  d      Zej                  j]                  d e/eja                         d       d e1t$                      er ejd                          y# e'$ r  e(dejR                   d      w xY w)aK   pg.examples.go_over_there
This simple tech demo is showcasing the use of Vector2.move_towards()
using multiple circles to represent Vectors. Each circle will have a
random position and speed once the demo starts.

Mouse Controls:
* Use the mouse to click on a new target position

Keyboard Controls:
* Press R to restart the demo
    Ng      ?   i@  i  iX  c                       e Zd Zd Zy)Ballc                      || _         || _        y )N)positionspeed)selfr   r   s      g/home/obispo/Crisostomo_bridge/mision_env/lib/python3.12/site-packages/pygame/examples/go_over_there.py__init__zBall.__init__   s     
    N)__name__
__module____qualname__r    r   r
   r   r      s    r   r   c            
         d a g at        t              D ]  } t	        j
                  t        j                  dt        t        j                              t        j                  dt        t        j                                    }t        j                  t        t              }t        ||      }t        j!                  |        y )Nr   )target_positionballsrange	MAX_BALLSpgVector2randomrandintintSCREEN_SIZExyuniform	MIN_SPEED	MAX_SPEEDr   append)r   posr   bs       r
   resetr$   $   s     OE9 jjNN1c+--016>>!SEW3X
 y)4eQr   TF)      A   zVersion z[ doesn't have Vector.move_towards_ip function.
                    Please update to >=2.1.3)v         <   zfps:    z, ball count: )3__doc__pygamer   r   r   r    r   r   r   CIRCLE_RADIUSinitdisplayset_modescreentimeClockclockr   r   r   r$   
delta_timerunningeventgettypeQUITMOUSEBUTTONUPmouseget_posKEYUPkeyK_ESCAPEK_rfillor   move_towards_ipr   AttributeErrorRuntimeError__version__drawcirclefliptickset_captionroundget_fpslenquitr   r   r
   <module>rS      s  
  			bjjs# 				[	)

   

 :: G::))) hh..0O::!yyBKK'yyBFF" KK 	K&

**?AGGj<PQ 	v

MJ	K JJOOBJJJ
emmoq)*.UE= D 	 " "  0 1- 0 s   /-II#