Hello

Julien Ibarz a écrit :

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.

you're right. Since I'm trying to clean the weapon code, I have note this too. I think there is a Clanlib bug

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 agree with you

I also correct the bug of the character which move badly when we turn it in another direction (the coordinate x is incorrect).

I have corrected this bug too. It's now in the CVS

You can found my files modified here : http://ibarz.julien.free.fr/wormux.tar.gz

Thanks, I will take a look. Don't hesitate to join our team to make modification directly in the CVS ! There is lot of bugs left in the branch CL07...

_______________

Bye,

Matt

________________________________
Wormux-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-dev



Répondre à