I haven’t the slightest idea what era this cartoon was made. It begins with a man, probably somewhere in twenties going into someplace like a hobby shop. Then he falls asleep or something like that, and he wakes up as a dragon in a fantasy world.
I only have a vague memory of a few scattered scenes, like a halfling type guy playing a magic flute to make all the dragons fall asleep. Also the dragons eat limestone mined by gnomes for some odd reason. There’s also a scene where the 2 main dragons get drunk in a tavern with barrelfulls of beer and eat their livestock. There was also a big wyrm that lived in slime and the final battle consisted of the protagonist yelling out real world things (like geometry, mathematics) to kill the evil wizard, who was trying to defend by saying fantasy things (fairies, elves, etc).
Does anyone have an idea what this animated movie is called?