Exemplo n.º 1
0
        //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();
        }
Exemplo n.º 2
0
 //defualt constructor
 public Camera(Tank t)
 {
     tankObj = t;
     ResetCam();
 }