There is a city or kingdom inhabited by dinosaurs.
MC is a young man (perhaps a prince) who defends this kingdom from the armies of evil. There was a battle scene where he flew on a pterodactyl during a thunderstorm and killed monsters, he probably had his allies with him, but I can’t remember anything about them.
The armies of evil consisted of lizardmen, ape-men, skeletons, and possibly some type of goblin.
The main antagonists and leaders of the evil armies were a Vampire-like sorceress in black clothes and an evil lord in red armor, with green skin and (possibly) a long beard.
There was another character - an anthropomorphic dog knight who rode a giant snail and got into ridiculous situations.
I saw this around 2010-2012, According to the animation style, this is maybe something from the 80s or 90s.