Example #1
0
 public Player(string playerName, int playerIndex, int controllerIndex, int characterIndex, Inventory playerInventory, int x, int y, int wealth) : base(x, y, characterIndex)
 {
     PlayerIndex = playerIndex;
     Name        = playerName;
     Controller  = ControllerFactory.GetController(controllerIndex);
     SetDefaultButtonMap(); // Action.cs
     sprite    = sprites["walk"][Directions.South];
     Reticle   = new Reticle(this);
     Inventory = playerInventory;
     gui       = new PlayerGUI(this);
     Wealth    = wealth;
 }
Example #2
0
 protected override void BeginDraw(SpriteBatch spriteBatch)
 {
     Reticle.Draw(spriteBatch, Controller.RightTrigger);
 }