/// <summary> /// Constructor /// </summary> public PrisonGame() { // XNA startup graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; // Create objects for the parts of the ship for(int i=1; i<=6; i++) { phibesModel.Add(new PrisonModel(this, i)); } // Create a player object player = new Player(this); // Some basic setup for the display window this.IsMouseVisible = true; this.Window.AllowUserResizing = true; this.graphics.PreferredBackBufferWidth = 1024; this.graphics.PreferredBackBufferHeight = 728; // Basic camera settings camera = new Camera(graphics); camera.FieldOfView = MathHelper.ToRadians(60); camera.Eye = new Vector3(800, 180, 1053); camera.Center = new Vector3(275, 90, 1053); lineDraw = new PSLineDraw(this, Camera); this.Components.Add(lineDraw); }
/// <summary> /// Constructor /// </summary> public PrisonGame() { // XNA startup graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; skybox = new Skybox(this); // Camera settings camera1 = new Camera(graphics); camera1.Eye = new Vector3(800, 180, 1053); camera1.Center = new Vector3(275, 90, 1053); camera1.FieldOfView = MathHelper.ToRadians(42); camera2 = new Camera(graphics); camera1.Eye = new Vector3(800, 180, 1053); camera1.Center = new Vector3(275, 90, 1053); camera1.FieldOfView = MathHelper.ToRadians(42); ground = new Ground(this); // Create a player object player = new Player(this, camera1); player2.Location = new Vector3(0, 0, 0); player2 = new Player(this, camera2); player2.Location = new Vector3(0,0, 100); //Particle system smokePlume = new SmokeParticleSystem3d(9); // Some basic setup for the display window this.IsMouseVisible = true; //this.Window.AllowUserResizing = true; this.graphics.PreferredBackBufferWidth = 1024; this.graphics.PreferredBackBufferHeight = 768; lineDraw = new PSLineDraw(this, Camera); this.Components.Add(lineDraw); }