コード例 #1
0
 public JungleTribesGame()
 {
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth  = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
     graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
     Resolution.Init(ref graphics);
     Content.RootDirectory = "Content";
     Resolution.SetVirtualResolution(widthScreen, heightScreen);
     Resolution.SetResolution(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight, false);
     this.IsMouseVisible = true;
     if (Instance == null)
     {
         Instance = this;
     }
 }
コード例 #2
0
 static void Main()
 {
     using (var game = new JungleTribesGame())
         game.Run();
 }