static void Main(string[] args) { //TODO: Update argument checking to allow for extensible argument parameters if(args.Length > 0 && args[0] == "-server") { KappaServer server = new KappaServer(); server.Start(); } else { using (var game = new KappaGame()) game.Run(); } }
public KappaGame() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 1920; graphics.PreferredBackBufferHeight = 1080; Window.IsBorderless = true; graphics.ApplyChanges(); Content.RootDirectory = "Content"; this.IsMouseVisible = true; instance = this; }
public KappaGame() { graphics = new GraphicsDeviceManager(this); //graphics.PreferredBackBufferWidth = 1920; //graphics.PreferredBackBufferHeight = 1080; //Window.IsBorderless = true; //graphics.ApplyChanges(); Content.RootDirectory = "Content"; this.IsMouseVisible = true; instance = this; ConvertUnits.SetDisplayUnitToSimUnitRatio(32f); }
static void Main(string[] args) { //TODO: Update argument checking to allow for extensible argument parameters if (args.Length > 0 && args[0] == "-server") { Server server = new OnlineServer(); server.Run(); } else { using (var game = new KappaGame()) game.Run(); } }
static void Main() { using (var game = new KappaGame()) game.Run(); }