Example #1
0
        public static void Main()
        {
            Game game = new Game("Tower Defence", 800, 600);

            //Run the game loop
            while (game.IsRunning)
            {
                game.Update();
                game.Render();
            }
        }
Example #2
0
 private static void Timer_Tick(object sender, EventArgs e)
 {
     Game.Draw();
     Game.Update();
 }
Example #3
0
 private void timer_Tick(object sender, EventArgs e)
 {
     game.Update(watch.Elapsed);
     watch.Restart();
     renderControl.Invalidate();
 }