Exemplo n.º 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()
        {
            bkgColor = Color.White;
            // TODO: Add your initialization logic here
            base.Initialize();

            graphicsDevice = GraphicsDevice;

            roomCont = new RoomCont();
            objCont = new ObjCont();

            roomCont.Init();
            objCont.Init();

            prevMouseState = Mouse.GetState();
            currentMouseState = Mouse.GetState();
        }
Exemplo n.º 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()
        {
            bkgColor = Color.White;
            // TODO: Add your initialization logic here
            base.Initialize();

            roomCont = new RoomCont();
            objCont = new ObjCont();

            roomCont.Init();
            objCont.Init();
        }
Exemplo n.º 3
0
        /*
         void graphics_PreparingDeviceSettings(object sender, PreparingDeviceSettingsEventArgs e)
        {
            e.GraphicsDeviceInformation.PresentationParameters.RenderTargetUsage = RenderTargetUsage.PreserveContents;
        }*/
        /// <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()
        {
            bkgColor = new Color(153, 125, 182);
            IsMouseVisible = true;
            // TODO: Add your initialization logic here
            base.Initialize();

            graphicsDevice = GraphicsDevice;

            roomCont = new RoomCont();
            objCont = new ObjCont();

            roomCont.Init();
            objCont.Init();

            prevMouseState = Mouse.GetState();
            currentMouseState = Mouse.GetState();
        }