Exemple #1
0
		/// <summary>
		/// Allows the game to perform any initialization it needs to before starting to run.
		/// This is where it can query for any required services and load any non-graphic
		/// related content.  Calling base.Initialize will enumerate through any components
		/// and initialize them as well.
		/// </summary>
		protected override void Initialize() {
			//ContentLoader.Initialize();

			console = new ConsoleInfo();

			grid = new Grid(new Vector2(5000f, 5000f), 50, Color.Navy, 1f, Vector3.Zero, new Vector3(0f, 0f, 0f));

			skybox = new Skybox();

			camera = new MouseCam();
			camera.SetPosition(new Vector3(1500f, 400f, 1500f));
			camera.rotation = new Vector3(0f, MathHelper.ToRadians(180f), 0f);

			base.Initialize();
		}
Exemple #2
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            //ContentLoader.Initialize();

            console = new ConsoleInfo();

            grid = new Grid(new Vector2(5000f, 5000f), 50, Color.Navy, 1f, Vector3.Zero, new Vector3(0f, 0f, 0f));

            skybox = new Skybox();

            camera = new MouseCam();
            camera.SetPosition(new Vector3(1500f, 400f, 1500f));
            camera.rotation = new Vector3(0f, MathHelper.ToRadians(180f), 0f);

            base.Initialize();
        }