public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; instance = this; if (Constants.DEBUG) { graphics.PreferredBackBufferWidth = 1366; graphics.PreferredBackBufferHeight = 768; graphics.IsFullScreen = false; } else { graphics.PreferredBackBufferWidth = 1920; graphics.PreferredBackBufferHeight = 1080; graphics.IsFullScreen = true; } new OnceInput(this); new Rand(); new SoundManager(this); if (Constants.DEBUG) { this.Components.Add(new RenderingEngine(this, 1366, 768)); } else { this.Components.Add(new RenderingEngine(this, 1920, 1080)); } kp = new KnowledgeParser(); kp.ParsePlaytestDirectory("../../../parser/dw_kb"); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { // KnowledgeParser kp = new KnowledgeParser(); // kp.ParsePlaytestDirectory(@"C:\Users\Tag\Documents\Projects\cpgd_diskwars\DiskWars\DiskWars\DiskWars\parser\dw_kb"); using (Game1 game = new Game1()) { game.Run(); } }