Example #1
0
        private void OnGameLoopStarting(ICanvasAnimatedControl sender, object args)
        {
            _game = new AsteroidsGame(this, _gameController);

            GameManager.CreateTheGame(_game);

            _game.Run();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            _game = new AsteroidsGame(this, _gameController);

            GameManager.CreateTheGame(_game);

            _game.Run();
        }
Example #3
0
        /// <summary>
        /// Entry point of the program.
        /// </summary>
        /// <param name="args">Console arguments.</param>
        public static void Main(string[] args)
        {
            using var game = new AsteroidsGame();

            game.Run();
        }
Example #4
0
 static void Main()
 {
     using (var game = new AsteroidsGame())
         game.Run();
 }