示例#1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            ContentLibrary.Initialize(Services);

            graphics.PreferredBackBufferWidth  = 1500;
            graphics.PreferredBackBufferHeight = 800;

            cave   = new Grid(new Vector2(30, 30));
            player = new Player(new Vector2(400.0f, 400.0f));
            camera = new Camera(graphics);

            camera.SetResolution(new Vector2(1500, 800));

            IsMouseVisible = true;
        }
示例#2
0
 /// <summary>
 /// UnloadContent will be called once per game and is the place to unload
 /// game-specific content.
 /// </summary>
 protected override void UnloadContent()
 {
     // TODO: Unload any non ContentManager content here
     ContentLibrary.Unload();
 }