Example #1
0
 internal override void MoveObject(Vector2 dir)
 {
     ConsoleHelpers.WriteString($"Player moved in direction: {dir}");
     if (CheckAttackable(dir, out Enemy enemy))
     {
         Attack(enemy);
     }
     base.MoveObject(dir);
     Screen.RevealTiles(Position, REVEAL_RADIUS);
     DisplayObject();
 }
Example #2
0
 internal override void TakeDamage(int dmg)
 {
     base.TakeDamage(dmg);
     ConsoleHelpers.WriteString($"Enemy Took {dmg} damage");
 }