示例#1
0
        //*********************************************************************************************************************************************
        //
        // Method Name: UpdateBall
        //
        // Description:
        //  Update the ball X-Coordinate and Y-Coordinate based on the ball velocity vector.
        //
        // Arguments:
        //  N/A
        //
        // Return:
        //  N/A
        //
        //*********************************************************************************************************************************************
        public override void Update()
        {
            mHitBox.X += Vector.GetNormalizedComponentX();
            mHitBox.Y += Vector.GetNormalizedComponentY();

            mInnerHitDetection.X += Vector.GetNormalizedComponentX();
            mInnerHitDetection.Y += Vector.GetNormalizedComponentY();
        }
示例#2
0
 //*********************************************************************************************************************************************
 //
 // Method Name: Update
 //
 // Description:
 //  Update the bullet to head towards the top of the screen.
 //
 // Arguments:
 //  N/A
 //
 // Return:
 //  N/A
 //
 //*********************************************************************************************************************************************
 public override void Update()
 {
     mHitBox.Y += Vector.GetNormalizedComponentY();
 }