Пример #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            leap = new LeapComponet(this);
            this.Components.Add(leap);
        }
Пример #2
0
        public Game1()
        {
            ScreenManager.Instance.Dimensions = new Vector2(1024, 720);
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = (int)ScreenManager.Instance.Dimensions.X;
            graphics.PreferredBackBufferHeight = (int)ScreenManager.Instance.Dimensions.Y;
            //ScreenManager.Instance.DimensionsX = 1024;

            //ScreenManager.Instance.DimensionsY = 720;

            Content.RootDirectory = "Content";
            leapcollision         = new Rectangle(0, 0, 128, 128);
            // leap
            leap = new LeapComponet(this);
            this.Components.Add(leap);
        }
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.PreferredBackBufferWidth  = 800;
            graphics.PreferredBackBufferHeight = 600;

            ScreenManager.Instance.Initialize();

            ScreenManager.Instance.Dimensions  = new Vector2(800, 600);
            graphics.PreferredBackBufferWidth  = (int)ScreenManager.Instance.Dimensions.X;
            graphics.PreferredBackBufferHeight = (int)ScreenManager.Instance.Dimensions.Y;



            leapcollision = new Rectangle(0, 0, 128, 128);
            leap          = new LeapComponet(this);
            this.Components.Add(leap);
        }