Super Mario coming to Apple's App Store!

See the Apple Watch Series 2 in :90
See the Apple Watch Series 2 in :90

A funny thing happened at Apple's big event on Wednesday. It started off more like an ad for Nintendo than it did for Apple.

The maker of iEverything announced early on in its latest iPhone presentation that a new Super Mario game (about the iconic plumber, not ECB chief Mario Draghi) would be available in Apple's iOS store later this year.

Tim Cook introduced Super Mario -- and Nintendo game designer Shigeru Miyamoto -- to raucous applause. Miyamoto showed off the "Super Mario Run" game, which had a retro 80s feel, to an adoring crowd.

Wall Street cheered the news as well. Nintendo (NTDOY)'s U.S. listed stock closed up 29% . (That's a lot of 1 UP mushrooms!)

Apple (AAPL) also said Nintendo's uber-popular Pokemon Go mobile augmented reality game would be coming to the next version of the Apple Watch as well. Nintendo is an owner of Niantic, the private company that developed Pokemon Go.

Related: All you need to know about the IPhone 7 and the new Apple Watch

Cook and Niantic CEO John Hanke showed off a picture of the Apple Watch with a wild Snorlax character on it.

Nintendo invested $20 million in Niantic last year. A joint venture known as the Pokemon Company -- which manages the trading cards, TV series and other licensing and brand opportunities -- also owns a stake in Niantic. Nintendo owns a stake in that too.

Google parent Alphabet (GOOGL) also owns a piece of Niantic. Google spun off Niantic last year following the company's Alphabet reorganization.

But Nintendo has been the biggest winner by far from Pokemon Go. Its stock has more than doubled this year.

Related: Pokemon No? Here's why Nintendo's gaming rivals are soaring too

But investors have also been excited by the fact that the company now seems more willing to make games based on Mario and other popular Nintendo characters for smartphones and other mobile devices.

So the latest Apple news could lead to more revenue for Nintendo. Nintendo didn't say how much the new Super Mario iOS game would cost ... but it won't be free.

CNNMoney Sponsors