
    &hf                        S r SSKrSSKrSrSrSr\R                  " SS5      rSr	\R                  " 5         \R                  R                  \5      r\R                  R                  5       rSq/ q " S S	5      rS
 r\" 5         SrSr\(       Ga  \R.                  R1                  5        H  r\R2                  \R4                  :X  a  Sr\R2                  \R6                  :X  a  \R8                  R;                  5       q\R2                  \R<                  :X  d  Mo  \R>                  \R@                  :X  a  Sr\R>                  \RB                  :X  d  M  \" 5         M     \RE                  S5        [$         H`  r#["        b.   \#RH                  RK                  ["        \#RL                  \-  5        \RT                  RW                  \S\#RH                  \	5        Mb     \R                  RY                  5         \R[                  S5      r\R                  R]                  S\/" \Ra                  5       S5       S\1" [$        5       35        \(       a  GM  \Rd                  " 5         g! \' a    \(" S\RR                   S35      ef = f)aJ  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                       \ rS rSrS rSrg)Ball   c                     Xl         X l        g )Npositionspeed)selfr	   r
   s      U/var/www/auris/envauris/lib/python3.13/site-packages/pygame/examples/go_over_there.py__init__Ball.__init__   s     
    r   N)__name__
__module____qualname____firstlineno__r   __static_attributes__ r   r   r   r      s    r   r   c            
         S q / q[        [        5       H  n [        R
                  " [        R                  " S[        [        R                  5      5      [        R                  " S[        [        R                  5      5      5      n[        R                  " [        [        5      n[        X5      n[        R!                  U5        M     g )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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>rX      s
  
  			jjs# 				[	)

   

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

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

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