[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Infinite sprites
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Infinite sprites
- From: Charles Joseph Christie II <sonicbhoc@xxxxxxxxx>
- Date: Wed, 2 May 2007 20:13:51 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 02 May 2007 20:14:00 -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=G3Hf7SYeFvnCGWbdLpU0BS/9axrFFJcQ/7Vm+3j2PEKdUGGNbJACo+7AQxJmCDvGuWVhwL6K1QU3/JPy4UlYeQ3HolNPYnwJccunhD14br4qvC0KF+AEMKAvF2YIwmpZhGyIyxQ+jtSDdrx5WTgZ+LrXwdPJGB0EuvBV3s6CdaU=
- 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=kobq/hgsQnv/7d81wR2x17pi8N20307p+SM0zFam1r1SEsQhOQkiapXvIjv1yAf9iMf/V4cSt3twkfriFDcZyBrQgg+DUl9WJ5KUnXXSPGsxAaVvYNQgJK3FlDGKACP3JMUWPm1mi85lyT2tYHL7ZujBjfn+VA8o7TW0nZn0M/s=
- In-reply-to: <4639258B.8060608@cs.rpi.edu>
- References: <46390BC1.8010206@willmcgugan.com> <200705021948.51660.sonicbhoc@gmail.com> <4639258B.8060608@cs.rpi.edu>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: KMail/1.9.6
On Wednesday 02 May 2007 07:58:03 pm Ethan Glasser-Camp wrote:
> Charles Joseph Christie II wrote:
> > Am I the one that started the whole idea of bullet hell games in this
> > mailing list? heh, well he's definitely right that this little trick
> > would make rendering hundreds of bullets at a time less painful...
> >
> > ...If I could wrap my empty head around it. T_T
>
> My original email had an explanation of the technique but I thought
> that might be considered spoilers :). It might help you understand if
> you went into the code. At the very top, there's a line called
> FRAME_COUNT. Change it to 1 or 2 and see what happens.
>
> It's a cute trick, but it relies on certain properties of the sprite
> motion -- namely that all sprites are identical, and are all following
> the same trail, but are just on different places on it. I think
> generally the use of sprites in a game runs counter to these
> assumptions -- you introduce a sprite class because the sprites aren't
> identical, and they move differently. But like I said, maybe bullet
> hell games.
>
> Ethan
Oh... that's still cool, though. Maybe after I fix my little game thing that
currently is out of order, I could implement something like this? It would be
cool to have, oh say, 2 or 3 of these running at the same time making a
pattern. Would that make sense or would it be asking for trouble?