protected override void Update(GameTime gameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.Exit(); if (randomize.Pressed()) { tf = new TileFactory(MAXWIDTH, MAXHEIGHT); bf = new BuildingFactory(tf.TileData); } camera.Update(); base.Update(gameTime); }
public void InitData() { tf = new TileFactory(MAXWIDTH, MAXHEIGHT); bf = new BuildingFactory(tf.TileData); }