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(); } }
public cGameScene(cSfmlApp controller) : base(controller) { levelTimer = new cTimer(); }
public cGameState(cSfmlApp controller) { m_AppController = controller; m_View = new View(); }