Ejemplo n.º 1
0
        public static void Main()
        {
            XmlDocument doc = new XmlDocument();

            doc.Load("Test.xml");
            EntityFactory.Parse(doc.LastChild);
            using (XNAGame game = new XNAGame())
            {
                game.Run();
            }
        }
Ejemplo n.º 2
0
        public XNAGame()
        {
            if (instance != null)
            {
                return;
            }
            instance = this;
            if (instance == null)
            {
                return;
            }

            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
        }