Пример #1
0
        public Game1()
        {
            graphics     = new GraphicsDeviceManager(this);
            Window.Title = "Asteroids 3D in XNA 4 Chapter Five";
            graphics.PreferredBackBufferWidth  = 1024;
            graphics.PreferredBackBufferHeight = 600;
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";

            Camera     = new Engine.Camera(this, new Vector3(0, 0, 275), Vector3.Forward, Vector3.Zero, false, 200, 325);
            Background = new Entities.Background(this);
            screenHUD  = new Entities.HUD(this);
            Player     = new Entities.Player(this);
            UFOs       = new Entities.UFOController(this);
            Rocks      = new Entities.RockController(this);
        }
Пример #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Window.Title = "Asteroids 3D in XNA 4 Chapter Five";
            graphics.PreferredBackBufferWidth = 1024;
            graphics.PreferredBackBufferHeight = 600;
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";

            Camera = new Engine.Camera(this, new Vector3(0, 0, 275), Vector3.Forward, Vector3.Zero, false, 200, 325);
            Background = new Entities.Background(this);
            screenHUD = new Entities.HUD(this);
            Player = new Entities.Player(this);
            UFOs = new Entities.UFOController(this);
            Rocks = new Entities.RockController(this);
        }