public void AddItem(EquipableItem item) { if (!full) { items[GetNextEmptyCell().X, GetNextEmptyCell().Y] = item; } }
public ItemLoot(Vector2 pos2, EquipableItem item2) { pos = pos2; equipableItem = item2; spriteCoords = equipableItem.spriteCoords; SetSize(equipableItem.OrginalSize.X, equipableItem.OrginalSize.Y); orgin = new Vector2(size.X / 2, size.Y / 2); scale = 1; color = Color.White; rotation = -45; }
public Player() { pos = new Vector2(0, 0); SetSpriteCoords(1, 1); SetSize(32); color = Color.White; scale = 1f; friction = 0.7f; OrginalFriction = friction; speed = 2; maxAnimationCount = 4; maxFrame = 4; inputActive = true; maxHealth = 4; health = maxHealth; maxHitCount = 32; amountOfArrows = 50; equipedItems[0] = new EquipableItem("test.txt"); equipedItems[1] = new EquipableItem("test.txt"); }
public ShopItem(EquipableItem item2, short cost2) { item = item2; cost = cost2; }