public ItemShopSelector(LegendOfZelda game) { string[] items = { "sword", "heart", "bluepotion" }; this.game = game; this.selectorSprite = MiscSpriteFactory.Instance.CreateItemShopSelector(); hudrupees = new HUDCounter(this.game, "rupees"); currentDelay = 0; totalDelay = 5; selectorSprite.X = x; selectorSprite.Y = normalY; }
public HeadsUpDisplay(LegendOfZelda game) { this.game = game; hudhearts = new HUDHearts(this.game); hudbombs = new HUDCounter(this.game, "bombs"); hudkeys = new HUDCounter(this.game, "keys"); hudrupees = new HUDCounter(this.game, "rupees"); hudmap = new HUDMap(this.game); hudcurrentitem = new HUDCurrentItem(this.game); if (game.state.ToString().Equals("LegendOfZelda.InventoryState")) { offset = 360; } else { offset = 0; } }