コード例 #1
0
ファイル: Program.cs プロジェクト: masums/platformerGame
        static void Main(string[] args)
        {
            cSfmlApp gameApp;

            try
            {
                gameApp = new cSfmlApp();
                gameApp.Run();
            }
            catch (Exception e)
            {
                StreamWriter sw = new StreamWriter("ErrorLog_" + DateTime.Now.ToString("yyyy-MM-dd") + ".txt");
                sw.WriteLine("Error created at " + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss tt")); //yyyy/MM/dd HH:mm:ss:
                sw.WriteLine(e.Message);
                sw.WriteLine(e.Data.ToString());

                sw.WriteLine(e.StackTrace);
                sw.Close();
            }
        }
コード例 #2
0
 public cGameScene(cSfmlApp controller) : base(controller)
 {
     levelTimer = new cTimer();
 }
コード例 #3
0
 public cGameState(cSfmlApp controller)
 {
     m_AppController = controller;
     m_View          = new View();
 }