When you find yourself trying to remember a show (or any works) that's on the tip of your tongue but just out of reach, come here - the collective brain of the TVTropes community can probably help. Post all the details you can remember (examples help). If you're looking for a trope, head over to Trope Finder. Have general questions about tropes? Visit Ask The Tropers!
You are thinking of Donald In Maui Mallard also know as Maui Mallard in Cold Shadow, The first two levels have the exact same design as you described.
Thank you so much! So it was Donald, but they removed the name for some reason.
Apparently it was because they did not want Donald's name attached to something with ninjas pirates and zombies, Also your welcome.
Edited by Foxsparrow13
I remember a sidescroller game where you play as a white duck, but I'm pretty sure it's not Donald. The first level had you running through a mansion with a gun, and in level two you're running through an ancient ruin with a large stick used for both fighting and for climbing narrow gaps. In that second level, there were also giant duck golems that you could control after defeating them.