예제 #1
0
파일: Game1.cs 프로젝트: nthfloor/GamesDev
        //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();
        }
예제 #2
0
파일: Camera.cs 프로젝트: nthfloor/GamesDev
 //defualt constructor
 public Camera(Tank t)
 {
     tankObj = t;
     ResetCam();
 }