//constructor public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 853; graphics.PreferredBackBufferHeight = 480; IsMouseVisible = true; Content.RootDirectory = "Content"; //create tank object tank = new Tank(); //create cameras camera = new Camera(tank); random = new Random(); }
//defualt constructor public Camera(Tank t) { tankObj = t; ResetCam(); }