Example #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="x">where to start x</param>
 /// <param name="y">where to start x</param>
 /// <param name="w">width of camera</param>
 /// <param name="h">height of camera</param>
 public cCamera(int x, int y, int w, int h)
 {
     _instance = this;
     _pos = new Vector2(x,y);
     _widthHeight = new Vector2(w,h);
     _focusObject = null;
     _bounds = Vector4.Zero;
     _updateToFocus = false;
 }
Example #2
0
        protected override void LoadGraphicsContent(bool loadAllContent)
        {
            GraphicsDevice gd = _graphics.GraphicsDevice;
            cFontManager.Instance.LoadGraphicsContent(gd);

            if (loadAllContent)
            {
                _camera = new cCamera(0, 0, 800, 600);

                _engine = new cEngine(_graphics, _contentManager);
                _menu = new cMenu(_graphics, _contentManager, Window);
                _menu.startMenus();
                //_video = new cVideo(Window);
            }

            base.LoadGraphicsContent(loadAllContent);
        }