コード例 #1
0
        static void Main(string[] args)
        {
            if(args.Length > 0 && args[0] == "-taco")
                Apprehensive = true;
            #if !DEBUG
            try
            {
            #endif
            #if WINDOWS
                SavePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Accelerated Delivery\\";
                if(!Directory.Exists(SavePath))
                    Directory.CreateDirectory(SavePath);
            #elif XBOX
                SavePath = "";
            #endif
                Cutter = new BoxCutter(false, false, SavePath);

                using(Game = new BaseGame())
                    Game.Run();
            #if !DEBUG
            }
            catch(Exception ex)
            {
                using(CrashDebugGame game = new CrashDebugGame(ex, Cutter))
                    game.Run();
            }
            #endif
            Cutter.Close();
        }
コード例 #2
0
 public CrashDebugGame(Exception ex, BoxCutter cutter)
 {
     exception = ex;
     Cutter = cutter;
     try
     {
         Cutter.WriteExceptionToLog(ex, true);
     }
     catch { }
     g = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
 }
コード例 #3
0
 public static void FirstStageInitialization(Game g, BoxCutter c)
 {
     Game = g;
     Cutter = c;
     Space = new Space();
     Space.ForceUpdater.Gravity = new Vector3(0, 0, -9.81f);
 }
コード例 #4
0
 public static void Initialize(GraphicsDeviceManager gdm, BoxCutter c, Space s, Effect shader, Texture2D texture)
 {
     Cutter = c;
     Space = s;
     GDM = gdm;
     OnGDMCreation(shader, texture);
     GDM.DeviceReset += onGDMReset;
     HiDef = GDM.GraphicsProfile == GraphicsProfile.HiDef;
     Camera = new MyCamera(MathHelper.PiOver4, GraphicsDevice.Viewport.AspectRatio, 1f, 10000f);
 }