Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

WoA V : Day 5

WoA V : Day 5

stenol26
stenol26
Journal of stenol26 · · 1 min read
2,803 2

Today was a productive day. I did not really encounter major problems except that I had a little difficulty to make the exhaust following the enemy ships when they rotated. I happily found a small solution on the internet. I present it to you:

Public Vector2 GetPositionOfExhaust (Vector2 _vCenter, float _fDistance, float _fDirectionInRadians)
{
	Float yDifference = (float) Math.Sin (_fDirectionInRadians);
	Float xDifference = (float) Math.Cos (_fDirectionInRadians);
	Vector2 vDirection = new Vector2 (xDifference, yDifference);
	Vector2 vPrecisePositionOfSatellite = _vCenter + vDirection * _fDistance;
	Return vPrecisePositionOfSatellite;
}

This code comes from: http://xboxforums.create.msdn.com/forums/t/112011.aspx

To conclude, here some screenshots of the progress:

Here is my objectives for Day 6:

  • Finish the tutorial
  • Make the first level
  • Start to integrate the first boss battle


Discussion

Loading comments...