Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (MainGame game = new MainGame())
     {
         game.Run();
     }
 }
Esempio n. 2
0
 public abstract void Update(MainGame game);
Esempio n. 3
0
        public override void Update(MainGame game)
        {
            if (IsPaused || IsStopped) return;
            if ( !game.IsActive )
                return;
            HandleKeyboardInput();
            HandleMouseInput();
            _player.Update();
            _map.Update(_player.Position);

            UpdateProjectiles();

            UpdateEnemies();
        }