コード例 #1
0
        static void Main(string[] args)
        {
            Game _Game = new Game();

            //start our game loop - we keep running this function until the player quits.
            while ( _Game.isRunning )
            {
                _Game.Update();
            }
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Game _Game = new Game();

            //start our game loop - we keep running this function until the player quits.
            while (_Game.isRunning)
            {
                _Game.Update();
            }
        }
コード例 #3
0
        public static void Main(string[] args)
        {
            Game _Game = new Game();

            _Game.initialize();

            while (_Game.isRunning)
            {
                _Game.Update();
            }
        }
コード例 #4
0
        static void Main(string[] args)
        {
            // look at args to determine run mode...
            bool isDebug = false;

            if (args != null && args.Length > 0)
            {
                string p1 = args[0];
                if (p1.ToUpper() == "DEBUG")
                {
                    isDebug = true;
                }
            }

            Game _Game = new Game(isDebug);


            //start our game loop - we keep running this function until the player quits.
            while (_Game.isRunning)
            {
                _Game.Update();
            }
        }