Ejemplo n.º 1
0
 public ScreenManager(SoldiersGame game, GraphicsDeviceManager graphicsdevice, GameServiceContainer service, ContentManager m_content)
     : base(game)
 {
     graphics = graphicsdevice;
     services = service;
     content  = m_content;
     TouchPanel.EnabledGestures = GestureType.None;
     // we must set EnabledGestures before we can query for them, but
     // we don't assume the game wants to read them.
 }
Ejemplo n.º 2
0
 static void Main()
 {
     if (CheckGameFiles())
     {
         using (var game = new SoldiersGame())
             game.Run();
     }
     else
     {
         MessageBox.Show("Game files are requiered to run this program");
     }
 }