/// <summary> /// Initalizes the objects and managers in the game. /// </summary> protected override void Initialize() { base.Initialize(); M_ContentManager.Init(Content); M_GlobalManager.Init(); M_TextManager.Init(); M_InputManager.Init(); M_PartyManager.Init(); M_MenuManager.Init(); I_Inventory.Init(); M_MapManager.Init(); }
/// <summary> /// Creates a new peach. /// </summary> public Peach(Vector2 position = default(Vector2)) { this.ItemType = Inventory.I_Inventory.ItemTypes.HPHeal; this.Name = "Peach"; this.Icon = M_ContentManager.GetTexture(icon_key); this.ItemValue = 5; this.ItemPower = 10; this.PickupDistance = 10; if (position == default(Vector2)) { this.Position = Vector2.Zero; } else { this.Position = position; } this.Taken = false; GenerateKey(); }