示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (MainGame game = new MainGame())
     {
         game.Run();
     }
 }
示例#2
0
文件: State.cs 项目: Gilnaa/NotMario
 public abstract void Update(MainGame game);
示例#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();
        }