public override void initialize() { this.btnMainMenu = new Button(64, 20, (Settings.WIDTH_SOURCE / 2) - 32, 270, "Back"); this.panel = new Panel(Settings.WIDTH_SOURCE - 40, 230, 20, 20); this.exampleCardEmpty = new Card(null, this); this.exampleCardEmpty.setPosition(30, 25); this.exampleCardEnemy = new Card(new Enemy(EnemyType.SMALL_ZOMBIE), this, true); this.exampleCardEnemy.setPosition(30, 60); this.exampleCardObject = new Card(new Weapon(WeaponType.SWORD), this, true); this.exampleCardObject.setPosition(30, 95); this.sprTxtCard = new SpriteText(70, 30, "Turn cards to progress, turning card take a turn."); this.sprTxtEnemy = new SpriteText(70, 60, "Enemy will attack you every turn. \nAttacking them take a turn."); this.sprTxtObject = new SpriteText(70, 95, "You can pick weapon and add them to you inventory. \nSelect them to attack enemy with it, but they \nhave a limited durability.\nPicking item don't take a turn."); this.sprTxtAttack = new SpriteText(70, 135, "Attack power of the enemy/weapon"); this.attackIcon = new AttackIconSprite(45, 138); this.sprTxtArmor = new SpriteText(70, 150, "Number of extre HP the armor give you"); this.shieldSprite = new BlackShieldSprite(45, 153); this.sprTxtHeal = new SpriteText(70, 165, "Number of HP the item restore you"); this.blackCrossSprite = new BlackCrossSprite(45, 168); this.sprTxtQuick = new SpriteText(70, 180, "Attacking with this weapon don't take a turn"); this.featherSprite = new BlackFeatherSprite(45, 183); this.sprTxtLifeSteal = new SpriteText(70, 195, "The enemy/weapon steal HP when attacking"); this.fangSprite = new BlackFangSprite(45, 198); this.exitCard = new Card(new Ladder(), this, true); this.exitCard.setPosition(30, 205); this.sprTxtLadder = new SpriteText(70, 215, "This card take you to the next level."); }
public CardGUIArmor(Entity entity, int x, int y) : base(x, y) { this.armor = (Armor)entity; this.spriteTxtShield = new SpriteText(this.x + 16, this.y + 24, (armor.LevelArmor * 5).ToString(), Color.Black); this.shieldSprite = new BlackShieldSprite(this.x + 10, this.y + 24); }