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!

Editors' Recommendations

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…
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
It’s Super Mario Bros. Wonder’s subtle changes that make it special
The flagpole is knocked away in Super Mario Bros. Wonder

While I’m only partway through Super Mario Bros. Wonder, I’m already utterly in love with the game.

As our glowing review outlined, it’s a highly polished 2D platformer that’s approachable for anyone to play and elicits a joyous and vibrant sense of wonder. But for me, what makes Super Mario Bros. Wonder special aren't so much the wild Wonder effects or elephant transformations. It's the subtle touches. These elements might not be immediately noticeable or relevant to most, but they all work together to create an experience that’s a step above most other platformers.
Changes enhance enjoyment
Super Mario Bros. Wonder isn’t afraid to show that it’s different from previous Mario games through small moments and changes. One instance that illustrates this early on is in one of the first Bowser Jr. fights. It starts like all his New Super Mario Bros. boss fights do, with him getting in his shell and spinning toward Mario. At first, I was disappointed that Nintendo was just doing the same thing again, but after the first hit, that changed. Bowser Jr. activates a Wonder effect and changes in size for the following two stages of his fight. It's a moment of surprise that subverts my expectations, which are based on decades of Mario games. This is a small moment and reference that many Super Mario Bros. Wonder players probably won’t even internalize. Still, it is a smart way to show how the platformer differs from what came before.

Read more