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(); }
/// <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(); }
static void Main() { using (var game = new AsteroidsGame()) game.Run(); }