In the CL07 branch, the weapon dynamite is drawed badly. I discover the
problem : the surface of dynamite is created by a sprite of
BatonDynamite. The problem is that baton.image.get_frame_surface(0)
don't give the surface of the first sprite but the surface of the 16
sprites.
This problem is due of a bad conception : in fact, the weapon dynamite
is both a ArmeProjectile and a Arme but in real it's juste inherit of
Arme. So the coder has created Dynamite::image by BatonDynamite::image
instead of use a ressource. To resolve that, we have two choice : doing
an hack drawing only the first sprite of BatonDynamite for drawing
Dynamite or creating an other ressource dynamite.png which contain only
one sprite. I think the second choice is the better and the more clear.
I do that.
I also correct the bug of the character which move badly when we turn it
in another direction (the coordinate x is incorrect).
You can found my files modified here :
http://ibarz.julien.free.fr/wormux.tar.gz
- [Wormux-dev] contribs Julien Ibarz
-