)</PRE
><P
>Here we make a more sophisticated image loading function than the one provided by Pygame (<TT
CLASS="FUNCTION"
>image.load</TT
>). Note that
the first line of the function is a documentation string describing what the function does, and what object(s) it returns. The
function assumes that all of your images are in a directory called data, and so it takes the filename and creates the full pathname,
for example <TT
CLASS="FUNCTION"
>data/ball.png</TT
>, using the <I
CLASS="CITETITLE"
>os</I
> modu