Thanks for your clean in the weapon code. It's really better now.
Le mar 31/08/2004 à 22:22, Matthieu Fertré a écrit :
> Hum, well, the most doubtful decision is about weapon position and
> rotation.
ClanLib 0.7 add rotation hotspot, a really sexy feature ("Programming is
like sex, it's better when it's free" -- Linus Torwald). It add also
translation, base rotation angle, etc. With all new features, we can
easily place our weapons ;-)
If the weapons are not well placed, it should a bug in ClanLib (x,y)
calculation functions.
> All the modification haven't been done. In fact, there are special
> weapons... For example, in the original game Worms, you can play 2 times
> with the shotgun in the same turn, or you can use a ninja cord and then
> use a another weapon. That's why I add "bool can_change_weapon" and
> "uint nb_replay" in the weapon class. This is still not used but it
> should be implemented fast !
Matthieu : Can you do implement "nb_replay" (e.g. for gun) ? It will be
cool, because I like this weapon !
> The problem is I don't know where to manage
> the "State" of the game_loop, would I manage it in keyboard.cpp, or will
> it be better to manage it in weapon.cpp ?
Weapon class, I think.
Bye, Haypo