Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Пример #2
0
 public SphereDrawer(Game1 game)
 {
     Game = game;
 }
Пример #3
0
 public Game1()
 {
     IsFixedTimeStep = false;
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferHeight = scrheight;
     graphics.PreferredBackBufferWidth = scrwidth;
     graphics.SynchronizeWithVerticalRetrace = false;
     graphics.PreferredBackBufferFormat = SurfaceFormat.Color;
     graphics.PreferredDepthStencilFormat = DepthFormat.Depth24Stencil8;
     graphics.IsFullScreen = false;
     Content.RootDirectory = "Content";
     _game1 = this;
     rand = new Random();
     SphereDrawer = new SphereDrawer(this);
     kbBuffer = new KeyboardBuffer(this.Window.Handle);
 }