public static void Main() { Game game = new Game("Tower Defence", 800, 600); //Run the game loop while (game.IsRunning) { game.Update(); game.Render(); } }
private static void Timer_Tick(object sender, EventArgs e) { Game.Draw(); Game.Update(); }
private void timer_Tick(object sender, EventArgs e) { game.Update(watch.Elapsed); watch.Restart(); renderControl.Invalidate(); }