/// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            playerTank = new PlayerTank(100f, 3);   //TODO: have these values scale off difficulty

            //camera = new Camera(graphics.GraphicsDevice.Viewport, Background.Texture.Width, Background.Texture.Height);   //cannot reference null texture

            GUI.Initialize();

            base.Initialize();
        }
Exemple #2
0
 public override void Update(Game game, PlayerTank player)
 {
     //update the minimap
 }
Exemple #3
0
 public virtual void Update(Game game, PlayerTank player)
 {
     //override this with object specific update logic
 }
Exemple #4
0
 public static void Update(Game game, PlayerTank player)
 {
     miniMap.Update(game, player);
     lifeDisplay.Update(game, player);
 }
Exemple #5
0
 public override void Update(Game game, PlayerTank player)
 {
     livesToDraw = player.Lives;
     //base.Update(game);
 }