public GameCamera(Scene _currentScene, Vector3 _position, Quaternion _rotation, float _aspectRatio)
        {
            currentScene = _currentScene;
            position = _position;
            rotation = _rotation;
            aspectRatio = _aspectRatio;
            up = new Vector3(0, 1, 0);
            target = new Vector3();
            viewMatrix = Matrix.CreateLookAt(position,
                        target, up);
            projectionMatrix = Matrix.CreatePerspectiveFieldOfView(
                        MathHelper.ToRadians(45.0f), aspectRatio,
                        0.1f, VIEW_DEPTH);
            viewPort = Space394Game.GameInstance.GraphicsDevice.Viewport;
            fourthPort = new Viewport(
                        Space394Game.GameInstance.DefaultViewPort.Width / 2 + 1,
                        Space394Game.GameInstance.DefaultViewPort.Height / 2 + 1,
                        Space394Game.GameInstance.DefaultViewPort.Width / 2 - 1,
                        Space394Game.GameInstance.DefaultViewPort.Height / 2 - 1);

            splitScreen2 = new AutoTexture2D(Space394Game.GameInstance.Content.Load<Texture2D>("Textures\\splitScreen2"), Vector2.Zero);
            splitScreen3 = new AutoTexture2D(Space394Game.GameInstance.Content.Load<Texture2D>("Textures\\splitScreen3"), Vector2.Zero);
            splitScreen4 = new AutoTexture2D(Space394Game.GameInstance.Content.Load<Texture2D>("Textures\\splitScreen4"), Vector2.Zero);
            blackTexture = new AutoTexture2D(Space394Game.GameInstance.Content.Load<Texture2D>("Textures\\blackTexture"), Vector2.Zero);
            blackTexture.Width = fourthPort.Width;
            blackTexture.Height = fourthPort.Height;
            pausedTexture = new AutoTexture2D(Space394Game.GameInstance.Content.Load<Texture2D>("Textures\\pausedTexture"), Vector2.Zero);
        }
 public virtual void Load(string asset,
     int frameCount, int framesPerSec, Vector2 position)
 {
     framecount = frameCount;
     myTexture = new AutoTexture2D(ContentLoadManager.loadTexture(asset), position);
     TimePerFrame = (float)1 / framesPerSec;
     Frame = 0;
     TotalElapsed = 0;
     Paused = false;
 }
        public void InitializeGraphics()
        {
            hudBase = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_base"), new Vector2(8, 379));

            healthBar = new AutoTexture2D[]
            {
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(88, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(95, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(102, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(109, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(116, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(123, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(130, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(137, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_tic"), new Vector2(144, 431)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_armor_cap"), new Vector2(151, 431))
            };
            shieldBar = new AutoTexture2D[]
            {
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(88, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(95, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(102, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(109, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(116, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(123, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(130, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(137, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(144, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(151, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(158, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_tic"), new Vector2(165, 409)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_shields_cap"), new Vector2(172, 409))
            };
            heatBar = new AutoTexture2D[]
            {
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_1"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_2"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_3"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_4"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_5"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_6"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_7"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_8"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_9"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_10"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_11"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_12"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_13"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_14"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_15"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_16"), new Vector2(9, 380)),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_heat_17"), new Vector2(9, 380))
            };
            secondaryNumbersTextures = new AutoTexture2D[]
            {
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_0"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_1"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_2"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_3"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_4"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_5"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_6"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_7"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_8"), secondaryNumbers[0]),
                new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_secondary_count_9"), secondaryNumbers[0]),
            };

            objectives = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/current_objective"), new Vector2(646, 13));

            timerBox = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_timer"), new Vector2(346, 8));

            esxolusMissileIcon = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_esx_missile_icon"), new Vector2(43, 413));
            esxolusBombIcon = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_esx_bomb_icon"), new Vector2(21, 398));
            esxolusHexIcon = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_esx_hex_icon"), new Vector2(32, 418));
            halkMissileIcon = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_halk_weapon_icon"), new Vector2(40, 415));
            halkInterceptorMissileIcon = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_halk_weapon_icon"), new Vector2(40, 415));
            halkBombIcon = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/HUD_halk_bomb_icon"), new Vector2(38, 413));

            warning = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/warning"), new Vector2(110, 379));
            overheating = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/overheating"), new Vector2(200, 386));

            initialShipsEsx = ((GameScene)Space394Game.GameInstance.CurrentScene).getSpawnPointsRemaining(Ship.Team.Esxolus);
            initialShipsHalk = ((GameScene)Space394Game.GameInstance.CurrentScene).getSpawnPointsRemaining(Ship.Team.Halk);

            int esxLogoX = 168;
            int halkLogoX = 608; //602;

            for (int i = 0; i < (MAX_SHIPS - initialShipsEsx); i++)
            {
                esxLogoX += SHIP_DIST;
            }

            for (int i = 0; i < (MAX_SHIPS - initialShipsHalk); i++)
            {
                halkLogoX -= SHIP_DIST;
            }

            esxolusLogo = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/Screens/HUD_esxolus_logo"), new Vector2(esxLogoX, 8));
            halkLogo = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/Screens/HUD_halk_logo"), new Vector2(halkLogoX, 7));

            esxolusCapitalShip = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/Screens/HUD_esxolus_capital_icon"), Vector2.Zero);
            halkCapitalShip = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/Screens/HUD_halk_capital_icon"), Vector2.Zero);

            takingHitSplash = new AutoTexture2D(ContentLoadManager.loadTexture("Textures/taking_hit"), Vector2.Zero);

            font = Space394Game.GameInstance.Content.Load<SpriteFont>("Fonts/AgencyFB");
            fontScale = new Vector2(AutoTexture2D.WidthConversion, AutoTexture2D.HeightConversion);

            reticulePosition = new Vector2(800 / 2, 480 / 2);
            Texture2D reticuleTexture = ContentLoadManager.loadTexture("Textures/reticule_neutral");
            reticulePosition = new Vector2(reticulePosition.X - reticuleTexture.Width / 2, reticulePosition.Y - reticuleTexture.Height / 2);
            reticule = new AutoTexture2D(reticuleTexture, reticulePosition);

            hitConfirmedReticulePosition = new Vector2(800 / 2, 480 / 2);
            Texture2D hitConfirmedTex = ContentLoadManager.loadTexture("Textures/hit_confirmed_circle");
            hitConfirmedReticulePosition = new Vector2(hitConfirmedReticulePosition.X - hitConfirmedTex.Width / 2, hitConfirmedReticulePosition.Y - hitConfirmedTex.Height / 2);
            hitConfirmedReticule = new AutoTexture2D(hitConfirmedTex, hitConfirmedReticulePosition);
        }
 public override void Load(string asset,
     int frameCount, int framesPerSec, Vector2 position)
 {
     framecount = frameCount;
     myTextures = new AutoTexture2D[frameCount];
     for (int i = 0; i < framecount; i++)
     {
         myTextures[i] = new AutoTexture2D(ContentLoadManager.loadTexture(asset+(i+1)), position);
     }
     TimePerFrame = (float)1 / framesPerSec;
     Frame = 0;
     TotalElapsed = 0;
     Paused = false;
     myTexture = myTextures[0];
 }