[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] creating a sprite image in code
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] creating a sprite image in code
- From: Charles Joseph Christie II <sonicbhoc@xxxxxxxxx>
- Date: Tue, 1 May 2007 15:19:04 -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 15:19:10 -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=VEN91rsx+VOx9Q9sh3FFl2dMsYW6xZk/9hhJJ7p7uV34E/QiEgsM03ZAU+Zf806tCOGoS2zakPMPe1Qgr47KfTt2ifJ5Cf9tuSE5FFZAGlSuXrLzgt9JUrSZt1tSNcozmjwfsEtQE8TBslsKdh2k9O6ojSp1aIiqDGgGH36HcB4=
- 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=Sj1LUCiAhtNbJRurr8bx9LrGLQgqaXBPGLm9jPlMug9yqN0afXHySlwO/dYh0GsNxrLUurqirPGoyG8JyycIC9FbGovgwYz9V99nsGc86g41b1R2ttIv78Gk0/jdludm6jdDN1DbRp1vgki4i848F/eHoC6EA6Bjkn7l5ftCeSE=
- In-reply-to: <848044.24545.qm@web63007.mail.re1.yahoo.com>
- References: <848044.24545.qm@web63007.mail.re1.yahoo.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: KMail/1.9.6
On Tuesday 01 May 2007 03:08:38 pm Rodney Brown wrote:
> I've seen examples on how to load sprites or sprite pages from a .bmp file,
> but I haven't seen an example of making a simple sprite in code.
>
> Does anybody know of an example where the sprite image is created in the
> code itself, instead of loading a graphics file? For what I'm working on
> at the moment I only need say a 3x3 sprite, which would be a waist to have
> to load it from a .bmp file.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
pygame.surface is what you're looking for.