Пример #1
0
        public CatapultGame()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = screenWidth;
            graphics.PreferredBackBufferHeight = screenHeight;
            graphics.ApplyChanges();

            IsFixedTimeStep = true;

            playerCatapult        = new Catapult(this);
            Content.RootDirectory = "Content";
        }
Пример #2
0
        public CatapultGame()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = screenWidth;
            graphics.PreferredBackBufferHeight = screenHeight;
            Content.RootDirectory = "Content";

            Components.Add(new GamerServicesComponent(this));

            IsFixedTimeStep = true;

            playerCatapult = new Catapult(this);
        }