This is the main type for your game.
Inheritance: Microsoft.Xna.Framework.Game
Example #1
0
 static void Main(string[] args)
 {
     //TODO: Update argument checking to allow for extensible argument parameters
     if(args.Length > 0 && args[0] == "-server") {
         KappaServer server = new KappaServer();
         server.Start();
     } else {
         using (var game = new KappaGame())
             game.Run();
     }
 }
Example #2
0
        public KappaGame() {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = 1920;
            graphics.PreferredBackBufferHeight = 1080;
            Window.IsBorderless = true;
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";
            this.IsMouseVisible = true;
            instance = this;
        }
Example #3
0
        public KappaGame() {
            graphics = new GraphicsDeviceManager(this);
            //graphics.PreferredBackBufferWidth = 1920;
            //graphics.PreferredBackBufferHeight = 1080;
            //Window.IsBorderless = true;
            //graphics.ApplyChanges();

            Content.RootDirectory = "Content";
            this.IsMouseVisible = true;
            instance = this;
            ConvertUnits.SetDisplayUnitToSimUnitRatio(32f);
        }
Example #4
0
        public KappaGame()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = 1920;
            graphics.PreferredBackBufferHeight = 1080;
            Window.IsBorderless = true;
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";
            this.IsMouseVisible   = true;
            instance = this;
        }
Example #5
0
        public KappaGame()
        {
            graphics = new GraphicsDeviceManager(this);
            //graphics.PreferredBackBufferWidth = 1920;
            //graphics.PreferredBackBufferHeight = 1080;
            //Window.IsBorderless = true;
            //graphics.ApplyChanges();

            Content.RootDirectory = "Content";
            this.IsMouseVisible   = true;
            instance = this;
            ConvertUnits.SetDisplayUnitToSimUnitRatio(32f);
        }
Example #6
0
 static void Main(string[] args)
 {
     //TODO: Update argument checking to allow for extensible argument parameters
     if (args.Length > 0 && args[0] == "-server")
     {
         Server server = new OnlineServer();
         server.Run();
     }
     else
     {
         using (var game = new KappaGame())
             game.Run();
     }
 }
Example #7
0
 static void Main()
 {
     using (var game = new KappaGame())
         game.Run();
 }