Example #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (GAME = new GameClass())
     {
         GAME.Run();
     }
 }
Example #2
0
        public GameDebug()
        {
            game = Program.GAME;
            font = game.Content.Load<SpriteFont>("CourierNew");
            blank = game.Content.Load<Texture2D>("teststage/blank_pixel");
            pointer = game.Content.Load<Texture2D>("permanent/cursor");

            // initialize the debug system with the game and the name of the font
            // we want to use for the debugging
            debugSystem = DebugSystem.Initialize(game, "CourierNew");

            // register a new command that lets us move a sprite on the screen
            debugSystem.DebugCommandUI.RegisterCommand(
                "pos",              // Name of command
                "set position",     // Description of command
                PosCommand          // Command execution delegate
                );
        }