コード例 #1
0
        protected override void LoadContent()
        {
            font = Content.Load <SpriteFont>("Font/winFont");
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            map         = new Map();
            map.LoadMap();

            player       = new Player(GraphicsDevice, new Vector2(32, 32), 32, 32, Color.Red);
            playerCamera = new Camera(GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);


            // TODO: use this.Content to load your game content here
        }