Exemplo n.º 1
0
 public static void SetGame(Game game)
 {
     Game = game;
     Game.Window = Window;
     Game.Initialize();
     Paused = false;
 }
Exemplo n.º 2
0
        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;
        }