Exemple #1
0
 public void AddItem(EquipableItem item)
 {
     if (!full)
     {
         items[GetNextEmptyCell().X, GetNextEmptyCell().Y] = item;
     }
 }
Exemple #2
0
        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;
        }
Exemple #3
0
 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");
 }
Exemple #4
0
 public ShopItem(EquipableItem item2, short cost2)
 {
     item = item2;
     cost = cost2;
 }