What is this anime that has a strange flying sun totem?
Night Warriors: Darkstalkers' Revenge (1997–1998)

The world is a dark, brooding place populated by humans, but ruled in reality by powerful beings known as the Darkstalkers, and there is constant conflict between them as they try to determine who is the most powerful of them all. Zombies, vampires, werewolves - all of them compete in contests of strength and sheer will to attain their own personal goals.
All of this becomes moot when a race of Aztec robots called the Huitzil decide that humanity isn't worth saving, and start waging war on the world, while in the sky, a solar god from outer space plots the conquest of Earth. And the Darkstalkers must become unwilling allies in order to save the world.

The sun totem spits out Pyron, the boss of the series, who challenges every monster character and wins all battles until his defeat in the end. The background of the anime is pretty dark most of the time, as you can see in this screenshot of the sun totem: