コード例 #1
0
ファイル: Player.cs プロジェクト: KAkerstrom/MonoCoopGame
 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;
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: KAkerstrom/MonoCoopGame
 protected override void BeginDraw(SpriteBatch spriteBatch)
 {
     Reticle.Draw(spriteBatch, Controller.RightTrigger);
 }