Thanks for the response. Unfortunately when I tried this I get....
pyglet.image.ImageException: Cannot blit images onto <ImageData 1216x800>.
Here's my code in a nutshell.
MapFloor = image.create(width, height)
for y in range(0, self.LevelHeight):
for x in range(0, self.LevelWidth):
MapFloor.texture.blit_into(sprite, X, Y)
On Wed, Apr 23, 2008 at 5:54 PM, Txema Vicente <[EMAIL PROTECTED]> wrote:
>
> Hi. This could work:
>
> bgimage=pyglet.image.create(width,height)
> bgimage.texture.blit_into(tile,x,y,0)
>
>
> ----- Original Message -----
> From: "Alex Morais" <[EMAIL PROTECTED]>
> To: "pyglet-users" <[email protected]>
> Sent: Thursday, April 24, 2008 12:43 AM
> Subject: Can't create a new image and blit_into it
>
>
> >
> > I'm working on a Level class for my game in which it will iterate over
> > the map specification and blit all of the tiles to a texture or
> > image. This way I can just re-blit the visible region of the map.
> >
> > Can anyone tell me the proper or prescribed method for instantiating
> > an image into which I'll be blitting loaded image data?
> > >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 269.23.3/1392 - Release Date:
> > 22/04/2008 15:51
> >
> >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---