[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pygame.init In Multiple Files
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Pygame.init In Multiple Files
- From: James Hofmann <jwhinfinity@xxxxxxxxx>
- Date: Sun, 30 Jan 2005 19:02:51 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 30 Jan 2005 22:03:14 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=aTO6kY3sIdqUx21AFHuWKjHGIu5ecbGeF3+j9JFRU+j2WqJeMbFhLwEzVR4seU8ToNdm16K52Nojlnnxze//JJbp8Rv8BN/eP4Vugl21nhpoSwtAgdRb43phiclFJMin+6gjyZ3LBUPWOMhqupQuXWhJQMectIFmq9Qi/W9sGKk= ;
- In-reply-to: <41FD9B1F.6020906@xepher.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
--- Kris Schnee <kschnee@xxxxxxxxxx> wrote:
> os.path.join("graphics",(str(x) + ".jpg"))
> ).convert()
> GENERIC_OBJECT_IMAGE = pygame.image.load(
> os.path.join("graphics",GENERIC_OBJECT_IMAGE)
> ).convert()
> GENERIC_PERSON_IMAGE = pygame.image.load(
> os.path.join("graphics",GENERIC_PERSON_IMAGE)
> ).convert()
>
Massive lines like these were the culprits when I got
a similar problem. Something - dunno if it's Python,
pygame, or SDL - breaks when you try to complete a
string and load an image from it and convert it at the
same time. Break them up and it will probably work.
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail