public CombinedCamera(Tank target, CameraMode initialMode, Vector3 initialPosition)
 {
     this.mode = initialMode;
     this.tank = target;
     this.focus = target.getPosition();
     this.position = initialPosition;
 }
Пример #2
0
        public Game()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = 1280;
            graphics.PreferredBackBufferHeight = 720;

            Content.RootDirectory = "Content";

            hud = new HudOverlay(this);
            tank = new Tank(this, new Vector3(0,0,0));
            floor = new Floor(this, new Vector3(0, 0, 0), 512, 40, 40);

            camera = new CombinedCamera(tank, CameraMode.ThirdPerson, new Vector3(0,10000,-10000f));

            randomObjects = new List<RandomObject>();

            OperatingSystem os = Environment.OSVersion;
            platform = os.Platform;
        }