Beispiel #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            ShapeGenerator.Initialize(GraphicsDevice);
            spriteBatch = new SpriteBatch(GraphicsDevice);
            spriteSheet = Content.Load <Texture2D>("tileset1");


            _editor = new Editor();
            _editor.Load(Content);
            EditorText.Load(Content);
            KeyboardInput.AddKey(Keys.P);
            KeyboardInput.AddKey(Keys.Q);
            KeyboardInput.AddKey(Keys.E);
            //_testMap = new Map(500, 500, spriteSheet);
            //_testMap.Load(Content);

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