public InventIcons(LegendOfZelda game) { itemDiff = 40; smallDiff = 5; firstRowY = 75; secondRowY = 105; bowDiff = 15; mapCompassX = 100; mapY = 220; compassY = 300; currentSpriteX = 145; initX = 275; this.game = game; this.inventory = game.Link.Inventory; boomerang = ItemSpriteFactory.GetBoomerang(); boomerang.X = initX; boomerang.Y = firstRowY; bomb = ItemSpriteFactory.GetBomb(); bomb.X = boomerang.X + itemDiff; bomb.Y = firstRowY - smallDiff; arrow = ItemSpriteFactory.GetArrow(); arrow.X = bomb.X + itemDiff; arrow.Y = bomb.Y; bow = ItemSpriteFactory.GetBow(); bow.X = arrow.X + bowDiff; bow.Y = arrow.Y; blueCandle = ItemSpriteFactory.GetBlueCandle(); blueCandle.Scale = 2; blueCandle.X = arrow.X + itemDiff + smallDiff; blueCandle.Y = arrow.Y; bluePotion = ItemSpriteFactory.GetBluePotion(); bluePotion.X = bow.X; bluePotion.Y = secondRowY; redPotion = ItemSpriteFactory.GetRedPotion(); redPotion.X = bluePotion.X; redPotion.Y = bluePotion.Y; map = ItemSpriteFactory.GetMap(); map.X = mapCompassX; map.Y = mapY; currentSprite = FontSpriteFactory.GetWhiteBox(); compass = ItemSpriteFactory.GetCompass(); compass.X = mapCompassX; compass.Y = compassY; selector = ItemSpriteFactory.GetItemSelector(); currentDelay = 0; totalDelay = smallDiff; }
public HUDCurrentItem(LegendOfZelda game) { this.game = game; currentSprite = FontSpriteFactory.GetWhiteBox(); }