/// <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(); }
public override void Update(Game game, PlayerTank player) { //update the minimap }
public virtual void Update(Game game, PlayerTank player) { //override this with object specific update logic }
public static void Update(Game game, PlayerTank player) { miniMap.Update(game, player); lifeDisplay.Update(game, player); }
public override void Update(Game game, PlayerTank player) { livesToDraw = player.Lives; //base.Update(game); }