Beispiel #1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            variables = new Variables();
            map       = new Map();
            keyState  = new KeyState();
            editor    = new Editor();
            travel    = new Travel();
            config    = new Config(variables);
            variables = config.LoadConfig(variables);
            if (variables.state == 0)
            {
                travel.Init(map, variables, this.Content);
            }
        }