develooper Front page | perl.sdl.devel | Postings from March 2011

Re: Can`t draw sprite on another sprite

From:
breno
Date:
March 24, 2011 10:17
Subject:
Re: Can`t draw sprite on another sprite
Message ID:
AANLkTimoSmgCPTy=6gx4je3RodCkBz-rEzFO=aewwE8M@mail.gmail.com
Hi Roman,

Thanks for the patch! I'm sorry I can't look at this right now, but
once we get your multi-file approach done&tested, I'm pretty sure it
can be merged into SDLx::Sprite::Animated. If you want to speed things
up, please join us at #sdl in irc.perl.org.

Cheers,

garu

On Thu, Mar 24, 2011 at 5:12 AM, Roman V. Nikolaev <rshadow@rambler.ru> wrote:
> How?
> I was use SDLx::Sprite::Animated, but my images in separate files like:
> unit-run1.png, unit-run2.png, unit-run3.png, ...
> I make simple child (in attach) but this strings not work:
>
> my $full = SDLx::Surface->new(width=>$width, height=>$height);
> $_->surface->blit($full) for @sprite;
>
> I try SDLx::Sprite->draw but it not work too. I think I go to wrong way.
> Please help me to do this.
>
> P.S. What you think: this code (with fixes) can be added later in
> SDLx::Sprite::Animated?
>
>
> Roman V. Nikolaev
>
>



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About