Esempio n. 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);

            //TEST objects for Thing class
            Things = new ThingHandler(spriteBatch); //create a ThingHandler - a glorified Thing List
            Dude = new Sentient("Arthur", Content);
            Things.Add(Dude);
            Dude.Move(new Vector2(100, 0));

            Things[Things.Add(new Thing("testplat",Content))].Move(new Vector2(100, 300));

            Things[Things.Add(new Thing("testplat", Content))].Move(new Vector2(200, 250));
        }