private Sky intitializeSky() { TextureCube tc = Content.Load<TextureCube>("clouds"); Model pmodel = Content.Load<Model>("skysphere_mesh"); SkyUnit skyUnit = new SkyUnit(this, Vector3.Zero, Vector3.Zero, new Vector3(10000)); Sky sky = new Sky(this, pmodel, skyUnit, tc); return sky; }
private void initializeGame1() { switch (StartScreen.Difficulty) { case Constants.Difficulties.Novice: difficultyConstants = new NoviceConstants(); break ; case Constants.Difficulties.Advanced: difficultyConstants = new AdvancedConstants(); break; case Constants.Difficulties.Xtreme: difficultyConstants = new XtremeConstants(); break; } //camera = new FreeCamera(this, new Vector3(0, 0, 0), 0, 0, 0 , 0); //camera = new FreeCamera(new Vector3(400, 600, 400), MathHelper.ToRadians(45), MathHelper.ToRadians(-30), GraphicsDevice); camera = new ChaseCamera(this, Constants.CAMERA_POSITION, Constants.CAMERA_TARGET, Vector3.Zero); terrain = new Terrain(this, camera, Content.Load<Texture2D>("terrain"), Constants.TERRAIN_CELL_SIZE, Constants.TERRAIN_HEIGHT, Content.Load<Texture2D>("grass"), Constants.TERRAIN_TEXTURE_TILING, new Vector3(1, -1, 0)); player = initializePlayer(); sky = intitializeSky(); weapon = new Weapon(this, player, Content.Load<Model>("model//WeaponMachineGun"), new Unit(this, Vector3.Zero, Vector3.Zero, Vector3.One)); bullets = new BulletsManager(this); scoreBoard = new ScoreBoard(this); monsters = new MonstersManager(this); firstAidManger = new FirstAidManager(this); stateManager = new StateManager(this); audioManager = new AudioManager(this); //CDrawableComponent test = new CDrawableComponent(this, // new Unit(this, new Vector3(0, 80, 0), Vector3.Zero, Vector3.One * .5f), // new CModel(this, Content.Load<Model>(@"model/First Aid Kit2"))); }