public void Start() { Configuration.MapX = 512; Configuration.MapY = 512; Configuration.cam = MyCam; MyMap = new Map(); win.Resized += Win_Resized; win.Resized += MyCam.Resize; win.KeyPressed += Win_KeyPressed; win.KeyReleased += Win_KeyReleased; win.KeyPressed += MyCam.KeyPress; win.KeyReleased += MyCam.KeyRelease; win.KeyPressed += EvCreateActor; win.KeyPressed += EvDelActor; win.KeyPressed += MyUI.Win_KeyPressed; MyUI.GetCell += MyUI_GetCell; MyUI.CrActor += CreateActor; win.MouseButtonPressed += MyUI.Win_MouseButtonPressed; while (win.IsOpen) { // Console.WriteLine(1 / Mclock.ElapsedTime.AsSeconds()); Configuration.Dtime = Mclock.ElapsedTime.AsSeconds(); Mclock.Restart(); win.DispatchEvents(); win.Clear(); MyCam.EventTick(); EvTick(Configuration.Dtime); // MyMap.Draw(win, MyCam.CamPos.X, MyCam.CamPos.Y); MyMap.Draw2(win, MyCam); MyUI.Draw(win, MyCam); win.Display(); } }