protected override void ShootingPattern(GameTime gameTime)
 {
     if (IsFiring)
     {
         beamModule.Activate(Position, gameTime);
     }
 }
예제 #2
0
        protected override void ShootingPattern(GameTime gameTime)
        {
            if (IsFiring)
            {
                float   offset        = 16;
                Vector2 leftBeamPos   = new Vector2(PositionX - offset, PositionY);
                Vector2 middleBeamPos = new Vector2(PositionX, PositionY);
                Vector2 rightBeamPos  = new Vector2(PositionX + offset, PositionY);

                beamModuleLeft.Activate(leftBeamPos, gameTime);
                beamModuleMiddle.Activate(middleBeamPos, gameTime);
                beamModuleRight.Activate(rightBeamPos, gameTime);
            }
        }