//Performed once when the game begins public void Start() { player = new Player("Hero", 150); player.Gold = 50; Attack_Item botfly = new Attack_Item(20, 15, "botfly"); Attack_Item thecactus = new Attack_Item(15, 10, "thecactus"); Defense_Item crabshell = new Defense_Item(20, 20, "crabshell"); Defense_Item electricpulse = new Defense_Item(25, 20, "electricpulse"); Attack_Item bottle = new Attack_Item(35, 25, "bottle"); shop = new Shop(); shop.AddItem(botfly, 0); shop.AddItem(thecactus, 1); shop.AddItem(crabshell, 2); shop.AddItem(electricpulse, 3); shop.AddItem(bottle, 4); }
public Player(string playerName, int health) { _playerName = playerName; _health = health; _inventory[0] = new Attack_Item(20, 10, "sword"); }
public Player() { _playerName = "Hero"; _health = 150; _inventory[0] = new Attack_Item(20, 10, "sword"); }