[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] loading images and sounds
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] loading images and sounds
- From: Charles Joseph Christie II <sonicbhoc@xxxxxxxxx>
- Date: Tue, 1 May 2007 14:46:02 -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 14:46:05 -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:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=iTlYtveKy9iibsO4webGD4B+Pc60nHMLtgP2488zr033VsbLluqHT+VMUrOnjR698B0voIh0JF0qLg15BHl05HQbwVBLNZS1OBxYOaqQnm3dE8w8oyqJRQLVe+a1JG0lZNXM04LcY0gzW4p3tWy46zLYVLszaDDgzVe8wz2fmP0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=a5mux6N+UZGT0w5AOfFSSVrTDponAieBG9iFw0xGMzz9YyvHUS+9sq1oCAfydjBO1rqc2mImMDV7Ru+tb0IWMbMMS9XTkePGNbybghLv1U4sCQVW4Tj+0Z5CKcnlzIHRwcbWnla/ssaPhQVuU7Uo0XtFsHKHaXcuqW0IQ1lBpgY=
- In-reply-to: <46378998.3020508@bluewin.ch>
- References: <200705010753.51648.sonicbhoc@gmail.com> <200705011432.48473.sonicbhoc@gmail.com> <46378998.3020508@bluewin.ch>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: KMail/1.9.6
On Tuesday 01 May 2007 02:40:24 pm DR0ID wrote:
> >>>> Hi again
> >>>>
> >>>> I looked at it for a moment and found following:
> >>>>
> >>>> 1.)stg.py
> >>>> in Player.update()
> >>>> uncomment slef.image.blit(self.image, ...) # this cuases a
> >>>> segmentation fault on my machine, winxp
> >>>>
> >>>> 2.)you have to add a Bullet.png in the img directory
> >>>>
> >>>> 3.) in stg.py in Boss.update() same line as in Player.update()
> >>>>
> >>>> 4.) in bullets.py in the Bullets class the same error as in the other
> >>>> classe in update()!
> >>>>
> >>>> otherwise it seem to work, although I cant see anything happen on
> >>>> screen except of the typing (cant see any bullet??).
> >>>>
> >>>> well done.
> >>>>
> >>>> ~DR0ID
> >>>>
> >>>>
> >>>>
> >>>> PS: if you want to chat, I'm currently online in the IRC on #pygame
> >>>>
> >>>> :-)
> >>>
> >>> I think you have the old code... really really old. I uncommented the
> >>> player image stuff ages ago and I have a (really ugly) bullet in my img
> >>> folder. Did you use svn to get the code or what? I sent another email,
> >>> it should have my most up-to-date junk on it.
> >>
> >> I had the same problems that DR0ID had, and I got the code from
> >> subversion
> >>
> >> I think you forgot to svn add img/Bullet.png
> >
> > Yeah, I did. :P (I just fixed it, try it again)
>
> Hi again
>
> still segmenation faults on winxp. Sorry, this time I have no time to
> check where in the code they occure.
> (well blitting an image on itself at (0,0) does not make any sense, right?)
>
> ~DR0ID
Well, it worked on all the other images... :P
I don't know what to blit it to, then. Could this be the problem?