Ejemplo n.º 1
0
 public HowToPlayComponent(Game game, InputManager input)
     : base(game)
 {
     _game = game;
     _input = input;
     _coverage = new Coverage(Color.Black);
     LoadContent(_game.Content);
 }
 public MultiplayerHostComponent(MainGame game, InputManager input)
     : base(game)
 {
     _game = game;
     _input = input;
     if (input == null)
         throw new ArgumentNullException(nameof(input));
     LoadContent(_game.Content);
 }
 public SingleplayerComponent(Game game, InputManager input, Vector2 clientSize)
     : base(game)
 {
     _input = input;
     _clientSize = clientSize;
     LoadIdentity();
     if (!_playerDirectory.Exists) _playerDirectory.Create();
     GameSettings.Instance.Load(_gameSettingsFile, _playerDirectory);
     LoadContent(game.Content);
 }
Ejemplo n.º 4
0
 public override void Initialize()
 {
     _input = new InputManager();
     DrawPriority = 3;
     base.Initialize();
 }