Spaceballs- Fantasy comedy (Wikipedia)
Fantasy comedy or comic fantasy is a subgenre of fantasy that is primarily humorous in intent and tone. Typically set in imaginary worlds, fantasy comedy often involves puns on, and parodies of, other works of fantasy.