/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (GameLoop game = new GameLoop()) { game.Run(); } }
public GameLoop() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; //displayFPS = new DisplayFPS(this); //Components.Add(displayFPS); gameInstance = this; GameSettings.Initialise(); GameSettings.ApplyChanges(ref graphics); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (GameLoop game = new GameLoop()) { for (int i = 0; i < args.LongLength; i++) { if (args[i].Equals("--novideo")) { game.parameterNoVideo = true; } if (args[i].Equals("--loadlevel")) { game.parameterLevelToLoad = args[i + 1]; } } game.Run(); } }