Original Post
i am making shoot them up game.
however, bullets are buzzing.
bullet moving is not smooth.
My Develop Environment is MS Visual Studio 2010, Windows 7 and SDL 1.2
below is pseudo-code of my bullet moving logic.
process the code every frame.
double x;
double y;
double Speed;
//speed(angle) addition per frame. (addition may be 0.0 if unneccerary)
double speed_acc;
double angle_acc;
double Radian = abs(Angle - 360.0) * (PI / 180.0);
x = x + (Speed * Cos (Radian));
y = y + (Speed * Sin(Radian));
Speed = Speed + speed_acc;
Angle = Angle + angle_acc;
please help me.. and thank you for reading my question!
however, bullets are buzzing.
bullet moving is not smooth.
My Develop Environment is MS Visual Studio 2010, Windows 7 and SDL 1.2
below is pseudo-code of my bullet moving logic.
process the code every frame.
double x;
double y;
double Speed;
//speed(angle) addition per frame. (addition may be 0.0 if unneccerary)
double speed_acc;
double angle_acc;
double Radian = abs(Angle - 360.0) * (PI / 180.0);
x = x + (Speed * Cos (Radian));
y = y + (Speed * Sin(Radian));
Speed = Speed + speed_acc;
Angle = Angle + angle_acc;
please help me.. and thank you for reading my question!