예제 #1
0
파일: Program.cs 프로젝트: Gilnaa/NotMario
 /// <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();
        }