[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] loading images and sounds
- To: pygame-users@xxxxxxxx
- Subject: [pygame] loading images and sounds
- From: Charles Joseph Christie II <sonicbhoc@xxxxxxxxx>
- Date: Tue, 1 May 2007 07:53:51 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 01 May 2007 07:53:51 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:message-id; b=WwRmS5qxWffYYAfDN3szMHoe32wMq4LhE4lkwn1jD+DVsMJG/Zlm8E2GTo7GUQzVK01FOqHbGub7Rn0sfVVBUetiDbla63Z2/zy4107BAtfSh3JmVHfZem8Q2rPpy9yuO6OHX63Y2BGwAe/gX/xl4YUukQnZ9RBWMvzvCSQoMjU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:message-id; b=O3vVqHo//v2l+miznJs2iJoydJT/9FbohsQUCUvs/gxLj0qWflh9sJI+fJisZ6qBFT369ul7JKFi20gsxbFC0yKUpFYKzkZFYXsxIAh9FY0jnRWFj4obuJUCJMwhhTjZzdK5Ivxd3X13giivjn6jbVfrA4u+MayCfM2ny7YKUvg=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: KMail/1.9.6
So, I have a helpers.py file that I imported into all of my files. It loads
sounds, images and music. However, when I load an image, I can't do anything
with it because pygame keeps saying that "tuple object has no
attribute 'blit'" and I can't do anything.
I noticed at the bottom of this helper file, it says "return image,
image.get_rect()" on it. What should I do with that then?
Here is the file that is causing the problem and the helpers.py file. this is
due on the 3RD OF MAY OH DANG IT GOT HERE FAST!!! :P
(I said I wouldn't be rushing to get it out at the end of the deadline and,
hey look, I'm rushing to get it out at the end of the deadline. Go figure.
<_< )
Help is appreciated! I need all the help I can get!
Attachment:
helpers.py
Description: application/python
Attachment:
bullets.py
Description: application/python