I've thought about putting all the images, or at least all those per
character, in on image, and use the setViewport method to specify the
sprite I need.
However I fear that this will make the animation slower, when the
browser has to move a very large images of which only a little is
shown, instead of just moving the small image.
Is there any sense in my fear?
Is there another way to load all those images in one, or few, HTTP
request? (I'd like to generate the dames dynamicly: P1_jump.png,
P2_jump.png etc., so ImageBundle won't help me)
http://www.screaming-penguin.com/docs/gwt-1.4.10/doc/html/com.google.gwt.user.client.ui.ImageBundle.html
it works like image sprites (or like cropped image in html),
something you could use for your tasks,
if you have photo tool like Photoshop/FireWorks and single image with
tiles (so it is square-ish rather then frame-like horizontal image)
you could export that image tiles separately into pngs/jpgs and they
will be gathered back by image bundle into single image,
you could still use html/css based images and crop them in code, but
you would needs then image loading sequence while your tiles with
ImageBundle can be loaded during startup,
regards,
Peter
On 3 Nov., 03:01, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:
> hi Thomas,
>
> http://www.screaming-penguin.com/docs/gwt-1.4.10/doc/html/com.google....
regards,
Peter
However I fear that this will make the animation slower, when the browser
has to move a very large images of which only a little is shown, instead
of just moving the small image.
Do you think browsers are sufficiently optimized for this use?
--
Med venlig hilsen,
Best regards,
Thomas