Example #1
0
 //drawing method for the dragon heads
 public void Draw(GameView view, Vector2 relPosition, Vector2 Position, int lapNum, int playerLap, Gate goal, int d_id, float gameOffset, float levelWidth)
 {
     view.BeginArrowPass(goal.Position, relPosition.X, Position.Y, d_id, gameOffset, levelWidth);
     if (d_id == 0)
     {
         view.BeginHUDPassPlayer(relPosition, Position, goal.Position, lapNum, playerLap, gameOffset);
     }
     else
     {
         view.BeginHUDPassAI(relPosition, Position, goal.Position, lapNum, playerLap, d_id, gameOffset, levelWidth);
     }
     view.EndHUDPass();
 }