public static void SetGame(Game game) { Game = game; Game.Window = Window; Game.Initialize(); Paused = false; }
public static void Initialize(uint width, uint height, string title) { Window = new RenderWindow(new VideoMode(width, height), title); Window.Closed += new EventHandler(OnClose); DeltaTimer = Stopwatch.StartNew(); if (Game == null) Game = Game.None; }