Skip to main content

This guy’s Super Mario breakdowns are the best way to learn the basics of computer science

Super Mario World - Random Number Generation
In 1982, a 20-something programmer named Shigeru Miyamoto designed his very first game. Called Donkey Kong, its most significant contribution to gaming history was the introduction of central character of Jumpman. Later renamed Mario, Jumpman became the star of a series of astonishingly successful video games.

With titles like Super Mario World and Super Mario Bros. 3 among them, no-one disputes that these games are classics of their kind; able to transform even the dullest of rainy days into magical experiences.

But could they teach you computer science?

mariocode
Image used with permission by copyright holder

Leap forward to the present day, and 22-year-old Alex Losego is convinced they can. Losego has been hard at work on a series of YouTube videos in which he breaks down the aforementioned Super Mario games under the title “Retro Game Mechanics Explained.”

In doing so, he’s shedding light on the obscure minutiae of titles many gamers know like the back of their hands, but which have rarely (if ever) been the subject of computer coding classes.

It’s oddly fascinating stuff, even if you’re a non-programmer or not planning on a career in games development — and will give you a new appreciation for “null sprite glitches” and the importance of random number generation, Super Nintendo style.

“I like sharing this information with other people,” Losego told Digital Trends. “That’s why I started making YouTube videos. People are fascinated by seeing what’s going on behind these games. If you’re playing Super Mario, and you see a glitch, you wonder how it happened. That’s what I want to help people understand.”

In his early twenties, Losego shouldn’t — strictly speaking — have grown up with the 16-bit Super Nintendo. Sony shipped its first-gen PlayStation the year he was born, and by the time he was in kindergarten, the Nintendo 64 and ill-fated Sega Dreamcast had joined the gaming fray. However, as he told us, “I had a Super Nintendo at home. It was during the later stages of its life, but our family wasn’t the quickest at getting the new machines.”

Super Mario Bros. 3 - Wrong Warp

Like a lot of kids, Losego wanted to develop his own games, or at least to create new levels for existing favorites. Unlike a lot of kids, he decided to delve into 65c816 assembly code, the programming language of the Super Nintendo, to do so.

Now in college, Losego no longer wants to work in gaming, but enjoys taking these games apart to explain how they work on a code-based level.

“Nintendo doesn’t release its source code for games, but some titles have previously been disassembled, or reverse-engineered, by fans,” he continued. “With others, I’ve had to disassemble them myself. Using an emulator, you can look at the memory in these games in real-time. That along with the disassembly lets me together what is going on. Sometimes it’s really difficult, though.”

Channel Trailer

He said that learning a decades-year-old assembly language has helped his own programming skills, much as learning a dead language like Latin helps you understand the root of many modern languages. With his YouTube videos taking off, he’s now using the games to give out computer science lessons online. (If you want to support him, consider contributing to his Patreon account.)

“I have a lot of ideas for expanding this series,” he said. “I want to focus on the programming side of things, but use the video games as an example. I hope that this will help people who want to get into computer science, but aren’t super confident about it. When they see that I’m using video games [to explore the subject], I think some people may be swayed because they think it’s cool.”

Hey, if you can learn some of the intricacies of programming while playing old Super Mario games, we’re all for it!

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Super Mario RPG is halfway between a remaster and remake
Mario, Mallow, Bowser, and Geno stare off-screen in Super Mario RPG.

Between The Super Mario Bros. Movie and Super Mario Bros. Wonder, it’s been a banner year for the Italian video game icon – and it’s not over yet. On November 17, Nintendo will cap off a successful 2023 with the hotly anticipated Super Mario RPG. The surprising release brings back one of the plumber’s most eccentric adventures, 1996’s Super Mario RPG: Legend of the Seven Stars for the Super Nintendo. It’s a neglected cult classic that’s been long overdue for some attention.

The question, though, is what kind of treatment a title like that deserves. Should Nintendo simply have rereleased it on Switch Online? Would an HD remaster suffice? Or was a full remake in order? If the Switch version is any indication, Nintendo may have found itself a little stumped with that question too.

Read more
The best video games of October 2023: Mario, Spider-Man 2, and more
Spider-Man soars through the air in a biomechanical suit in Marvel's Spider-Man 2.

October 2023 was one of the best months for video games in a long time. From the indie to the AAA space, there was a spectacular new game coming out every few days. Marvel’s Spider-Man 2 and Super Mario Bros. Wonder arrived and improved upon their predecessors in almost every way, while indies like Jusant and Wargroove 2 hit the scene with fresh ideas. While the phrase “there’s something for everyone” is played out in the game industry, that truly felt like it was the case this month.
Having so much to play can also be overwhelming, though. Players are left to sift through which titles are worth checking out, which are fine, and which should be passed up entirely. To help you out on that search, I’ve rounded up our seven favorite games released during the blockbuster gaming month of October 2023.
Super Mario Bros. Wonder

Nintendo dropped a brand new 2D Mario game this month, and it's outstanding. Super Mario Bros. Wonder lives up to its namesake, eliciting a sense of wonder with its expertly designed levels that reward players who poke around in them and also feature Wonder Effects that can drastically change what players are doing on the stage. From singing Piranha Plants to a top-down perspective shift, Super Mario Bros. Wonder stays consistently fresh and creative the whole way through.
“With its wealth of unpredictable levels, Super Mario Bros. Wonder is the series’ best 2D entry since its SNES days,” Giovanni Colantonio wrote in a four-star review of Super Mario Bros. Wonder. “It’s still the same familiar platformer, but one that’s been given a new lease on life thanks to a fantastic new art style, delightfully absurd transformations, and flexible difficulty. It’s the closest I’ve gotten to recapturing those magic moments with the original platformers, even if there’s still room for Mario to grow into his new overalls.”
Personally, Super Mario Bros. Wonder is my favorite game of the year and one that I know will appeal to gamers of all ages and skill levels. If you only play one game on this list, I urge you to make it this one. Super Mario Bros. Wonder is available now exclusively on Nintendo Switch.
Marvel's Spider-Man 2

Read more
Our 10 favorite Wonder Effects in Super Mario Bros. Wonder
Wonder Flower in Super Mario Bros. Wonder.

Super Mario Bros. Wonder's defining gimmick is its series of Wonder Effects. A Wonder Flower is hidden somewhere on almost every level and, once found, radically switches up what is going on within that stage. Some expand on ideas the stage was already exploring, while others are wildly unpredictable, giving players something they were not expecting at all.

There are over 69 stages with Wonder Effects that players can see while playing through the story of Super Mario Bros. Wonder, but 10 of those Wonder Effects effects stood out the most during my playthrough. By order of appearance, these are my 10 favorite Wonder Effects in Super Mario Bros. Wonder, which showcase just how inventive and unpredictable the platformer is.
Piranha Plants on Parade
Super Mario Bros Wonder – Piranha Plants on Parade - 100% All Wonder Seeds, Flower Coins & Flag

Read more