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 CardGUIEnemy(Entity entity, int x, int y) : base(x, y) { this.enemy = (Enemy)entity; this.spriteTxtAttack = new SpriteText(x + 24, y + 3, this.enemy.AttackPower.ToString(), Color.Black); this.hearthSprite = new BlackHearthSprite(x + 3, y + 3); this.spriteTxtHP = new SpriteText(x + 10, 3, this.enemy.CurrentHP.ToString(), Color.Black); this.attackIcon = new AttackIconSprite(x + 18, y + 3); }
public CardGUIWeapon(Entity entity, int x, int y) : base(x, y) { this.weapon = (Weapon)entity; spriteFontAttackPower = new SpriteText(x + 24, y + 1, this.weapon.AttackPower.ToString(), Color.Black); this.listBars = new List <SmallBarSprite>(); for (int i = 0; i < weapon.Durability; i++) { listBars.Add(new SmallBarSprite(x + 3, (i * 3) + 5)); } this.attackIcon = new AttackIconSprite(x + 18, y + 3); }