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