URL:
<http://gna.org/task/?func=detailitem&item_id=3157>
Summary: Change rotation point of weapon using xml file
Project: Wormux
Submitted by: gentildemon
Submitted on: jeudi 13.04.2006 à 06:07
Should Start On: jeudi 13.04.2006 à 00:00
Should be Finished on: jeudi 13.04.2006 à 00:00
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Percent Complete: 0%
Open/Closed: Open
Effort: 0.00
_______________________________________________________
Details:
Currently, the rotation point of a weapon is exactly in the middle of the
weapon. This is completely crazy for the baseball bat for example.
// Return the absolute rotation point of the weapon
void Weapon::RotationPointXY (int &x, int &y) const
{
PosXY(x,y);
x += m_image->GetWidth()/2;
y += m_image->GetHeight()/2;
}
_______________________________________________________
Reply to this item at:
<http://gna.org/task/?func=detailitem&item_id=3157>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna