Пример #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.
            spriteBatch = new SpriteBatch(GraphicsDevice);


            objects = new List <GameObject>();


            //Method of adding Objects to the list that goes to the controller
            //objects.Add(new ClassName());

            controller = new Controller(objects);

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

            C = new Cars(GraphicsDevice);

            R = new Roads(GraphicsDevice);

            //TODO: put roads in intersection
            //Roads are put in on numerical order
            // I = new Intersection(R);
        }
Пример #2
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.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            objects = new List<GameObject>();

            //Method of adding Objects to the list that goes to the controller
            //objects.Add(new ClassName());

            controller = new Controller(objects);

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

            C = new Cars(GraphicsDevice);

            R = new Roads(GraphicsDevice);

            //TODO: put roads in intersection
            //Roads are put in on numerical order
               // I = new Intersection(R);
        }