Porky in Egypt

Porky in Egypt is a 1938 Warner Bros. Looney Tunes cartoon directed by Bob Clampett.

Porky ends up lost in the desert and eventually he, and weirdly enough, the camel, start to suffer from dehydration.

They start seeing various mirages that cause them to go into a dreamlike sequence where Porky and the camel both hallucinate and hear strange voices.

Eventually, they run screaming from the desert and back into the town, whereupon they lock themselves inside a safehouse.

Humpty believes that they are safe, but Porky is then shown to have similarly lost his mind as he begins laughing hysterically, puts on an oversized bicorne hat with the letter N on it (an obvious allusion to Napoleon as well an obvious reference to his invasion in Egypt) as starts dancing in an exaggerated, chaotic fashion as the cartoon irises out.