Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WindowWidth   = 100;
            Console.WindowHeight  = 36;
            Console.CursorVisible = false;

            Game game = new Game();

            game.Renderer.Viewport = new Viewport(35, 4, 30, 28);

            DrawBorder(game);

            game.Initialize();
            int ticks = Environment.TickCount;
            int delta = 0;

            while (true)
            {
                ticks = Environment.TickCount;

                game.Update(delta);
                game.Draw(delta);

                delta = Environment.TickCount - ticks;
            }
        }