Example #1
0
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
        {
     game.Run();
        }
 }
Example #2
0
        public Game1()
        {
            _instance = this;
               p.gdm = new GraphicsDeviceManager(this);
               p.gdm.PreferredBackBufferWidth = 640;
               p.gdm.PreferredBackBufferHeight = 480;

               Content.RootDirectory = "Content";
        }
Example #3
0
        public void InitEditor(string platname)
        {
            game = new Game1();
               game.InitEditor(GraphicsDevice, Services, platname);
               editorname = platname;

               timer = Stopwatch.StartNew();
               Application.Idle += delegate { Invalidate(); };
        }