The description — climbing between levels with a vampire in pursuit — points most plausibly toward Castlevania, which has appeared in several PC ports and clones over the years.
If that is not it, a few extra details would narrow it down quickly: whether the graphics were pixel art or hand-drawn, roughly when you played it, and whether the vampire chased you in real time or on a turn. Games with this premise were common in the shareware era, and there are a number of lesser-known titles that fit.